/* =========================================================================
   Tryxee62 — Feuille de style principale (v2)
   Thème : bleu sombre premium · glassmorphism · aurora animée · 3D tilt
   Sommaire :
     0.  Tokens (:root)
     1.  Reset & base
     2.  Décor d'ambiance (aurora, grille, curseur, progression)
     3.  Préchargement
     4.  Typographie & utilitaires
     5.  Boutons
     6.  Header / Navbar
     7.  Hero
     8.  Marquee
     9.  À propos
    10.  Chiffres
    11.  Services
    12.  Projets
    13.  Méthode (timeline)
    14.  Valeurs + bande CTA
    15.  FAQ
    16.  Contact
    17.  Footer + retour haut
    18.  Animations (reveal, float, keyframes)
    19.  Responsive
    20.  Accessibilité / reduced-motion
   ========================================================================= */

/* 0. ───────────────────────────────  TOKENS  ───────────────────────────── */
:root {
  --bg-900: #070b16;
  --bg-800: #0a1020;
  --bg-700: #0d1426;
  --surface: #0f1830;
  --surface-2: #131d39;

  --accent: #4f8cff;
  --accent-2: #38e1ff;
  --accent-3: #7c5cff;
  --accent-soft: rgba(79, 140, 255, 0.16);

  --text: #f5f8ff;
  --text-muted: #9fb0cc;
  --text-dim: #6f80a0;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --glass: rgba(17, 26, 51, 0.55);
  --glass-2: rgba(20, 31, 60, 0.7);

  --grad-accent: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-tri: linear-gradient(120deg, var(--accent-3), var(--accent) 45%, var(--accent-2));
  --grad-text: linear-gradient(110deg, #ffffff 0%, #cfe0ff 40%, var(--accent-2) 100%);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px rgba(2, 6, 20, 0.35);
  --shadow: 0 24px 55px rgba(2, 6, 20, 0.5);
  --shadow-glow: 0 0 70px rgba(79, 140, 255, 0.35);

  --container: 1180px;
  --t: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 0.7s cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

/* 1. ─────────────────────────────  RESET & BASE  ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-900);
  line-height: 1.65;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* Cache le curseur natif quand le curseur custom est actif */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [data-magnetic],
body.has-cursor summary { cursor: none; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #051022;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

/* 2. ───────────────────  DÉCOR D'AMBIANCE & CURSEUR  ────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 45%, var(--bg-900) 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.aurora-1 {
  width: 55vw; height: 55vw;
  top: -18vw; left: -10vw;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.5), transparent 65%);
  animation: drift1 32s ease-in-out infinite;
}
.aurora-2 {
  width: 48vw; height: 48vw;
  top: 8vw; right: -14vw;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.4), transparent 65%);
  animation: drift2 36s ease-in-out infinite;
}
.aurora-3 {
  width: 50vw; height: 50vw;
  bottom: -20vw; left: 30vw;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%);
  animation: drift3 40s ease-in-out infinite;
}

/* Grille fine qui se révèle autour du curseur */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 70%);
  mask: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 70%);
  opacity: 0.6;
  transition: opacity var(--t);
}

/* Curseur lumineux */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; display: none; }
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(120, 190, 255, 0.6);
  transition: width var(--t), height var(--t), background var(--t), border-color var(--t);
}
.cursor.is-hover .cursor-ring {
  width: 60px; height: 60px;
  background: rgba(79, 140, 255, 0.12);
  border-color: var(--accent-2);
}
.cursor.is-down .cursor-ring { width: 28px; height: 28px; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: var(--grad-tri);
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.7);
}

/* 3. ──────────────────────────  PRÉCHARGEMENT  ─────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--bg-900);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 1.2rem; }
.preloader-logo {
  width: 76px;
  filter: drop-shadow(0 8px 26px rgba(79, 140, 255, 0.6));
  animation: pulse 1.4s ease-in-out infinite;
}
.preloader-bar {
  width: 180px; height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--grad-accent);
  animation: load 1.3s ease forwards;
}
.preloader-word {
  font-family: var(--font-head);
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  text-indent: 0.3em;
}

/* 4. ──────────────────────  TYPOGRAPHIE & UTILITAIRES  ─────────────────── */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.9vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
p { color: var(--text-muted); }

.section { padding: clamp(4rem, 3rem + 6vw, 7.5rem) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--accent-2); display: inline-block;
}

.section-header { max-width: 680px; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.5rem); }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section-header h2 {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.9rem;
}

.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.05rem; font-size: 0.82rem; font-weight: 500;
  color: var(--text); background: var(--accent-soft);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 0 rgba(56, 225, 255, 0.6);
  animation: ping 2s ease-in-out infinite;
}

