/* ============================================================
   NILUX STUDIO — Feuille de style globale (v2)
   Tout le CSS commun à toutes les pages.
   Pour basculer en palette charte (Montserrat + #00DCFF) :
       <body class="charte"> au lieu de <body>
   ============================================================ */

/* ============================================================
   VARIABLES — Palette, typographie, animations
   ============================================================ */
:root {
  /* Fonds */
  --bg-deep:      #07090d;
  --bg-panel:     #0f141c;
  --bg-elevated:  #161d27;
  --line:         #1f2a38;
  --line-strong:  #2d3a4d;

  /* Cyan — version site actuel par défaut */
  --cyan:         #1FE5FF;
  --cyan-deep:    #0891b2;
  --cyan-glow:    rgba(31, 229, 255, 0.5);

  /* Texte */
  --text:         #eaf7ff;
  --text-muted:   #8b95a7;
  --text-faint:   #4a5568;

  /* Vert WhatsApp / statut */
  --whatsapp:     #25D366;
  --live:         #00ff88;

  /* Typographie — version "premium technique" (défaut) */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Easings */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-tech:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mode CHARTE — appliqué via class="charte" sur <body> */
body.charte {
  --cyan:         #00DCFF;
  --cyan-deep:    #0099b8;
  --cyan-glow:    rgba(0, 220, 255, 0.5);
  --font-display: 'Montserrat', sans-serif;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Texture grain sur l'ensemble du site */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.6; pointer-events: none; z-index: 1000; mix-blend-mode: overlay;
}

/* Accessibilité — utilisateurs avec prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   PRELOADER — Voile d'entrée avec logo qui se révèle
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 32px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 8vw, 96px); letter-spacing: 0.15em;
  display: flex; gap: 4px;
}
.preloader-logo .ni { color: var(--text); }
.preloader-logo .lux {
  color: var(--cyan);
  text-shadow: 0 0 24px var(--cyan-glow), 0 0 48px var(--cyan-glow);
  animation: luxPulse 2s ease-in-out infinite;
}
@keyframes luxPulse {
  0%, 100% { text-shadow: 0 0 24px var(--cyan-glow), 0 0 48px var(--cyan-glow); }
  50% { text-shadow: 0 0 32px var(--cyan), 0 0 72px var(--cyan-glow); }
}
.preloader-bar {
  width: 240px; height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.preloader-bar::after {
  content: ''; position: absolute; inset: 0;
  background: var(--cyan); transform-origin: left;
  animation: progress 1.4s var(--ease-tech) forwards;
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.preloader-text {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ============================================================
   PAGE TRANSITION — Voile noir au changement de page
   ============================================================ */
.page-transition {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg-deep);
  transform: scaleY(0); transform-origin: bottom;
  pointer-events: none;
  transition: transform 0.6s var(--ease-tech);
}
.page-transition.active {
  transform: scaleY(1); transform-origin: top;
}
.page-transition.exit {
  transform: scaleY(0); transform-origin: bottom;
}

