﻿/* ==========================================================================
   NB MAKERS - ULTIMATE STYLE V3 (CLEAN & OPTIMIZED)
   ========================================================================== */

:root {
  /* PALETTE */
  --bg-dark: #020617;
  --primary: #06b6d4; /* Cyan */
  --secondary: #3b82f6; /* Blue */
  --accent: #a855f7; /* Purple */
  --danger: #ef4444; /* Red */

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.1);

  /* FONTS */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-code: "Fira Code", monospace;

  --header-height: 80px;
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: white;
  font-weight: 800;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BACKGROUNDS (Particles & Grid) --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.interactive-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  perspective: 500px;
  overflow: hidden;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(
      rgba(6, 182, 212, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(60deg) translateZ(-200px);
  animation: gridMove 20s linear infinite;
}

.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  filter: blur(90px);
  opacity: 0.25;
  animation: moveBlob 25s infinite alternate ease-in-out;
}
.blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent);
}
.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary);
  animation-delay: -10s;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  box-shadow: 0 0 15px var(--primary);
}
body:hover .custom-cursor.hovered {
  width: 60px;
  height: 60px;
  background: transparent;
  border: 1px solid var(--primary);
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo 3D */
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  perspective: 800px;
  transform-style: preserve-3d;
  cursor: default;
}
.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  transform-origin: center center;
  animation: hologramDeepFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.7));
  backface-visibility: hidden;
}
.logo .dot {
  color: var(--primary);
  display: inline-block;
  animation: pulseDot 2s infinite;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  gap: 40px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  opacity: 0.8;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}
.nav-link:hover {
  opacity: 1;
  color: white;
}
.nav-link:hover::after {
  width: 100%;
}

/* Boutons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: 0.4s;
}
.btn::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 150%;
  height: 350%;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, 0) scale(1);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}
.btn:hover {
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}
.btn:hover::before {
  transform: translate(-50%, -30%) scale(1);
}
.btn-sm {
  padding: 8px 24px;
  font-size: 0.75rem;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 100px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  perspective: 1000px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.glitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--primary);
  font-family: var(--font-code);
  font-size: 0.75rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 90%;
}

.glitch-mirror {
  position: relative;
  color: white;
  display: inline-block;
  mix-blend-mode: lighten;
}
.glitch-mirror::before,
.glitch-mirror::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  width: 100%;
  background: var(--bg-dark);
  clip: rect(0, 0, 0, 0);
}
.glitch-mirror::before {
  left: -2px;
  text-shadow: 2px 0 var(--danger);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-mirror::after {
  left: 2px;
  text-shadow: -2px 0 var(--primary);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.floating-stack {
  position: relative;
  width: 400px;
  height: 300px;
  transform-style: preserve-3d;
  animation: floatTilt 8s ease-in-out infinite alternate;
}
.layer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s;
}
.layer-design {
  transform: translateZ(0px) rotateZ(-2deg);
  opacity: 0.8;
}
.layer-code {
  transform: translateZ(60px) translate(40px, -40px) rotateZ(2deg);
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.code-block {
  font-family: var(--font-code);
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.kw {
  color: #c678dd;
}
.str {
  color: #98c379;
}
.func {
  color: #61afef;
}

/* --- MARQUEE --- */
/* =========================================
   4. MARQUEE & UTILS (TEXTE DÉFILANT INFINI)
   ========================================= */
.tech-marquee {
  padding: 25px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  transform: rotate(-1deg); /* L'angle stylé */
  margin: 80px 0;
  width: 100vw; /* Prend toute la largeur */
  max-width: 100%;
}

.tech-marquee .track {
  white-space: nowrap;
  will-change: transform;
  /* La largeur max-content est CRUCIALE pour que le texte ne se coupe pas */
  width: max-content;
  /* 30s pour un défilement noble, pas trop rapide */
  animation: marquee 30s linear infinite;
}

