@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100;200;300;400;500;600;700;800;900&family=Geist+Mono:wght@300;400;500;600&display=swap');


/* ==========================================================================
   Codéa — Design System
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --bg-elev-1: #111113;
  --bg-elev-2: #16161A;
  --bg-elev-3: #1C1C21;

  /* Lines */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.22);

  /* Text */
  --text: #EDEDEE;
  --text-muted: #9A9AA2;
  --text-dim: #5A5A62;
  --text-faint: #3A3A42;

  /* Accent — vert lime, à utiliser avec parcimonie */
  --accent: #C8FF5C;
  --accent-glow: rgba(200, 255, 92, 0.35);
  --accent-soft: rgba(200, 255, 92, 0.08);

  /* Type */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 192px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;

  /* Easing — premium feel */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  cursor: none;
}
@media (max-width: 768px), (pointer: coarse) {
  body { cursor: auto; }
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}
@media (min-width: 769px) and (pointer: fine) {
  a, button { cursor: none; }
}
input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
img, svg {
  display: block;
  max-width: 100%;
}
/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.h-display {
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h-1 {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h-2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.h-3 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
  text-wrap: pretty;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}
/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  position: relative;
  padding: var(--space-10) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--space-9) 0; }
}
.divider {
  height: 1px;
  width: 100%;
  background: var(--line);
}
/* ==========================================================================
   Logo: Codéa with animated accent
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.025em;
  position: relative;
}
.logo .e-wrap {
  position: relative;
  display: inline-block;
}
.logo .accent-dot {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow), 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.55; transform: translateX(-50%) scale(0.85); }
}
/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 400ms var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--line-bright);
  background: rgba(255,255,255,0.03);
}
.btn .arrow {
  display: inline-block;
  transition: transform 400ms var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: opacity 250ms;
}
.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 300ms var(--ease-out), height 300ms var(--ease-out),
              border-color 300ms var(--ease-out), background 300ms var(--ease-out);
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 768px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
/* ==========================================================================
   Page transition overlay
   ========================================================================== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  pointer-events: none;
  transform: translateY(100%);
}
.page-transition.in {
  animation: page-cover 700ms var(--ease-in-out) forwards;
}
.page-transition.out {
  animation: page-uncover 700ms var(--ease-in-out) forwards;
}
@keyframes page-cover {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes page-uncover {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}
/* page content fade */
.page-content {
  animation: fade-in 800ms var(--ease-out);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* ==========================================================================
   Marquee / micro-elements
   ========================================================================== */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-muted);
  background: var(--bg-elev-1);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
/* Gridlines for hero */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.service-row-btn { padding: var(--space-6) var(--space-6) var(--space-6) var(--space-5); }
.service-detail-grid { grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 768px) {
  .service-detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-8); }
  .h-1 { font-size: clamp(64px, 10vw, 120px); }
  .h-2 { font-size: clamp(40px, 6vw, 72px); }
  .h-3 { font-size: clamp(28px, 4vw, 40px); }
}
/* responsive overrides */
@media (max-width: 900px) {
  .desktop-nav, .desktop-cta { display: none !important; }
  .mobile-burger { display: inline-flex !important; }
  .manifeste-grid { grid-template-columns: 1fr !important; gap: var(--space-5) !important; }
  .service-row { grid-template-columns: 40px 1fr !important; }
  .service-row > p, .service-row > div:last-child { grid-column: 1 / -1; }
  .service-row-btn { padding-right: 0 !important; }
  .service-detail-grid { grid-template-columns: 1fr !important; padding-left: 0 !important; padding-right: 0 !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .featured-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 901px) {
  .mobile-drawer { display: none !important; }
}
select option { background: #16161A; color: #EDEDEE; }
/* button disabled */
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
/* SEO fallback content */
.seo-fallback {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25%); }
}
/* ==========================================================================
   Animations manquantes
   ========================================================================== */
@keyframes curtain {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
