/* Polices hébergées sur le site (plus rapide, aucun appel à Google) */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/bebas-neue-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

/* ==========================================================
   Ethan Lumbroso — Portfolio
   Direction : noir éditorial, monochrome, inspiré d'Obsidian
   ========================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --muted: #8a8a8a;
  --dim: #4a4a4a;
  --white: #ffffff;

  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 76px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--white); color: var(--bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
html { scrollbar-color: #2a2a2a var(--bg); scrollbar-width: thin; }

/* Grain de film */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.brand { font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: 1; }
.brand span { color: #4ade80; }
.toplinks { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; }
.toplinks > a { position: relative; color: var(--text); }
.toplinks > a::after, .sidenav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.toplinks > a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: inline-flex; gap: 6px; font-size: 12px; letter-spacing: .1em; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 100px; transition: border-color .3s; }
.lang:hover { border-color: var(--muted); }
.lang i { font-style: normal; color: var(--dim); }
.lang span { color: var(--dim); transition: color .3s; }
.lang span.on { color: var(--white); }

.burger { display: none; width: 28px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 4px; }
.burger span:last-child { top: 12px; }
.burger[aria-expanded="true"] span:first-child { top: 8px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 8px; transform: rotate(-45deg); }

/* ---------- Side nav ---------- */
.sidenav {
  position: fixed; right: var(--gutter); bottom: 48px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  font-size: 13px; font-weight: 500;
}
.sidenav { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.at-top .sidenav { opacity: 0; transform: translateY(10px); pointer-events: none; }
.sidenav a { position: relative; color: var(--muted); transition: color .3s; }
.sidenav a:hover { color: var(--text); }
.sidenav a.active { color: var(--white); }
.sidenav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Mobile menu ---------- */
.mobilemenu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.mobilemenu a { font-family: var(--display); font-size: clamp(48px, 14vw, 88px); line-height: 1.05; color: var(--text); transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s; }
.mobilemenu a:hover { color: var(--muted); }
.menu-open .mobilemenu { opacity: 1; visibility: visible; }
.menu-open .mobilemenu a { transform: none; opacity: 1; }
.menu-open .mobilemenu a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobilemenu a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobilemenu a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobilemenu a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobilemenu a:nth-child(6) { transition-delay: .2s; }

/* ---------- Typographie commune ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; flex-direction: column; gap: 10px;
}
.eyebrow::after { content: ""; width: 18px; height: 1px; background: var(--muted); }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 9vw, 128px); line-height: .92; letter-spacing: .005em; color: var(--text);
  margin-top: 24px;
}
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 100px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.btn-solid { background: var(--white); color: var(--bg); }
.btn-solid:hover { background: #d4d4d4; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--gutter) 64px;
  overflow: hidden;
}
/* Emplacement pour une future photo N&B : ajoute background-image ici */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 70% 35%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(40% 40% at 15% 90%, rgba(255,255,255,0.04), transparent 70%);
  background-size: cover; background-position: center;
}
/* Lignes de code animées */
.code-rain {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
  opacity: .55;
}
/* Dégradé de sortie du hero vers le fond de page */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,.7) 55%, var(--bg) 100%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, min(14vw, 19vh), 220px); line-height: .86; letter-spacing: .005em;
  margin: 24px 0 40px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.loaded .hero-title .line > span { transform: none; }
.hero-title .line-dim { color: #3c3c3c; -webkit-text-stroke: 0; }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-right: 140px; }
.hero-lead { max-width: 460px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 48px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.scrollcue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; z-index: 1; }
.scrollcue span { position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--white); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(110px, 16vw, 200px) 0 0; position: relative; }
.section-head { margin-bottom: clamp(56px, 8vw, 96px); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1040px; }
.about-text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.quote {
  margin: clamp(80px, 12vw, 150px) 0 0; padding: 0;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(44px, 7vw, 104px); line-height: .95; color: var(--text);
  max-width: 1100px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat .num, .stat .plus { font-family: var(--display); font-size: clamp(52px, 6vw, 84px); line-height: 1; }
.stat .plus { color: var(--dim); }
.stat .plus-max { font-size: clamp(22px, 2.4vw, 34px); margin-left: 8px; letter-spacing: .04em; }
.stat p { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); letter-spacing: .02em; max-width: 220px; }