/* ============================================================
   CURSEUR CUSTOM
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
  transition: transform 0.15s var(--ease);
}
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid var(--cyan); border-radius: 50%;
  opacity: 0.6;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cursor-ring.expand { width: 64px; height: 64px; opacity: 1; }
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.85); backdrop-filter: blur(12px);
  padding: 14px 48px; border-bottom-color: var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
}
.nav-logo img {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 0 16px rgba(31, 229, 255, 0.25));
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 24px var(--cyan-glow));
  transform: scale(1.04);
}
.nav.scrolled .nav-logo img { height: 36px; }
.nav-links {
  display: flex; gap: 40px; align-items: center; list-style: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
}
.nav-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--cyan); }
.nav-links a:not(.cta)::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--cyan);
  transition: width 0.3s var(--ease);
}
.nav-links a:not(.cta):hover::after { width: 100%; }
.nav-links .cta {
  color: var(--cyan); border: 1px solid var(--cyan); padding: 10px 18px;
  transition: all 0.3s var(--ease);
}
.nav-links .cta:hover {
  background: var(--cyan); color: var(--bg-deep);
  box-shadow: 0 0 24px var(--cyan-glow);
}

/* Burger mobile */
.nav-burger {
  display: none; background: transparent; border: none; cursor: none;
  width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px;
}
.nav-burger span {
  display: block; height: 1px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { width: 24px; margin-left: auto; }
.nav-burger span:nth-child(2) { width: 16px; margin-left: auto; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open::after {
  content: ''; display: block; height: 1px; background: var(--text);
  width: 24px; margin: -1px 0 0 auto;
  transform: translateY(-1px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav { padding: 14px 32px; }
  .nav-links { gap: 24px; font-size: 11px; }
}
@media (max-width: 820px) {
  .nav { padding: 14px 20px; }
  .nav-logo img { height: 36px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 360px);
    background: rgba(7, 9, 13, 0.96); backdrop-filter: blur(20px);
    flex-direction: column; gap: 32px; padding: 100px 32px;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line); align-items: flex-start;
    font-size: 14px; letter-spacing: 0.1em;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .cta { padding: 12px 20px; }
}

/* ============================================================
   TYPO COMMUNES
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 16px;
}
.section-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--cyan); }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 72px); line-height: 1.05;
  letter-spacing: -0.02em; margin-top: 16px;
}
.section-title em { color: var(--cyan); font-style: italic; font-weight: 500; }
.section-desc { color: var(--text-muted); font-size: 18px; max-width: 540px; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-primary {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--bg-deep); background: var(--cyan);
  padding: 18px 36px; text-decoration: none; border: none;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  transition: all 0.3s var(--ease); overflow: hidden; cursor: none;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; background: var(--text);
  transform: translateX(-101%); transition: transform 0.4s var(--ease);
}
.btn-primary:hover { color: var(--bg-deep); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(6px); }

.btn-ghost {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  transition: color 0.2s var(--ease);
}
.btn-ghost:hover { color: var(--cyan); }
.btn-ghost::before {
  content: ''; width: 24px; height: 1px; background: currentColor;
  transition: width 0.3s var(--ease);
}
.btn-ghost:hover::before { width: 40px; }

/* Bouton magnétique — wrapper qui sera animé par JS */
.btn-magnetic { display: inline-block; }

/* ============================================================
   MARQUEE — Ticker défilant
   ============================================================ */
.marquee {
  background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; position: relative;
}
.marquee-track {
  display: flex; gap: 64px; width: max-content;
  animation: marqueeScroll 28s linear infinite;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 40px); letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--text);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 32px; white-space: nowrap; }
.marquee-track span::after {
  content: '✦'; color: var(--cyan); font-size: 0.7em;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 80px 48px 40px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); max-width: 340px; font-size: 14px; }
.footer-brand .baseline {
  font-family: var(--font-display); font-style: italic; color: var(--cyan);
  margin-top: 16px; font-size: 14px;
}
.footer-col h5 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px;
}
.footer-col a {
  display: block; color: var(--text); text-decoration: none;
  margin-bottom: 12px; font-size: 14px; transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--text-muted); transition: all 0.3s var(--ease);
}
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  max-width: 1400px; margin: 0 auto; padding-top: 32px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-faint); flex-wrap: wrap; gap: 16px;
}

/* ============================================================
   REVEAL au scroll
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ============================================================
   HERO — Page d'accueil
   ============================================================ */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  padding: 120px 48px 80px; overflow: hidden;
}
.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: 80px 80px; opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
  filter: blur(80px); opacity: 0.25;
  top: 50%; left: 30%; transform: translate(-50%, -50%);
  animation: glowMove 12s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glowMove {
  0% { transform: translate(-50%, -50%) translate(0, 0); }
  100% { transform: translate(-50%, -50%) translate(80px, -40px); }
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; }
.hero-meta {
  display: flex; gap: 32px; margin-bottom: 48px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--text-muted); text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.2s forwards;
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 9vw, 140px); line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 32px; text-transform: uppercase;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word > span { display: inline-block; transform: translateY(110%); animation: revealUp 1s var(--ease) forwards; }
.hero-title .word:nth-child(1) > span { animation-delay: 0.4s; }
.hero-title .word:nth-child(2) > span { animation-delay: 0.55s; }
.hero-title .word:nth-child(3) > span { animation-delay: 0.7s; }
.hero-title .word:nth-child(4) > span { animation-delay: 0.85s; }
.hero-title .word:nth-child(5) > span { animation-delay: 1.0s; }
.hero-title .word:nth-child(6) > span { animation-delay: 1.15s; }
.hero-title .accent { color: var(--cyan); font-style: italic; font-weight: 500; }
@keyframes revealUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-desc {
  max-width: 540px; font-size: 18px; color: var(--text-muted); margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 1.3s forwards;
}
.hero-actions {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 1.5s forwards;
}
.hero-side {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 24px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); z-index: 2;
}
.hero-side-block {
  border-left: 1px solid var(--line-strong); padding-left: 16px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) forwards;
}
.hero-side-block:nth-child(1) { animation-delay: 1.7s; }
.hero-side-block:nth-child(2) { animation-delay: 1.85s; }
.hero-side-block:nth-child(3) { animation-delay: 2.0s; }
.hero-side-block .label { color: var(--text-faint); margin-bottom: 4px; }
.hero-side-block .value { color: var(--text); font-size: 13px; letter-spacing: 0.05em; }
.hero-side-block .value.live::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--live); border-radius: 50%; margin-left: 8px;
  animation: pulse 1.5s ease-in-out infinite; vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