/* 5. ─────────────────────────────  BOUTONS  ────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.97rem;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  will-change: transform; overflow: hidden;
}
.btn-block { width: 100%; }
.btn-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { color: #051022; background: var(--grad-accent); box-shadow: 0 10px 30px rgba(79, 140, 255, 0.35); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 42px rgba(79, 140, 255, 0.55); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-secondary {
  color: var(--text); background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong); backdrop-filter: blur(8px);
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-soft); }

/* 6. ────────────────────────────  HEADER / NAV  ────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0.95rem 0; border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), padding var(--t);
}
.header.scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 0.6rem 0;
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
}
.brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(79, 140, 255, 0.45)); }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav-link {
  position: relative; padding: 0.5rem 0.9rem; font-size: 0.95rem;
  color: var(--text-muted); border-radius: var(--radius-pill);
  transition: color var(--t);
}
.nav-link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.32rem;
  height: 2px; border-radius: 2px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }

.nav-cta {
  padding: 0.55rem 1.2rem; color: #051022; background: var(--grad-accent);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-pill); box-shadow: 0 8px 22px rgba(79, 140, 255, 0.3);
  transition: transform var(--t);
}
.nav-cta:hover { transform: translateY(-2px); }

.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.55rem; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-sm);
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. ──────────────────────────────  HERO  ──────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 7rem + 7vw, 12rem);
  padding-bottom: clamp(4rem, 3rem + 5vw, 7rem);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: clamp(2rem, 4vw, 4rem);
}
.hero-title {
  margin: 1.3rem 0;
  color: var(--text); /* fallback visible si le JS ne découpe pas le titre */
}
/* Mots animés (data-split) — le dégradé est porté par le span interne
   (porteur des glyphes) sinon background-clip:text rend le texte invisible */
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; }
.hero-title .word > span {
  display: inline-block;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(115%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.hero-title.in .word > span { transform: translateY(0); }

.hero-lead { max-width: 46ch; font-size: 1.12rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.4rem; }

.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 500px; }
.metric {
  padding: 1rem 1.1rem; background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(10px);
  transition: transform var(--t), border-color var(--t);
  transform-style: preserve-3d;
}
.metric:hover { border-color: var(--border-strong); }
.metric strong {
  display: block; font-family: var(--font-head); font-size: 1.25rem;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { font-size: 0.82rem; color: var(--text-dim); }

/* Carte visuelle hero */
.hero-visual { display: flex; justify-content: center; perspective: 1200px; }
.hero-card {
  position: relative; width: min(100%, 430px);
  padding: 2.6rem 2rem; background: var(--glass-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  backdrop-filter: blur(18px); box-shadow: var(--shadow), var(--shadow-glow);
  text-align: center; transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}
.hero-card-glow {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(56, 225, 255, 0.7), transparent 40%, rgba(124, 92, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.floating-logo {
  width: clamp(120px, 42%, 190px); margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 34px rgba(79, 140, 255, 0.55));
  transform: translateZ(40px);
}
.floating-badge {
  padding: 1rem 1.1rem; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border); border-radius: var(--radius);
  transform: translateZ(25px);
}
.floating-badge strong { font-family: var(--font-head); color: var(--accent-2); }
.floating-badge p { font-size: 0.88rem; margin-top: 0.25rem; }

/* Puces en orbite */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit-chip {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px); font-size: 1.1rem; color: var(--accent-2);
  box-shadow: var(--shadow-sm);
}
.chip-web { top: 10%; left: -22px; animation: float 5s ease-in-out infinite; }
.chip-auto { top: 42%; right: -22px; animation: float 6.5s ease-in-out 0.4s infinite; }
.chip-3d { bottom: 8%; left: 16%; animation: float 5.5s ease-in-out 0.8s infinite; }

/* Indicateur de défilement */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
}
.scroll-cue-track {
  width: 24px; height: 38px; border: 2px solid var(--border-strong);
  border-radius: var(--radius-pill); display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue-thumb {
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent-2);
  animation: scrollThumb 1.8s ease-in-out infinite;
}

/* 8. ─────────────────────────────  MARQUEE  ────────────────────────────── */
.marquee {
  position: relative; overflow: hidden;
  padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 22, 0.4);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-head); font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.6rem); font-weight: 500;
  color: var(--text);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .sep { color: var(--accent-2); }