.tech-marquee .content {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: transparent;
  /* Contour uniquement */
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-right: 20px; /* Petit espace pour la boucle */
}

/* Interaction au survol (Desktop uniquement) */
.tech-marquee:hover .content {
  color: white;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 0 8px white);
  transition: 0.3s;
}
.tech-marquee:hover .track {
  animation-play-state: paused; /* Le texte s'arrête pour être lu */
}

/* --- SERVICES HUD --- */
.services-section {
  padding: 50px 0 150px;
  position: relative;
}
.section-title {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.section-subtitle {
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 80px;
}

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

.hud-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  position: relative;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hud-card:hover {
  transform: translateY(-5px);
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}
.t-l {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}
.t-r {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}
.b-l {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}
.b-r {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.hud-card:hover .corner {
  width: 20px;
  height: 20px;
  border-color: var(--primary);
}

.hud-icon {
  width: 50px;
  height: 50px;
  color: var(--text-muted);
  margin-bottom: 25px;
  transition: 0.4s;
}
.hud-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 0 transparent);
  transition: 0.4s;
}
.hud-card:hover .hud-icon {
  color: var(--primary);
  transform: scale(1.1);
}
.hud-card:hover .hud-icon svg {
  filter: drop-shadow(0 0 10px var(--primary));
}

