@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Exo+2:wght@300;400;600;800&display=swap');

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

:root {
  --cyan: #00ffcc;
  --dark: #030a0a;
  --card-bg: rgba(0, 255, 204, 0.04);
  --border: rgba(0, 255, 204, 0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: #ccc;
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── NAVBAR (reprise du style existant) ── */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 0;
  background: rgba(3, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.menu-items {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
}

input[type="checkbox"] { display: none; }

nav a {
  position: relative;
  color: #999;
  text-decoration: none;
  font-size: 0.9em;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  transition: color 0.3s;
  font-family: 'Share Tech Mono', monospace;
}

nav a:hover { color: var(--cyan); border: none; background: transparent; }

.box.a {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  animation: none;
}

.active-page { color: var(--cyan) !important; }


.seo-h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}




/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 4rem;
}

.hero-inner { max-width: 800px; }

.glitch-wrapper { margin-bottom: 1.5rem; }

.glitch {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0,255,204,0.5);
  animation: glitch-anim 4s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}

.glitch::before {
  color: #ff00aa;
  animation: glitch-before 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: #00aaff;
  animation: glitch-after 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-anim {
  0%, 90%, 100% { transform: none; }
  92% { transform: skewX(2deg); }
  94% { transform: skewX(-2deg); }
}

@keyframes glitch-before {
  0%, 90%, 100% { transform: none; opacity: 0; }
  92% { transform: translate(-3px, -1px); opacity: 0.8; }
  94% { transform: translate(3px, 1px); opacity: 0; }
}

@keyframes glitch-after {
  0%, 90%, 100% { transform: none; opacity: 0; }
  93% { transform: translate(3px, 1px); opacity: 0.8; }
  95% { transform: translate(-3px, -1px); opacity: 0; }
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--cyan);
  transition: left 0.3s;
  z-index: -1;
}

.cta-btn:hover { color: #000; border-color: var(--cyan); }
.cta-btn:hover::before { left: 0; }
.cta-btn:hover { border: 1px solid var(--cyan); background: transparent; animation: none; padding-right: 2.5rem; }

.cta-large {
  font-size: 1.1rem;
  padding: 1.1rem 3rem;
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.label-tag {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyan);
  font-size: 0.8rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.15em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 3rem;
}

/* ── EXPLAIN ── */
.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.explain-text p {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.explain-text strong { color: var(--cyan); }

.brain-diagram {
  position: relative;
  width: 300px;
  height: 300px;
  margin: auto;
}

.brain-diagram .lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.center-node {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0,255,204,0.6);
  animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
  0%,100% { box-shadow: 0 0 20px rgba(0,255,204,0.4); }
  50% { box-shadow: 0 0 50px rgba(0,255,204,0.9); }
}

.node {
  position: absolute;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  background: rgba(0,255,204,0.05);
  border-radius: 4px;
}

.n1 { top: 10px; left: 10px; }
.n2 { top: 10px; right: 10px; }
.n3 { bottom: 10px; left: 10px; }
.n4 { bottom: 10px; right: 10px; }

/* ── TYPES GRID ── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.type-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-color, var(--cyan));
  opacity: 0.8;
}

.type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  border-color: rgba(0,255,204,0.3);
}

.type-icon { font-size: 2rem; margin-bottom: 1rem; }

.type-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
}

.type-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-row span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(0,255,204,0.2);
  color: rgba(0,255,204,0.7);
  border-radius: 3px;
  background: rgba(0,255,204,0.04);
}

/* ── PROCESS ── */
.section-process { text-align: center; }

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 1.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.step-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.5rem;
  color: var(--cyan);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--cyan);
  opacity: 0.4;
  padding: 0 0.5rem;
  align-self: center;
}

/* ── CTA FINAL ── */
.section-cta {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.section-cta h2 { margin-bottom: 1rem; }
.section-cta p { color: rgba(255,255,255,0.45); margin-bottom: 2rem; }

.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
}

.contact-links a {
  color: var(--cyan);
  text-decoration: none;
}

/* ── MEDIA QUERIES ── */
@media (max-width: 968px) {
  .explain-grid { grid-template-columns: 1fr; }
  .brain-diagram { display: none; }
  .process-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }

  .navbar-container input[type="checkbox"],
  .navbar-container .hamburger-lines { display: block; }

  .navbar-container {
    display: block;
    position: relative;
    height: 64px;
  }

  .navbar-container input[type="checkbox"] {
    position: absolute;
    height: 32px; width: 30px;
    top: 20px; left: 20px;
    z-index: 5; opacity: 0;
  }

  .navbar-container .hamburger-lines {
    height: 23px; width: 35px;
    position: absolute;
    top: 17px; left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .navbar-container .hamburger-lines .line {
    display: block;
    height: 4px; width: 100%;
    border-radius: 10px;
    background: var(--cyan);
  }

  .navbar-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }
  .navbar-container .hamburger-lines .line2 { transition: transform 0.2s ease-in-out; }
  .navbar-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .navbar .menu-items {
    height: 70vh; max-width: 220px;
    transform: translate(-300%);
    flex-direction: column;
    padding-left: 50px;
    transition: transform 0.5s ease-in-out;
    border: 1px solid var(--border);
    background: rgba(3,10,10,0.95);
  }

  .navbar-container input[type="checkbox"]:checked ~ .menu-items { transform: translateX(0); }
  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 { transform: rotate(35deg); }
  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 { transform: scaleY(0); }
  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 { transform: rotate(-35deg); }
}

@media (max-width: 500px) {
  html { font-size: 65%; }
}