/* 9. ────────────────────────────  À PROPOS  ────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.about-copy p + p { margin-top: 1rem; }
.about-list { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.about-list li { display: flex; align-items: center; gap: 0.7rem; color: var(--text-muted); font-size: 0.96rem; }
.about-list svg {
  flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  background: var(--accent-soft); border: 1px solid var(--border-strong);
}

.about-visual {
  position: relative; padding: 2rem; background: var(--glass);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); transform-style: preserve-3d;
}
.about-visual img { border-radius: var(--radius); filter: drop-shadow(0 14px 40px rgba(79, 140, 255, 0.35)); transform: translateZ(30px); }
.about-visual-badge {
  position: absolute; right: -14px; bottom: -14px;
  padding: 0.9rem 1.2rem; background: var(--glass-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm);
  text-align: center; transform: translateZ(60px);
}
.about-visual-badge strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--accent-2); }
.about-visual-badge span { font-size: 0.78rem; color: var(--text-dim); }

/* 10. ────────────────────────────  CHIFFRES  ───────────────────────────── */
.stats-section { padding-top: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(12px);
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -0.6rem; top: 15%; height: 70%; width: 1px;
  background: var(--border);
}
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 0.9rem; color: var(--text-muted); }

/* 11. ────────────────────────────  SERVICES  ───────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); }
.service-card {
  position: relative; padding: 2.3rem 1.9rem; background: var(--glass);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px); overflow: hidden; transform-style: preserve-3d;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 1.4rem;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--border-strong); border-radius: 16px;
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 0.7rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.service-tags li {
  font-size: 0.78rem; padding: 0.3rem 0.75rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: var(--radius-pill);
}

/* Spotlight au survol (suit la souris) */
[data-spotlight] { position: relative; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(79, 140, 255, 0.18), transparent 60%);
  opacity: 0; transition: opacity var(--t);
}
[data-spotlight]:hover::after { opacity: 1; }

/* 12. ────────────────────────────  PROJETS  ────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); }
.project-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transform-style: preserve-3d;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.project-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-700); }
.project-card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 11, 22, 0.8) 100%); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.project-card:hover img { transform: scale(1.08); }
.project-tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; color: #051022; background: var(--grad-accent);
  border-radius: var(--radius-pill);
}
.project-body { padding: 1.4rem 1.5rem 1.7rem; }
.project-body h3 { margin-bottom: 0.5rem; }
.project-body p { font-size: 0.93rem; margin-bottom: 1rem; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; color: var(--accent-2);
}
.project-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.project-card:hover .project-link svg { transform: translateX(4px); }

/* 13. ─────────────────────────  MÉTHODE / TIMELINE  ────────────────────── */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); }
.timeline-line { position: absolute; top: 3.6rem; left: 6%; right: 6%; height: 2px; background: var(--border); overflow: hidden; }
.timeline-line span { display: block; height: 100%; width: 0; background: var(--grad-accent); box-shadow: 0 0 10px rgba(79,140,255,.6); transition: width 1.4s ease; }
.timeline.in .timeline-line span { width: 100%; }

.timeline-step {
  position: relative; padding: 2rem 1.6rem; background: var(--glass);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px); transition: transform var(--t), border-color var(--t);
}
.timeline-step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.timeline-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  font-family: var(--font-head); font-weight: 600; color: #051022;
  background: var(--grad-accent); border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.35); position: relative; z-index: 1;
}
.timeline-step h3 { margin-bottom: 0.45rem; }
.timeline-step p { font-size: 0.92rem; }

/* 14. ─────────────────────────  VALEURS + CTA  ─────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2vw, 1.8rem); margin-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.value-card {
  position: relative; padding: 1.9rem 1.6rem; background: var(--glass);
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(12px); overflow: hidden;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.value-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--glass-2); }
.value-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  font-size: 1.3rem; color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid var(--border-strong); border-radius: 14px;
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.92rem; }

.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(60% 120% at 0% 0%, rgba(56, 225, 255, 0.25), transparent 60%),
              linear-gradient(120deg, rgba(124, 92, 255, 0.25), rgba(20, 31, 60, 0.6));
  border: 1px solid var(--border-strong);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.cta-band-inner .eyebrow { margin-bottom: 0.4rem; }
.cta-band-inner h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); max-width: 22ch; }

/* 15. ──────────────────────────────  FAQ  ─────────────────────────────── */
.faq-grid { display: grid; gap: 1rem; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(12px); overflow: hidden; transition: border-color var(--t), background var(--t);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { background: var(--glass-2); border-color: var(--accent-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--accent-2);
  transition: transform var(--t); line-height: 1; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
/* Ouverture animée */
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow); }
.faq-item[open] .faq-content { grid-template-rows: 1fr; }
.faq-content > p { overflow: hidden; padding: 0 1.5rem; font-size: 0.95rem; }
.faq-item[open] .faq-content > p { padding-bottom: 1.3rem; }