@media (max-width: 1024px) { .hero-side { display: none; } }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 2.2s forwards;
}
.scroll-indicator::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SHOWREEL — Section vidéo cinématique
   ============================================================ */
.showreel { padding: 0; background: var(--bg-deep); position: relative; }
.showreel-frame {
  position: relative; aspect-ratio: 21 / 9; overflow: hidden;
  background: var(--bg-panel);
}
.showreel-frame video, .showreel-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.showreel-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(ellipse at center, var(--bg-elevated), var(--bg-deep));
  gap: 24px; text-align: center; padding: 32px;
}
.showreel-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.3;
}
.showreel-play {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--cyan); display: flex; align-items: center; justify-content: center;
  color: var(--cyan); cursor: none;
  transition: all 0.4s var(--ease);
}
.showreel-play::before, .showreel-play::after {
  content: ''; position: absolute; inset: -8px; border: 1px solid var(--cyan); border-radius: 50%;
  opacity: 0.3; animation: ringPulse 3s ease-in-out infinite;
}
.showreel-play::after { inset: -16px; opacity: 0.15; animation-delay: 0.5s; }
.showreel-play:hover { background: var(--cyan); color: var(--bg-deep); transform: scale(1.05); }
.showreel-play svg { width: 28px; height: 28px; margin-left: 4px; }
.showreel-label {
  position: relative; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted);
}
.showreel-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-deep));
}
.showreel-caption {
  position: absolute; bottom: 32px; left: 48px; right: 48px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.showreel-caption .title {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.01em; text-transform: none; color: var(--text);
}
@media (max-width: 768px) {
  .showreel-frame { aspect-ratio: 4 / 5; }
  .showreel-caption { left: 20px; right: 20px; bottom: 20px; }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.1; }
}

/* ============================================================
   SERVICES — Grille 4 colonnes
   ============================================================ */
.services { padding: 160px 48px; position: relative; background: var(--bg-deep); }
.section-header {
  max-width: 1400px; margin: 0 auto 100px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: end;
}
@media (max-width: 768px) { .section-header { grid-template-columns: 1fr; gap: 24px; } }

.services-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  position: relative; padding: 48px 36px 36px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 480px; display: flex; flex-direction: column;
  cursor: none; overflow: hidden; transition: background 0.5s var(--ease);
  text-decoration: none; color: inherit;
}
.service-number {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-faint); margin-bottom: 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.service-number .plus {
  width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%;
  position: relative; transition: all 0.4s var(--ease);
}
.service-number .plus::before, .service-number .plus::after {
  content: ''; position: absolute; background: var(--text-muted);
  transition: all 0.4s var(--ease);
}
.service-number .plus::before { top: 50%; left: 25%; right: 25%; height: 1px; transform: translateY(-50%); }
.service-number .plus::after { left: 50%; top: 25%; bottom: 25%; width: 1px; transform: translateX(-50%); }
.service-icon {
  width: 56px; height: 56px; margin-bottom: auto; margin-top: 24px;
  color: var(--text); transition: all 0.5s var(--ease);
  position: relative; z-index: 2;
}
.service-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1; }
.service-icon svg path, .service-icon svg circle, .service-icon svg line, .service-icon svg rect, .service-icon svg polyline {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.2s var(--ease-tech);
}
.service.in-view .service-icon svg path,
.service.in-view .service-icon svg circle,
.service.in-view .service-icon svg line,
.service.in-view .service-icon svg rect,
.service.in-view .service-icon svg polyline { stroke-dashoffset: 0; }
.service-title {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  letter-spacing: -0.01em; margin-top: 32px; margin-bottom: 12px;
  position: relative; z-index: 2;
}
.service-desc {
  color: var(--text-muted); font-size: 14px; line-height: 1.6;
  position: relative; z-index: 2;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease) 0.1s, margin 0.5s var(--ease);
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; z-index: 2;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease) 0.15s, margin 0.5s var(--ease);
}
.service-tags span { color: var(--cyan); border: 1px solid var(--line-strong); padding: 6px 10px; }
.service::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(31, 229, 255, 0.08), transparent 50%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.service:hover { background: var(--bg-panel); }
.service:hover::before { opacity: 1; }
.service:hover .service-icon { color: var(--cyan); transform: translateY(-4px); }
.service:hover .service-number .plus { border-color: var(--cyan); transform: rotate(90deg); }
.service:hover .service-number .plus::before,
.service:hover .service-number .plus::after { background: var(--cyan); }
.service:hover .service-desc { max-height: 100px; opacity: 1; }
.service:hover .service-tags { max-height: 100px; opacity: 1; margin-top: 16px; }
.service::after {
  content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: var(--cyan); transition: height 0.5s var(--ease);
}
.service:hover::after { height: 100%; }