.hud-card:hover .sec-icon {
  color: var(--danger);
}
.hud-card:hover .sec-icon svg {
  filter: drop-shadow(0 0 10px var(--danger));
}
.hud-card:hover .design-icon {
  color: var(--accent);
}
.hud-card:hover .design-icon svg {
  filter: drop-shadow(0 0 10px var(--accent));
}
.hud-card:hover .auto-icon {
  color: #22c55e;
}
.hud-card:hover .auto-icon svg {
  filter: drop-shadow(0 0 10px #22c55e);
}

.hud-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.hud-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.specs-row {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.specs-row li {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.wide-hud {
  grid-column: span 2;
}
.hud-flex {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.hud-text-part {
  flex: 1;
  padding-right: 20px;
}
.scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  opacity: 0.1;
  pointer-events: none;
}
.hud-card:hover .scan-line {
  animation: scanDown 1.5s ease-in-out infinite;
}

.magic-text {
  background: linear-gradient(
    to right,
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--primary)
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGradient 4s linear infinite;
  font-weight: 800;
}
.h-cyan {
  color: var(--primary);
}
.h-red {
  color: var(--danger);
}
.h-purple {
  color: var(--accent);
}
.h-green {
  color: #22c55e;
}

/* --- NEW REALISATIONS SECTION --- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-top: 80px;
}
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.reverse-layout {
  direction: rtl;
}
.reverse-layout .card-info {
  direction: ltr;
}

/* VISUELS MOCKUPS CSS PURES */
.card-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.glow-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  filter: blur(80px);
  opacity: 0.2;
  z-index: -1;
}
.glow-bg.cyan {
  background: var(--primary);
}
.glow-bg.purple {
  background: var(--accent);
}

/* Phone Mockup */
.phone-mockup {
  width: 260px;
  height: 500px;
  background: #020617;
  border: 4px solid #334155;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: rotate(-5deg);
  transition: 0.4s;
}
.project-card:hover .phone-mockup {
  transform: rotate(0deg) scale(1.05);
  border-color: var(--primary);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background: #334155;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

/* Browser Mockup */
.browser-mockup-clean {
  width: 100%;
  max-width: 550px;
  height: 350px;
  background: #0f172a;
  border-radius: 10px;
  border: 1px solid #334155;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-10deg);
  transition: 0.4s;
}
.project-card:hover .browser-mockup-clean {
  transform: perspective(1000px) rotateY(0deg) scale(1.05);
  border-color: var(--accent);
}
.browser-header {
  height: 30px;
  background: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 15px;
}

/* Contenu Mockups (Placeholders) */
.app-ui {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(to bottom, #0f172a, #020617);
}
.qr-box {
  width: 150px;
  height: 150px;
  background: white;
  padding: 10px;
  border-radius: 10px;
}
.qr-box svg {
  width: 100%;
  height: 100%;
  color: black;
}
.app-text-lines {
  width: 80%;
  height: 10px;
  background: #334155;
  border-radius: 5px;
}
.app-btn {
  width: 60%;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  margin-top: 20px;
  opacity: 0.5;
}

.dash-ui {
  display: flex;
  height: 100%;
}
.sidebar {
  width: 60px;
  background: #1e293b;
  height: 100%;
}
.calendar-grid {
  flex: 1;
  padding: 20px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-header {
  height: 40px;
  background: #334155;
  border-radius: 6px;
  width: 100%;
}
.cal-body {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.sync-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  color: #020617;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Texte Projets */
.p-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 10px;
}
.p-year {
  font-family: var(--font-code);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.card-info h3 {
  font-size: 2rem;
  margin: 15px 0;
}
.p-desc {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1rem;
}
.p-desc strong {
  color: white;
}
.tech-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tech-tags span {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  color: #cbd5e1;
  border: 1px solid transparent;
  transition: 0.3s;
}
.tech-tags span:hover {
  border-color: var(--primary);
  color: white;
}
.highlight-purple {
  color: var(--accent);
}

/* --- ABOUT SECTION (CLEAN TAGS) --- */
.about-section {
  padding: 100px 0;
}
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.profile-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}
.avatar-box {
  width: 60px;
  height: 60px;
  background: #0f172a;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.2rem;
}
.avatar-box.purple {
  border-color: var(--accent);
  color: var(--accent);
}
.profile-title h3 {
  font-size: 1.5rem;
  margin: 0;
}
.role-highlight {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
}
.role-highlight.strat {
  color: var(--accent);
}

.philosophy {
  font-style: italic;
  color: #cbd5e1;
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.6;
}
.area-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
}
.t-blue {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.t-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #020617;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 50px;
}

/* --- ANIMATIONS (Keyframes) --- */
@keyframes gridMove {
  0% {
    transform: rotateX(60deg) translateY(0);
  }
  100% {
    transform: rotateX(60deg) translateY(60px);
  }
}
@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}
@keyframes shineGradient {
  to {
    background-position: 300% center;
  }
}
@keyframes floatTilt {
  0% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(0);
  }
  100% {
    transform: rotateY(-5deg) rotateX(10deg) translateY(-20px);
  }
}
@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes hologramDeepFloat {
  0% {
    transform: translateY(0px) rotateY(-45deg) scale(1);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
  }
  50% {
    transform: translateY(-12px) rotateY(45deg) scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary));
  }
  100% {
    transform: translateY(0px) rotateY(-45deg) scale(1);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
  }
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 80px, 0);
    transform: translate(-2px, -2px) skew(2deg);
  }
  5% {
    clip: rect(50px, 9999px, 20px, 0);
    transform: translate(2px, 2px) skew(-2deg);
  }
  10% {
    clip: rect(10px, 9999px, 90px, 0);
    transform: translate(-4px, 4px);
  }
  100% {
    clip: rect(0, 0, 0, 0);
    transform: translate(0);
  }
}
@keyframes glitch-anim-2 {
  0% {
    clip: rect(0, 0, 0, 0);
    transform: translate(0);
  }
  20% {
    clip: rect(60px, 9999px, 10px, 0);
    transform: translate(2px, -2px) skew(-2deg);
  }
  25% {
    clip: rect(10px, 9999px, 50px, 0);
    transform: translate(-2px, 2px) skew(2deg);
  }
  100% {
    clip: rect(0, 0, 0, 0);
    transform: translate(0);
  }
}
@keyframes scanDown {
  0% {
    top: -20%;
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    top: 120%;
    opacity: 0;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* On déplace de la moitié (car le texte est doublé) */
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-grid,
  .bento-grid,
  .hud-grid,
  .projects-grid,
  .duo-grid,
  .project-card {
    grid-template-columns: 1fr;
  }
  .wide-hud,
  .wide-card {
    grid-column: span 1;
  }
  .hero-grid {
    text-align: center;
  }
  .hero-visual,
  .desktop-nav,
  .custom-cursor,
  #particle-canvas,
  .hud-visual-part {
    display: none;
  }
  .reverse-layout {
    direction: ltr;
  }
  .reverse-layout .card-info {
    direction: ltr;
  }
  * {
    cursor: auto;
  }
}

/* =========================================
   12. EFFET FLASHLIGHT TEXTE (VERSION RADICALE V2)
   ========================================= */

/* A. Pour les TITRES et TEXTES BLANCS (h1, h2, h3, Liens nav, Boutons...) */




/* Exception : On protège les éléments colorés spécifiques */
.tag,
.role-badge,
.p-badge,
.highlight-purple,
.h-cyan,
.h-red,
.h-purple,
.h-green,
/* AJOUT ICI : On force le remplissage du texte pour tes classes h- */
[class^="h-"] { 
  -webkit-text-fill-color: currentColor !important; 
  background-clip: border-box !important;
  background-image: none !important;
}

/* Désactivation sur mobile */
@media (max-width: 992px) {
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  span,
  a,
  .btn {
    background-image: none !important;
    -webkit-text-fill-color: initial !important;
    background-clip: border-box !important;
  }
}
/* =========================================
   13. MOBILE RESPONSIVE (VERSION GYROSCOPIQUE)
   ========================================= */

/* 1. PAR DÉFAUT (PC) : ON CACHE LE MENU MOBILE */
.mobile-nav-overlay,
.burger-menu {
  display: none !important;
}

/* 2. VERSION MOBILE & TABLETTE */
@media (max-width: 992px) {
  /* --- GLOBAL & LAYOUT --- */
  .container {
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
    width: 100vw;
  }

  /* Force l'affichage du fond */
  #particle-canvas,
  .interactive-bg,
  .animated-background {
    display: block !important;
    opacity: 1 !important;
    z-index: -10;
  }
  .custom-cursor {
    display: none !important;
  }

  /* --- HEADER & MENU --- */
  .desktop-nav,
  .desktop-btn {
    display: none !important;
  }

  .burger-menu {
    display: flex !important;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
    position: relative;
  }
  .mobile-nav-overlay {
    display: flex !important;
  }

  .bar {
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--primary);
  }

  /* Animation Burger */
  .burger-menu.active .b1 {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger-menu.active .b2 {
    opacity: 0;
  }
  .burger-menu.active .b3 {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Overlay Style */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    transform: scale(1.1);
  }
  .mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
  }

  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    z-index: 2;
  }

  .mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
  }
  .mobile-link.highlight {
    -webkit-text-stroke: 1px var(--primary);
    color: rgba(6, 182, 212, 0.1);
  }

  /* --- HERO --- */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
    display: flex;
  }

  .hero-visual {
    display: flex !important;
    justify-content: center;
    height: 250px;
    margin-top: 20px;
  }
  .floating-stack {
    width: 280px;
    height: 200px;
    animation: floatTilt 6s ease-in-out infinite alternate !important;
    transform: rotateY(-10deg) rotateX(10deg);
  }
  .layer-code {
    transform: translateZ(30px) translate(20px, -20px) rotateZ(2deg);
  }

  /* --- MARQUEE --- */
  .tech-marquee {
    margin: 40px 0;
    transform: rotate(-2deg);
    width: 105vw;
    margin-left: -10px;
  }
  .tech-marquee .track {
    animation: marquee 20s linear infinite !important;
    width: max-content;
  }
  .tech-marquee .content {
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }

  /* --- SERVICES HUD & CARTES VIVANTES --- */
  .hud-grid,
  .projects-grid,
  .project-card,
  .duo-grid {
    grid-template-columns: 1fr;
  }
  .wide-hud,
  .wide-card {
    grid-column: span 1;
  }

  /* 1. LISIBILITÉ TEXTE RESTAURÉE */
  h1:not(.hero-title),
  h2,
  h3,
  .hud-content h3,
  .project-card h3 {
    color: white !important;
    background-image: none !important; /* On vire le flashlight */
    text-shadow: none !important; /* On vire le glow flou */
    -webkit-text-fill-color: white !important;
  }

  /* 2. FOND OPAQUE POUR CONTRASTE */
  .hud-card,
  .cyber-card,
  .project-card {
    z-index: 1;
    /* Animation de base : Gyro Float */
    animation: gyroFloat 6s ease-in-out infinite;
  }

  /* Désynchronisation des cartes pour effet organique */
  .hud-card:nth-child(1) {
    animation-delay: 0s;
  }
  .hud-card:nth-child(2) {
    animation-delay: 1s;
  }
  .hud-card:nth-child(3) {
    animation-delay: 2s;
  }
  .hud-card:nth-child(4) {
    animation-delay: 0.5s;
  }

  /* 3. AUTO-PLAY DES EFFETS VISUELS */
  /* Bordure rotative toujours active mais discrète */
  .hud-card::before,
  .cyber-card::before {
    opacity: 0.5 !important;
  }

  /* Scanline (Laser) passe toutes les 4s */
  .scan-line {
    animation: scanDown 4s ease-in-out infinite !important;
    opacity: 0.2 !important;
    z-index: 0; /* Derrière le texte */
  }

  /* Coins toujours allumés */
  .corner {
    width: 15px;
    height: 15px;
    border-color: rgba(6, 182, 212, 0.5) !important;
  }

  /* --- LAYOUTS SPÉCIFIQUES --- */
  .hud-flex {
    flex-direction: column;
    text-align: center;
  }
  .hud-text-part {
    padding: 0;
  }
  .hud-visual-part {
    display: none;
  }

  /* Projets */
  .projects-grid {
    gap: 80px;
  }
  .project-card {
    gap: 40px;
    transform-style: preserve-3d;
  } /* Important pour la 3D */
  .reverse-layout {
    direction: ltr;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
    margin: 0 auto;
    /* Le téléphone flotte un peu plus fort */
    animation: floatTilt 5s ease-in-out infinite alternate !important;
  }
  .browser-mockup-clean {
    max-width: 100%;
    height: 200px;
    animation: floatTilt 7s ease-in-out infinite alternate-reverse !important;
  }
  .glow-bg {
    width: 150px;
    height: 150px;
    opacity: 0.3;
  }

  /* About */
  .duo-grid {
    gap: 40px;
  }
  .profile-card {
    padding: 30px 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.95) !important;
    animation: gyroFloat 7s ease-in-out infinite reverse; /* Bouge à l'envers des autres */
  }
  .profile-header {
    flex-direction: column;
    gap: 15px;
    border-bottom: none;
  }
  .tags-cloud {
    justify-content: center;
  }
}