/* 16. ────────────────────────────  CONTACT  ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-box { padding-top: 0.5rem; }
.contact-box h2 { margin: 0.4rem 0 1rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-info { margin-top: 1.8rem; display: grid; gap: 1rem; }
.contact-info li { display: flex; align-items: center; gap: 0.8rem; color: var(--text-muted); }
.contact-info a:hover { color: var(--accent-2); }
.contact-info-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--border-strong);
}
.contact-info-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form {
  position: relative;
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  background: var(--glass-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Champs à label flottant */
.field { position: relative; margin-bottom: 1.2rem; }
.field input,
.field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 1.15rem 1rem 0.5rem; background: rgba(7, 11, 22, 0.5);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t), background var(--t); resize: vertical;
}
.field textarea { min-height: 140px; padding-top: 1.4rem; }
.field label {
  position: absolute; left: 1rem; top: 0.95rem;
  font-size: 0.98rem; color: var(--text-dim); pointer-events: none;
  transition: transform var(--t), color var(--t), font-size var(--t);
  transform-origin: left;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.7rem); font-size: 0.74rem; color: var(--accent-2);
}
.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(7, 11, 22, 0.8);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid input,
.field.invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18); }

.form-feedback { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.2em; }
.form-feedback.ok { color: var(--accent-2); }
.form-feedback.err { color: #ff8585; }

/* 17. ────────────────────────  FOOTER + RETOUR HAUT  ───────────────────── */
.footer { padding: clamp(3rem, 2.4rem + 2vw, 4.5rem) 0 2rem; border-top: 1px solid var(--border); background: rgba(7, 11, 22, 0.55); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand p { max-width: 38ch; font-size: 0.92rem; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-col a { display: block; padding: 0.3rem 0; font-size: 0.92rem; color: var(--text-muted); transition: color var(--t), transform var(--t); }
.footer-col a:hover { color: var(--accent-2); transform: translateX(4px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }
.footer-slogan { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--border-strong); border-radius: 50%;
  backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), border-color var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 18. ────────────────────────  ANIMATIONS / KEYFRAMES  ─────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--t-slow), transform var(--t-slow); transition-delay: var(--reveal-delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
@keyframes load { to { width: 100%; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(56, 225, 255, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(56, 225, 255, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollThumb { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0.3; } 100% { transform: translateY(0); opacity: 1; } }
/* Translation seule (pas de scale) : la couche floutée reste composée sur GPU
   et n'est plus re-rastérisée à chaque frame → fin du jank permanent. */
@keyframes drift1 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(5vw, 4vh, 0); } }
@keyframes drift2 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-4vw, 5vh, 0); } }
@keyframes drift3 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(3vw, -4vh, 0); } }

/* 19. ───────────────────────────  RESPONSIVE  ──────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-visual { max-width: 480px; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.2rem; }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 330px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.3rem;
    padding: 5.5rem 1.5rem 2rem; background: rgba(10, 16, 32, 0.97);
    backdrop-filter: blur(18px); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform var(--t); z-index: 90;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 600px) {
  .services-grid, .projects-grid, .timeline, .values-grid, .form-grid { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band-inner .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .orbit-chip { display: none; }
}

/* 20. ─────────────────────  ACCESSIBILITÉ / MOTION  ────────────────────── */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word > span { transform: none; }
  .aurora, .marquee-track { animation: none !important; }
}

/* 21. ─────────────────  MODE FLUIDE (détecteur de lag)  ─────────────────── */

/* Notification proposant le mode fluide */
.perf-toast {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 1500;
  width: min(340px, calc(100vw - 2.4rem)); padding: 1.1rem 1.2rem;
  background: rgba(10, 16, 32, 0.97); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.perf-toast.show { opacity: 1; transform: none; }
.perf-toast strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--text); margin-bottom: 0.3rem; }
.perf-toast p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.95rem; }
.perf-toast-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.perf-toast-btn {
  padding: 0.55rem 1.05rem; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  color: #051022; background: var(--grad-accent); border-radius: var(--radius-pill); cursor: pointer;
}
.perf-toast-dismiss {
  padding: 0.55rem 0.95rem; font-size: 0.9rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-pill); cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.perf-toast-dismiss:hover { color: var(--text); border-color: var(--border-strong); }

/* Mode fluide actif : on neutralise tout ce qui peut faire ramer */
html.lite { --glass: rgba(15, 23, 46, 0.92); --glass-2: rgba(18, 28, 55, 0.95); }
html.lite *, html.lite *::before, html.lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}
html.lite .aurora { animation: none !important; filter: none !important; opacity: 0.35; }
html.lite .grid-overlay, html.lite .cursor { display: none !important; }
html.lite .marquee-track,
html.lite .hero-card,
html.lite .orbit-chip,
html.lite .pill-dot,
html.lite .scroll-cue-thumb,
html.lite .preloader-logo,
html.lite .floating-logo { animation: none !important; }
html.lite .floating-logo,
html.lite .preloader-logo,
html.lite .brand img,
html.lite .about-visual img,
html.lite .about-visual-badge { filter: none !important; }
html.lite [data-tilt], html.lite [data-magnetic] { transform: none !important; }
html.lite, html.lite a, html.lite button, html.lite [data-magnetic], html.lite summary { cursor: auto !important; }