/* ============================================================
   PORTFOLIO TEASER — Grille image
   ============================================================ */
.portfolio-teaser { padding: 160px 48px; background: var(--bg-panel); border-top: 1px solid var(--line); }
.portfolio-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-item {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg-elevated); text-decoration: none; color: inherit;
}
.portfolio-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(60%) brightness(0.7);
}
.portfolio-item:hover img { transform: scale(1.05); filter: grayscale(0%) brightness(1); }
.portfolio-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-elevated));
  display: flex; align-items: center; justify-content: center;
}
.portfolio-placeholder svg { width: 64px; height: 64px; color: var(--line-strong); }
.portfolio-overlay {
  position: absolute; inset: 0; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(7,9,13,0.9), transparent 60%);
  transition: background 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { background: linear-gradient(to top, rgba(7,9,13,0.95), rgba(7,9,13,0.3)); }
.portfolio-cat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
}
.portfolio-title {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-title { transform: translateY(0); }
.portfolio-item::after {
  content: ''; position: absolute; left: 0; top: 0; width: 0; height: 2px;
  background: var(--cyan); transition: width 0.5s var(--ease);
}
.portfolio-item:hover::after { width: 100%; }

/* ============================================================
   TESTIMONIALS — Avis clients
   ============================================================ */
.testimonials { padding: 160px 48px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.testimonials-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--bg-panel); border: 1px solid var(--line); padding: 40px;
  position: relative; transition: all 0.4s var(--ease);
}
.testimonial:hover {
  border-color: var(--cyan); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.testimonial::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-family: var(--font-display); font-size: 80px; line-height: 1;
  color: var(--cyan); opacity: 0.2;
}
.testimonial-text {
  font-size: 16px; color: var(--text); margin-bottom: 32px; line-height: 1.7;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; color: var(--cyan);
}
.testimonial-meta .name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text);
}
.testimonial-meta .role {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
}

/* ============================================================
   STATS — Chiffres clés animés
   ============================================================ */
.stats {
  padding: 120px 48px; background: var(--bg-deep);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; padding-left: 24px; border-left: 1px solid var(--line-strong); }
.stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--cyan);
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 12px;
}

/* ============================================================
   CERTIFICATION EASA
   ============================================================ */
.certification {
  padding: 120px 48px; background: var(--bg-deep);
  border-top: 1px solid var(--line); position: relative; overflow: hidden;
}
.cert-bg-text {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(120px, 18vw, 280px); letter-spacing: -0.05em;
  color: var(--bg-panel); white-space: nowrap;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; user-select: none; z-index: 0;
}
.cert-inner {
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center;
}
@media (max-width: 768px) { .cert-inner { grid-template-columns: 1fr; gap: 32px; } }
.cert-badge {
  width: 200px; height: 200px; border: 1px solid var(--cyan); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan); position: relative; flex-shrink: 0;
}
.cert-badge::before, .cert-badge::after {
  content: ''; position: absolute; border: 1px solid var(--cyan); border-radius: 50%;
  inset: -8px; opacity: 0.3; animation: ringPulse 3s ease-in-out infinite;
}
.cert-badge::after { inset: -16px; opacity: 0.15; animation-delay: 0.5s; }
.cert-badge .star { font-size: 32px; margin-bottom: 8px; color: var(--cyan); }
.cert-badge strong {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 0.1em;
  color: var(--text); font-weight: 700;
}
.cert-content h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.cert-content h3 em { color: var(--cyan); font-style: italic; font-weight: 500; }
.cert-content p { color: var(--text-muted); font-size: 16px; max-width: 580px; margin-bottom: 32px; }

/* ============================================================
   PAGE HERO (autres pages que index)
   ============================================================ */
.page-hero { padding: 200px 48px 120px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(31,229,255,0.08), transparent 60%);
  pointer-events: none;
}
.page-hero .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 24px; position: relative;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 9vw, 120px); line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase; position: relative;
}
.page-hero h1 em { color: var(--cyan); font-style: italic; font-weight: 500; }
.page-hero .lede {
  max-width: 640px; margin: 32px auto 0; color: var(--text-muted);
  font-size: 18px; position: relative;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.container { max-width: 1400px; margin: 0 auto; }
.center-text { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