/* --- ANIMATION GYROSCOPIQUE (Mouvement complexe sur 3 axes) --- */
@keyframes gyroFloat {
  0% {
    transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
  }
  50% {
    transform: perspective(1000px) rotateX(-1deg) rotateY(1deg) translateY(0);
  }
  75% {
    transform: perspective(1000px) rotateX(1deg) rotateY(2deg) translateY(5px);
  }
  100% {
    transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0);
  }
}

/* =========================================
   11b. PRICING & MAINTENANCE (NEW)
   ========================================= */
.pricing-section {
  padding: 50px 0 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

/* Carte "Populaire" */
.pricing-card.featured {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
}
.best-value-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #020617;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

/* Header Prix */
.p-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.p-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  color: var(--text-muted);
}
.p-icon svg {
  width: 100%;
  height: 100%;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.currency {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: white;
}
.euro {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 600;
}
/* --- COMPARAISON PRIX MARCHÉ (Code à mettre en DEHORS du media query) --- */
.market-comp {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px; /* Un peu d'espace sous le texte */
    font-family: var(--font-code);
    opacity: 0.9;
    display: block; /* Force l'affichage sur une ligne */
}

.crossed {
    text-decoration: line-through; /* La barre */
    color: #ef4444; /* Rouge */
    font-weight: 700;
    margin-left: 5px;
    font-size: 1rem;
}   

/* Liste Features */
.features-list {
  margin: 20px 0 30px;
  flex: 1;
}
.features-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check {
  color: var(--primary);
  font-weight: 800;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* --- MAINTENANCE (MCO) --- */
.maintenance-section {
  margin-top: 100px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.maintenance-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.5rem;
  color: var(--text-muted);
}

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

.mco-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: 0.3s;
}
.mco-card:hover {
  border-color: var(--primary);
}
.mco-card.highlight-border {
  border-color: rgba(6, 182, 212, 0.3);
}

.mco-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}
.mco-header h4 {
  font-size: 1rem;
  color: white;
}
.mco-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.mco-mo {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.mco-list li {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 5px;
}
.mco-list strong {
  color: white;
}

/* Responsive Pricing */
@media (max-width: 992px) {
  .pricing-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: scale(1.02);
    margin: 20px 0;
    border-width: 2px;
  }
}