/* Services */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px minmax(200px, 1fr) 1.6fr; align-items: baseline; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .5s;
  position: relative;
}
.service::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--bg-2); opacity: 0; transition: opacity .5s var(--ease); z-index: -1; }
.service:hover::before { opacity: 1; }
.service .idx { font-size: 13px; color: var(--dim); letter-spacing: .1em; }
.service h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; transition: transform .5s var(--ease); }
.service:hover h3 { transform: translateX(10px); }
.service p { color: var(--muted); font-size: 15px; max-width: 460px; }

/* Process */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-n { font-family: var(--display); font-size: clamp(64px, 7vw, 104px); line-height: .8; color: #2a2a2a; transition: color .5s var(--ease); }
.step:hover .step-n { color: var(--text); }
.step h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.01em; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 560px; }
.step-time { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); text-align: right; padding-top: 10px; }

/* Work */
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.project + .project { border-top: 1px solid var(--line); }
.project.reverse .shot { order: 2; }
.shot {
  position: relative; aspect-ratio: 16 / 11; border-radius: 6px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  filter: grayscale(1) brightness(.75);
  transition: filter .8s var(--ease), border-color .5s;
}
.project:hover .shot { filter: grayscale(0) brightness(1); border-color: var(--line-2); }
.project-meta { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.project h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 5.4vw, 76px); line-height: .95; margin-bottom: 18px; }
.project p { color: var(--muted); margin-bottom: 26px; }