/* =========================================
   FIX IFRAMES : VISIBILITÉ GARANTIE
   ========================================= */

/* 1. Le Conteneur (L'écran) */
.screen-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: #0f172a; /* Fond de base */
    position: relative;  /* INDISPENSABLE pour que l'iframe se positionne par rapport à ça */
}

/* 2. L'Iframe (Règle commune) */
.project-iframe {
    position: absolute; /* On la force à se coller */
    top: 0;
    left: 0;
    border: none;
    display: block;
    background-color: #ffffff; /* FORCE un fond blanc (ou ta couleur) pour être sûr qu'on la voit */
    
    /* LE SECRET : On définit le point de pivot en haut à gauche */
    transform-origin: 0 0; 
}

/* 3. Réglage TÉLÉPHONE (Barber) */
.phone-mockup .project-iframe {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    background-color: #f8fafc; /* Fond clair pour l'app */
}

/* 4. Réglage NAVIGATEUR (Conciergerie) */
.browser-mockup-clean .project-iframe {
    /* On reprend des valeurs un peu plus sages pour être sûr que ça s'affiche */
    width: 200%;       
    height: 200%;
    transform: scale(0.5); 
    
    background-color: #0f172a; /* Fond sombre pour le dash */
}

/* Ajustement hauteur navigateur */
.browser-mockup-clean .screen-content {
    height: calc(100% - 30px);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* =========================================
   REVIEWS CLIENTS (STYLE TRANSMISSION)
   ========================================= */
.review-box {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary); /* Ligne Cyan à gauche */
    padding: 20px;
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: 15px;
    position: relative;
    transition: 0.3s;
}

/* Variante Violette pour Conciergerie */
.review-box.r-purple { border-left-color: var(--accent); }

.review-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.review-icon {
    color: var(--text-muted);
    opacity: 0.5;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.review-box.r-purple .review-icon { color: var(--accent); }

.r-text {
    font-style: italic;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.r-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

.r-name {
    font-weight: 700;
    color: white;
}

.r-role {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Adaptation Mobile */
@media (max-width: 992px) {
    .review-box { margin-top: 25px; padding: 15px; }
    .r-text { font-size: 0.9rem; }
}

/* --- ETOILES AVIS --- */
.review-stars {
    display: flex;
    gap: 4px; /* Espace entre les étoiles */
    margin-bottom: 10px;
}

.review-stars svg {
    width: 14px;
    height: 14px;
    color: var(--primary); /* Cyan par défaut */
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4)); /* Petit effet néon */
}

/* Version Violette */
.review-box.r-purple .review-stars svg {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
}