/* Mockups générés en CSS */
.mock { position: absolute; inset: 7%; border-radius: 8px; background: #141414; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); overflow: hidden; transition: transform .9s var(--ease); }
.project:hover .mock { transform: scale(1.025); }
.m-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.07); background: #191919; }
.m-bar i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.m-bar i:first-child { background: #ff5f57; } .m-bar i:nth-child(2) { background: #febc2e; } .m-bar i:nth-child(3) { background: #28c840; }
.m-body { display: flex; height: calc(100% - 26px); }
.m-body aside { width: 22%; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 10px; }
.m-body aside b { display: block; height: 8px; border-radius: 4px; background: #262626; }
.m-body aside b:first-child { width: 60%; background: #e5e5e5; margin-bottom: 8px; }
.m-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis span { height: 46px; border-radius: 6px; background: linear-gradient(135deg, #1f1f1f, #191919); border: 1px solid rgba(255,255,255,.06); position: relative; }
.kpis span::after { content: ""; position: absolute; left: 10px; bottom: 10px; width: 40%; height: 10px; border-radius: 3px; background: #6d5cff; }
.kpis span:nth-child(2)::after { background: #22c55e; width: 55%; }
.kpis span:nth-child(3)::after { background: #f59e0b; width: 30%; }
.kanban { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kanban div { background: #181818; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.kanban em { display: block; height: 26px; border-radius: 4px; background: #232323; border-left: 2px solid #6d5cff; }
.kanban div:nth-child(2) em { border-color: #f59e0b; }
.kanban div:nth-child(3) em { border-color: #22c55e; }
.kanban div:nth-child(4) em { border-color: #ef4444; }

.mock-site { background: #f2efe9; }
.mock-site .m-bar { background: #e6e2da; border-color: rgba(0,0,0,.06); }
.m-hero { height: 52%; background: linear-gradient(120deg, #2b1d14, #6b4a32); padding: 8% 7%; display: flex; flex-direction: column; gap: 8px; }
.m-hero b { display: block; height: 14px; width: 55%; background: #f2efe9; border-radius: 2px; }
.m-hero b + b { width: 35%; opacity: .6; height: 8px; }
.m-hero span { margin-top: auto; width: 90px; height: 20px; border-radius: 20px; background: #f2efe9; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.m-grid span { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(160deg, #c9b8a3, #8b6b4f); }
.m-grid span:nth-child(2) { background: linear-gradient(160deg, #3d2c22, #1b130e); }

.mock-app { background: radial-gradient(circle at 50% 30%, #1d1d1d, #111); border: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; gap: 6%; }
.phone { width: 30%; aspect-ratio: 9 / 19; border-radius: 22px; background: #0d0d0d; border: 3px solid #2a2a2a; padding: 22px 10px 10px; position: relative; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 60px -10px rgba(0,0,0,.8); }
.phone-b { transform: translateY(10%); }
.notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 8px; border-radius: 8px; background: #222; }
.phone b { height: 9px; width: 55%; border-radius: 3px; background: #e5e5e5; }
.ring { align-self: center; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 6px solid #232323; border-top-color: #ff4d6d; border-right-color: #ff4d6d; margin: 6px 0; }
.phone em { display: block; height: 20px; border-radius: 6px; background: #1c1c1c; }
.phone-b em:nth-of-type(odd) { background: linear-gradient(90deg, #ff4d6d 0 35%, #1c1c1c 35%); }

.chart { flex: 1; display: flex; align-items: flex-end; gap: 6%; padding: 12px; border-radius: 6px; background: #181818; }
.chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #38bdf8, #0e3a52); }
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows em { display: block; height: 14px; border-radius: 3px; background: #1d1d1d; }

/* Grille des cadres de projets (en attendant les vrais projets) */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.projects-grid .project { display: block; padding: 0; border: 0; }
.projects-grid .project-info:empty { display: none; }

/* Stack */

/* Contact */
.contact { padding-bottom: clamp(110px, 14vw, 180px); }
.contact-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(72px, 14vw, 210px); line-height: .86; margin: 28px 0 36px; }
.contact-lead { max-width: 520px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.ccard {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
  overflow: hidden;
}
.ccard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(500px 200px at 20% 0%, rgba(74,222,128,.07), transparent 70%);
  transition: opacity .6s var(--ease);
}
.ccard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ccard:hover::before { opacity: 1; }
.ccard-head { display: flex; align-items: center; gap: 14px; }
.ccard-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); }
.ccard-icon svg { width: 20px; height: 20px; }
.ccard-label { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; background: #4ade80; animation: pulse-g 2.4s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ccard-hint { margin-top: clamp(24px, 3vw, 36px); color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 380px; }
.ccard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ccard-actions .btn { height: 46px; padding: 0 22px; white-space: nowrap; }
.ccard-actions .btn-ghost { flex: 0 1 auto; }
.ccard-actions .btn-solid { flex: 1; justify-content: space-between; }
.ccard-actions .btn-solid span:last-child { transition: transform .4s var(--ease); }
.ccard-actions .btn-solid:hover span:last-child { transform: translateX(4px); }
.js-copy { min-width: 104px; }
.js-copy.copied { border-color: #4ade80; color: #4ade80; }

.contact-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; }
.contact-facts li { padding: 22px clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.contact-facts li + li { border-left: 1px solid var(--line); }
.contact-facts span { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--dim); }
.contact-facts b { font-weight: 400; font-size: 15px; color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Laisse de la place à la nav latérale sur écrans moyens */
@media (min-width: 901px) and (max-width: 1500px) {
  .container { padding-right: calc(var(--gutter) + 110px); }
}
@media (max-width: 1100px) {
  .service { grid-template-columns: 60px 1fr; row-gap: 14px; }
  .service p { grid-column: 2; }
  .step { grid-template-columns: 120px 1fr; }
  .step-time { grid-column: 2; text-align: left; padding-top: 0; }
  .hero-foot { padding-right: 0; }
}
@media (max-width: 900px) {
  .sidenav { display: none; }
  .code-rain { opacity: .6; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .burger { display: block; }
  .toplinks > a { display: none; }
  .about-grid, .project { grid-template-columns: 1fr; }
  .project.reverse .shot { order: 0; }
  .project-info:empty { display: none; }
  .shot { filter: grayscale(.2) brightness(.95); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 56px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; white-space: nowrap; }
  .scrollcue { display: none; }
  .service { grid-template-columns: 1fr; }
  .service p { grid-column: 1; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .step-time { grid-column: 1; }
  .contact-facts { grid-template-columns: 1fr; }
  .contact-facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ccard-head { flex-wrap: wrap; }
  .pill { margin-left: 0; order: 3; width: max-content; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 24px 12px 0 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .mock { inset: 5%; }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); position: relative; }
.faq-item::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: rgb(74, 222, 128); transition: width .7s var(--ease); }
.faq-item.open::before { width: 100%; }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 16px;
  padding: 28px 0; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer;
  font: 500 clamp(17px, 1.5vw, 21px)/1.35 var(--sans); letter-spacing: -.01em;
  transition: color .3s, padding .5s var(--ease);
}
.faq-q:hover { color: var(--white); padding-left: 6px; }
.faq-q:focus-visible { outline: 1px solid var(--line-2); outline-offset: 4px; }
.faq-n { font-family: var(--display); font-size: 22px; color: var(--dim); transition: color .4s; }
.faq-item.open .faq-n, .faq-q:hover .faq-n { color: rgb(74, 222, 128); }
.faq-icon { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon { background: var(--white); border-color: var(--white); color: var(--bg); transform: rotate(180deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 44px 30px 64px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 640px; opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
  .faq-wrap .section-head { position: static; margin-bottom: clamp(40px, 8vw, 64px); }
}
@media (max-width: 560px) {
  .faq-q { grid-template-columns: 34px 1fr 28px; gap: 12px; padding: 22px 0; font-size: 16px; }
  .faq-n { font-size: 18px; }
  .faq-a p { padding: 0 0 24px 46px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-a p, .faq-icon, .faq-item::before { transition: none; }
}

@media (max-width: 420px) {
  .ccard-actions .btn, .ccard-actions .btn-solid { flex: 1 1 100%; justify-content: center; gap: 10px; }
}

/* ==========================================================
   Page Mentions légales
   ========================================================== */
.legal { padding: clamp(130px, 16vw, 190px) 0 clamp(80px, 10vw, 140px); }
.legal .container { max-width: 920px; }
.legal .display { font-size: clamp(56px, 9vw, 120px); margin-top: 18px; }
.legal-intro { margin-top: 28px; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal-block { margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.legal-block h2 { display: flex; align-items: baseline; gap: 16px; font: 500 clamp(20px, 2vw, 26px)/1.3 var(--sans); letter-spacing: -.01em; color: var(--white); margin-bottom: 22px; }
.legal-block h2 span { font-family: var(--display); font-weight: 400; font-size: 20px; color: rgb(74, 222, 128); letter-spacing: .04em; }
.legal-block p { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 700px; }
.legal-block p + p { margin-top: 14px; }
.legal-block a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color .3s; }
.legal-block a:hover { text-decoration-color: var(--text); }
.legal-block dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.legal-block dl > div:last-child { border-bottom: 0; }
.legal-block dt { color: var(--muted); }
.legal-block dd { color: var(--text); line-height: 1.6; }
.legal .todo { background: rgba(74, 222, 128, .08); color: #86efac; border: 1px dashed rgba(74, 222, 128, .45); border-radius: 6px; padding: 1px 8px; }
.legal-reveal { margin-top: 8px; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13px; color: var(--text); transition: border-color .3s; }
.legal-reveal:hover { border-color: var(--text); }
.js-reveal-out { display: block; }
.legal-update { margin-top: clamp(48px, 6vw, 72px); font-size: 13px; color: var(--dim); }
.legal-back { font-size: 13px; }
@media (max-width: 560px) {
  .legal-block dl > div { grid-template-columns: 1fr; gap: 4px; }
}
.footer-links { display: inline-flex; gap: 24px; }
.legal-block dd { margin: 0; }
@media (max-width: 900px) { .toplinks > a.legal-back { display: inline; } }

/* ---------- Contact : réserver un appel ---------- */
.ccard-book {
  grid-column: 1 / -1;
  display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 56px);
  border-color: rgba(74, 222, 128, .22);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(74, 222, 128, .07), transparent 55%),
    linear-gradient(180deg, #141414, #0f0f0f);
}
.ccard-book:hover { border-color: rgba(74, 222, 128, .4); }
.ccard-book .ccard-icon { color: #4ade80; border-color: rgba(74, 222, 128, .3); }
.book-title { margin-top: clamp(22px, 3vw, 32px); max-width: 560px; font: 500 clamp(22px, 2.4vw, 32px)/1.2 var(--sans); letter-spacing: -.02em; color: var(--white); }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.book-meta li { font-size: 12px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; white-space: nowrap; }
.book-cta { flex: none; height: 54px; padding: 0 26px; gap: 28px; white-space: nowrap; }
.book-cta span:last-child { transition: transform .4s var(--ease); }
.book-cta:hover span:last-child { transform: translateX(4px); }
@media (max-width: 900px) {
  .ccard-book { flex-direction: column; align-items: stretch; }
  .book-cta { justify-content: space-between; }
}

/* ---------- Projet vedette : Pierrae ---------- */
.projects-grid .project.feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(90% 120% at 0% 0%, rgba(74,222,128,.05), transparent 60%), linear-gradient(180deg, #121212, #0d0d0d);
  transition: border-color .5s var(--ease);
}
.projects-grid .project.feature:hover { border-color: var(--line-2); }
.feature-visual { position: relative; padding: 0 9% 9% 0; }
.fv-browser {
  border-radius: 10px; overflow: hidden; background: #191919;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -24px rgba(0,0,0,.85);
  transition: transform .9s var(--ease);
}
.fv-browser img { display: block; width: 100%; height: auto; }
.fv-browser .m-bar { height: 30px; }
.m-url { margin: 0 auto; transform: translateX(-24px); padding: 3px 14px; border-radius: 6px; background: #222; color: #8a8a8a; font-size: 11px; letter-spacing: .02em; }
.fv-phone {
  position: absolute; right: 0; bottom: 0; width: 27%;
  padding: 5px; border-radius: 26px; background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -10px rgba(0,0,0,.9), 0 0 0 6px rgba(10,10,10,.6);
  transition: transform .9s var(--ease);
}
.fv-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; border-radius: 21px; }
.project.feature:hover .fv-browser { transform: translateY(-4px); }
.project.feature:hover .fv-phone { transform: translateY(-10px) rotate(-1.5deg); }
.feature-info h3 { margin-bottom: 10px; }
.feature-info .project-meta { flex-wrap: wrap; gap: 6px 16px; letter-spacing: .14em; font-size: 11px; }
.feature-info .feature-lead { color: var(--text); font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; margin-bottom: 14px; }
.feature-info p { margin-bottom: 22px; line-height: 1.65; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.feature-list li { font-size: 12px; color: var(--text); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 100px; white-space: nowrap; }
.feature-info .feature-note { margin: 0; font-size: 13px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .projects-grid .project.feature { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .projects-grid .project.feature { padding: 18px 18px 26px; border-radius: 14px; }
  .fv-phone { width: 30%; border-radius: 18px; padding: 3px; }
  .fv-phone img { border-radius: 15px; }
  .m-url { display: none; }
}

/* Texte réservé aux lecteurs d'écran et aux moteurs de recherche */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================
   Pages services, étude de cas et 404
   ========================================================== */
.sub-page .topbar { gap: 16px; }
.sub-page .toplinks { gap: 20px; }
.top-cta { height: 40px; padding: 0 18px; font-size: 13px; }
@media (max-width: 900px) { .toplinks > a.top-cta { display: inline-flex; } }
.svc-hero { padding: clamp(130px, 16vw, 200px) 0 0; position: relative; }
.svc-hero::before {
  content: ""; position: absolute; inset: 0 0 -20% 0; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 80% 10%, rgba(74,222,128,.06), transparent 70%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--dim); }
.svc-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 8vw, 120px); line-height: .9; margin: 22px 0 28px; max-width: 14ch; }
.svc-lead { max-width: 640px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.svc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.svc-meta { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.svc-split { display: grid; grid-template-columns: minmax(240px, .8fr) 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-split .section-head { margin-bottom: 0; }
.svc-who { border-top: 1px solid var(--line); }
.svc-who li { position: relative; padding: 22px 0 22px 34px; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }
.svc-who li::before { content: ""; position: absolute; left: 4px; top: 31px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.12); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); transition: border-color .5s var(--ease), transform .5s var(--ease); }
.svc-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.svc-card h3 { font: 500 19px/1.3 var(--sans); color: var(--white); margin-bottom: 10px; letter-spacing: -.01em; }
.svc-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.cta-band { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 4vw, 56px); border: 1px solid rgba(74,222,128,.22); border-radius: 16px; background: radial-gradient(120% 140% at 100% 0%, rgba(74,222,128,.07), transparent 55%), #0f0f0f; }
.cta-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5vw, 72px); line-height: .95; margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 520px; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-related { padding-bottom: clamp(80px, 10vw, 140px); }
.related-list { margin-top: 24px; border-top: 1px solid var(--line); }
.related-list a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; transition: color .3s, padding .5s var(--ease); }
.related-list a:hover { padding-left: 8px; color: var(--white); }
.related-list a i { font-style: normal; font-family: var(--sans); font-size: 22px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.related-list a:hover i { transform: translateX(6px); color: #4ade80; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.case-tags { margin-top: 28px; }
.case-visual { padding-top: clamp(56px, 7vw, 96px); }
.case-visual .feature-visual { max-width: 980px; }
.case-text p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; max-width: 680px; }
.case-text p + p { margin-top: 18px; }
.case-text strong { color: var(--white); font-weight: 500; }
.case-note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.notfound { min-height: 60vh; }
/* liens « En savoir plus » de l'accueil */
.svc-more { grid-column: 3; justify-self: start; margin-top: -16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.svc-more:hover { color: var(--white); border-color: #4ade80; }
.feature-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; height: 44px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 14px; color: var(--text); transition: border-color .3s, transform .3s var(--ease); }
.feature-cta:hover { border-color: var(--text); transform: translateY(-2px); }
@media (max-width: 1100px) {
  .svc-more { grid-column: 2; margin-top: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .svc-split { grid-template-columns: 1fr; gap: 0; }
  .svc-split .section-head { margin-bottom: clamp(40px, 8vw, 64px); }
}
@media (max-width: 560px) {
  .svc-more { grid-column: 1; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-cta .btn, .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
  .top-cta { height: 36px; padding: 0 14px; }
  .sub-page .toplinks > a.legal-back { display: none; }
}
.toplinks > a.top-cta { color: var(--bg); }
.toplinks > a.top-cta::after { display: none; }
.svc-title { max-width: 18ch; }


/* ==========================================================
   Robot en particules + intro
   ========================================================== */
.robot-canvas { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; }
.intro-veil { display: none; }
html.intro, html.intro body { overflow: hidden; }
html.intro .intro-veil { display: block; }
.intro-veil { position: fixed; inset: 0; z-index: 100; background: #0a0a0a; transition: opacity .9s var(--ease); }
.intro-veil.out { opacity: 0; pointer-events: none; }
html.intro .robot-canvas { position: fixed; z-index: 101; }
.intro-skip { position: absolute; right: var(--gutter); bottom: 32px; z-index: 102; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(10,10,10,.6); pointer-events: auto; transition: color .3s, border-color .3s; }
.intro-skip:hover { color: var(--white); border-color: var(--text); }
html.intro .intro-skip { position: fixed; }
.fv-browser picture, .fv-phone picture { display: block; }

/* Téléphone : place réservée au buste du robot au-dessus du titre (même calcul que robot.js) */
@media (max-width: 899px) {
  .hero { padding-top: calc(76px + min(22.3svh, 49.6vw) + 22px); padding-bottom: 36px; touch-action: pan-y; }
}
