/* ===== Tokens ===== */
:root {
  --bg: #0c0c0c;
  --bg-2: #161616;
  --light: #e9e9e7;
  --light-2: #f7f7f5;
  --ink: #0c0c0c;
  --text: #f2f2f0;
  --muted: #8a8a86;
  --line: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(0, 0, 0, 0.09);
  --accent: #c4f135;
  --accent-ink: #0c0c0c;
  --pad: clamp(16px, 2.2vw, 32px);
  --font: "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
i { font-style: normal; }

/* Grille verticale décorative */
.grid-lines { position: fixed; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); pointer-events: none; z-index: 1; }
.grid-lines span { border-right: 1px solid var(--line); }
.grid-lines span:nth-child(n+2) { display: none; }
main, .footer { position: relative; z-index: 2; }

/* ===== Labels / Titres ===== */
.label { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.label.dark { color: #6b6b67; }
.big {
  font-size: clamp(48px, 7.4vw, 120px);
  font-weight: 700; line-height: .88; letter-spacing: -0.045em;
}
.huge {
  font-size: clamp(64px, 13vw, 220px);
  font-weight: 700; line-height: .84; letter-spacing: -0.055em; color: var(--ink);
}
.mega {
  font-size: clamp(60px, 12vw, 210px);
  font-weight: 700; line-height: .85; letter-spacing: -0.055em;
}
.mega em { font-style: normal; color: var(--accent); }
.dark { color: var(--ink); }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; text-transform: uppercase;
  border-radius: 2px; transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { padding: 18px 26px; font-size: clamp(14px, 1.6vw, 20px); text-transform: none; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(12,12,12,.72); backdrop-filter: blur(14px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.logo .accent { color: var(--accent); }
.logo-mark { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-mark .cursor, .logo .accent { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.foot-logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(60,160,255,.35), 0 0 16px rgba(40,140,255,.45);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.logo:hover .logo-img { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 1px rgba(60,160,255,.6), 0 0 24px rgba(40,140,255,.7); }
.logo-img.sm { width: 28px; height: 28px; }
.nav-links { margin-left: auto; display: flex; gap: 18px; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.nav-links i { color: var(--muted); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: var(--bg-2); border: 0; width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: #fff; transition: transform .3s; }
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--pad);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu a { font-size: 48px; font-weight: 700; letter-spacing: -.04em; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 110px var(--pad) 90px; overflow: hidden;
}
/* Vidéo cadrée sur le visage (côté droit de la vidéo) */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 30%;
  opacity: .6; filter: brightness(1) contrast(1.05);
  transition: opacity 1.2s ease, filter 1.2s ease;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(12,12,12,.25), rgba(12,12,12,.85) 85%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
  transition: opacity 1.2s ease;
}
/* Pendant que le visage est à l'écran (début et fin de la vidéo) :
   la carte s'efface en flou et la vidéo passe au premier plan */
.hero.face-time .hero-video { opacity: 1; filter: brightness(1.15) contrast(1.08); }
.hero.face-time .hero-overlay { opacity: .35; }
.hero.face-time .net-canvas, .hero.face-time .floaters { opacity: .2; }
.hero.face-time .hero-frame.reveal,
.hero.face-time .hero-frame.reveal.in {
  opacity: 0; filter: blur(14px); transform: scale(.96); pointer-events: none;
}
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); z-index: 1; }
.hero::after { display: none; }

.hero-frame {
  position: relative; z-index: 2; width: min(1000px, 100%);
  background: rgba(22,22,22,.8); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px);
}
.hero-frame.reveal { transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter 1.1s ease; }
.dot { position: absolute; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.dot.tl { top: -4px; left: -4px; } .dot.tr { top: -4px; right: -4px; }
.dot.bl { bottom: -4px; left: -4px; } .dot.br { bottom: -4px; right: -4px; }
.eyebrow { font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 18px; }
.hero-title {
  font-size: clamp(44px, 11vw, 145px); font-weight: 700; line-height: .82; letter-spacing: -0.06em; white-space: nowrap;
  display: flex; align-items: flex-start; flex-wrap: nowrap; position: relative;
}
.hero-title sup { font-size: .14em; margin: .25em 0 0 .1em; letter-spacing: 0; }
.hero-title small { font-size: .17em; letter-spacing: -.02em; align-self: flex-end; margin-left: .3em; margin-bottom: .1em; }
.hero-person { display: flex; align-items: center; gap: 12px; margin: clamp(22px, 3vw, 34px) 0 0 clamp(0px, 26%, 300px); }
.hero-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 2px solid var(--accent); }
.hero-person strong { display: block; font-size: 13px; font-weight: 600; }
.hero-person span { font-size: 11px; color: var(--muted); }
.signature {
  position: absolute; right: clamp(16px, 6%, 70px); bottom: clamp(56px, 13%, 100px);
  font-family: "Caveat", cursive; font-size: clamp(40px, 6vw, 82px); color: var(--accent);
  transform: rotate(-8deg); opacity: .95;
}
.hero-tags { margin-top: clamp(26px, 4vw, 52px); font-size: clamp(13px, 1.5vw, 17px); font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags i { color: var(--muted); }
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 22px var(--pad); font-size: 12px; font-weight: 600;
}
.status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status .sep { color: var(--accent); margin: 0 6px; }
.bars { display: inline-flex; gap: 3px; }
.bars i { width: 2px; height: 12px; background: var(--accent); animation: pulse 1.4s infinite ease-in-out; }
.bars i:nth-child(2) { animation-delay: .1s } .bars i:nth-child(3) { animation-delay: .2s }
.bars i:nth-child(4) { animation-delay: .3s } .bars i:nth-child(5) { animation-delay: .4s }
@keyframes pulse { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

/* ===== Intro (bloc accent) ===== */
.intro { background: var(--accent); color: var(--accent-ink); padding: var(--pad); min-height: 92vh; display: flex; flex-direction: column; justify-content: space-between; }
.intro .label { color: rgba(0,0,0,.55); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding-top: 20px; }
.intro-left .big { margin-top: 26px; }
.lead { font-size: clamp(16px, 1.55vw, 22px); font-weight: 600; line-height: 1.25; max-width: 560px; padding-top: 40px; }
.intro-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-top: 60px; }
.link-arrow { font-size: 14px; font-weight: 600; }
.link-arrow span { display: inline-block; transition: transform .3s; }
.link-arrow:hover span { transform: translate(3px,-3px); }
.intro-stat { text-align: right; }
.intro-stat strong { display: block; font-size: clamp(56px, 6vw, 96px); line-height: 1; letter-spacing: -.05em; }
.intro-stat span { font-size: 13px; font-weight: 500; }

/* ===== Manifeste ===== */
.manifest { background: var(--light); color: var(--ink); padding: var(--pad); position: relative; }
.manifest .label { display: block; text-align: right; color: #7a7a76; }
.manifest .huge { margin-top: clamp(40px, 8vw, 120px); }
.manifest-sub { max-width: 520px; margin: 40px 0 0 50%; font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; line-height: 1.25; }
.manifest-foot { display: flex; justify-content: space-between; align-items: center; padding-top: clamp(60px, 9vw, 140px); font-size: 12px; font-weight: 600; }
.manifest-foot .muted { color: #6b6b67; }
.play { display: flex; align-items: center; gap: 10px; }
.play span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 10px; transition: background .3s, color .3s; }
.play:hover span { background: var(--accent); color: var(--ink); }

/* ===== Projets ===== */
.project {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 80px var(--pad);
}
.project-bg { position: absolute; inset: -40px; background: var(--img) center/cover; filter: blur(22px) brightness(.4) saturate(1.2); transform: scale(1.1); }
.project-bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px 7px); }
.project-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 18px var(--pad); font-size: 12px; font-weight: 600; z-index: 2; }
.project-marquee {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: clamp(80px, 17vw, 300px); font-weight: 700; letter-spacing: -0.06em; line-height: 1;
  white-space: nowrap; z-index: 1; color: #fff;
}
.project-card {
  position: relative; z-index: 2; width: min(780px, 92%); aspect-ratio: 16/9; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  clip-path: inset(8% 8% 8% 8%); transition: clip-path 1s cubic-bezier(.2,.8,.2,1);
}
.project.in .project-card { clip-path: inset(0 0 0 0); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.project.in .project-card img { transform: scale(1); }
.project-card:hover img { transform: scale(1.04); }
.project-meta {
  position: relative; z-index: 2; width: min(780px, 92%);
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; margin-top: 18px; font-size: 12px; font-weight: 600;
}
.project-desc { position: relative; z-index: 2; width: min(780px, 92%); margin-top: 14px; color: #cfcfca; font-size: 14px; max-width: 780px; }

.more { background: var(--light); color: var(--ink); padding: var(--pad); padding-bottom: clamp(60px, 8vw, 120px); }
.more-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.more-head .big { text-align: right; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mini { background: var(--light-2); display: flex; flex-direction: column; transition: background .3s; }
.mini:hover { background: #fff; }
.mini-img { aspect-ratio: 16/10; background-image: url("assets/showcase.png"); background-size: 200% 200%; transition: background-size .8s ease; }
.mini:hover .mini-img { background-size: 210% 210%; }
/* Vraies captures des projets */
.mini { overflow: hidden; }
.mini-shot { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: 0 0; background: #0a0d08; transition: transform .8s ease; }
.mini:hover .mini-shot { transform: scale(1.04); }
.mini-code {
  aspect-ratio: 16/10; margin: 0; padding: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 70% 0%, rgba(196,241,53,.12), transparent 60%), #0a0d08;
  color: #cfe9a0; font: 12px/1.75 ui-monospace, Consolas, monospace; white-space: pre-wrap;
}
.mini-code b { color: var(--accent); }
.mini-code span { color: #fff; }
a.mini { color: inherit; }
.mini-info { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mini-info > span { font-size: 12px; color: #7a7a76; font-weight: 600; }
.mini-info h4 { font-size: 28px; letter-spacing: -.03em; line-height: 1; }
.mini-info p { font-size: 14px; color: #4a4a47; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chips b { font-size: 11px; font-weight: 600; border: 1px solid var(--line-dark); padding: 5px 9px; border-radius: 2px; }

/* ===== Pourquoi moi ===== */
.why { background: var(--light); color: var(--ink); padding: var(--pad); padding-bottom: clamp(60px, 9vw, 140px); border-top: 1px solid var(--line-dark); position: relative; }
.why-title { margin: 20px 0 0 50%; }
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.why-card { aspect-ratio: 1.3; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; font-size: 14px; font-weight: 500; }
.dark-card { background: #2c2c2b; color: #fff; grid-column: 1 / span 2; margin-left: 12%; }
.light-card { background: #fff; grid-column: 3 / span 2; margin-right: 12%; margin-top: 30%; color: #9a9a96; }
.light-card strong { color: #777; }
.why-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.why-foot strong { font-size: clamp(48px, 5.5vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.why-foot a { font-size: 13px; font-weight: 600; color: inherit; white-space: nowrap; }
.dark-card .why-foot a { color: #fff; }
.light-card .why-foot a { color: var(--ink); }

/* ===== Compétences ===== */
.services { padding: var(--pad); padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); background: var(--bg); }
.acc { margin-top: 30px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 60px 1fr auto 40px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 30px) 0;
}
.acc summary::-webkit-details-marker { display: none; }
.acc .num { font-size: 13px; color: var(--muted); }
.acc .name { font-size: clamp(24px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1; transition: color .3s, transform .4s; }
.acc summary:hover .name { color: var(--accent); transform: translateX(8px); }
.acc .tag { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.plus::before, .plus::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 0 0 30px 76px; color: #bdbdb8; font-size: 15px; max-width: 1100px; }

/* ===== Chiffres ===== */
.stats { background: var(--accent); color: var(--ink); padding: var(--pad); padding-bottom: clamp(60px, 8vw, 120px); }
.stats .label { color: rgba(0,0,0,.55); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: clamp(40px, 6vw, 90px); }
.stat strong { display: block; font-size: clamp(72px, 10vw, 170px); line-height: .9; letter-spacing: -.06em; font-weight: 700; }
.stat p { margin-top: 14px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.quote { margin: clamp(60px, 8vw, 120px) 0 0 auto; max-width: 640px; }
.quote p { font-size: clamp(18px, 1.9vw, 26px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.quote strong { display: block; font-size: 14px; }
.quote span { font-size: 12px; opacity: .65; }

/* ===== Parcours ===== */
.journey { background: var(--light); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
.journey-img { overflow: hidden; min-height: 70vh; }
.journey-img img { width: 100%; height: 100%; object-fit: cover; }
.journey-text { padding: var(--pad); padding-bottom: clamp(40px, 6vw, 90px); display: flex; flex-direction: column; gap: 26px; }
.journey-text .big { margin-top: 30px; }
.journey-text p { font-size: 16px; color: #3d3d3a; max-width: 520px; }
.goals { list-style: none; display: grid; gap: 0; max-width: 520px; }
.goals li { padding: 14px 0; border-top: 1px solid var(--line-dark); font-weight: 600; display: flex; gap: 12px; }
.goals b { width: 22px; height: 22px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.timeline li { align-items: flex-start; }
.timeline b { width: 62px; height: auto; padding: 4px 0; flex-shrink: 0; font-size: 11px; letter-spacing: .03em; }
.timeline em { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: #6b6b67; margin-top: 2px; }

/* ===== FAQ ===== */
.faq { background: var(--light); color: var(--ink); padding: var(--pad); padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.faq-head .big { margin-top: 22px; }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list details:first-child { border-top: 1px solid var(--line-dark); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; padding: 20px 0; font-size: clamp(14px, 1.3vw, 17px); font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 12px; color: #7a7a76; }
.faq-list summary i { position: relative; width: 14px; height: 14px; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { padding: 0 0 22px 52px; color: #4a4a47; font-size: 15px; }
.faq-list .btn { margin-top: 30px; }

/* ===== Contact ===== */
.contact { padding: var(--pad); padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(60px, 8vw, 120px); }
.contact .mega { margin-top: 30px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 80px); }
.socials { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.socials i { color: var(--muted); }
.socials a:hover { color: var(--accent); }
.socials { flex-wrap: wrap; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.inline-link:hover { color: #000; background: var(--accent); }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--pad); border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); }
.footer a:hover { color: var(--text); }

/* ===== Animations d'apparition ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.split .ch { display: inline-block; transform: translateY(100%); opacity: 0; animation: up .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes up { to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split .ch { opacity: 1; transform: none; animation: none; transition: none; }
  .project-card { clip-path: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: flex; }
  .intro-grid, .faq, .journey { grid-template-columns: 1fr; }
  .lead { padding-top: 0; }
  .manifest-sub, .why-title { margin-left: 0; }
  .more-grid { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; gap: 12px; }
  .dark-card, .light-card { grid-column: auto; margin: 0; aspect-ratio: auto; min-height: 240px; }
  .acc summary { grid-template-columns: 34px 1fr 24px; }
  .acc .tag { display: none; }
  .acc-body { grid-template-columns: 1fr; padding-left: 50px; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .journey-img { min-height: 60vh; }
  .project { min-height: 80vh; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-meta .muted { display: none; }
  .signature { bottom: auto; top: 46%; }
  .hero-person { margin-left: 0; }
  .more-head { flex-direction: column; }
  .more-head .big { text-align: left; }
}

/* ===== Effets réseau (hero) ===== */
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; transition: opacity 1.2s; -webkit-mask-image: linear-gradient(90deg, #000 45%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.15) 85%); mask-image: linear-gradient(90deg, #000 45%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.15) 85%); }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(196,241,53,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,241,53,.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent 95%);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1.2s; }
.floaters span {
  position: absolute; font: 600 11px/1 ui-monospace, Consolas, monospace; color: rgba(196,241,53,.55);
  animation: float 6s ease-in-out infinite;
}
.floaters span:nth-child(2n) { animation-delay: -2s; animation-duration: 8s; }
.floaters span:nth-child(3n) { animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); opacity: .3 } 50% { transform: translateY(-14px); opacity: .9 } }

/* ===== Section Réseau ===== */
.network { position: relative; padding: var(--pad); padding-top: clamp(70px, 9vw, 140px); padding-bottom: clamp(70px, 9vw, 140px); background: radial-gradient(ellipse at 50% 40%, rgba(196,241,53,.07), transparent 60%), var(--bg); overflow: hidden; }
.network-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: end; }
.network-head .label { grid-column: 1 / -1; }
.network-head .big em { font-style: normal; color: var(--accent); }
.network-sub { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; line-height: 1.25; max-width: 520px; }

.topo-wrap {
  position: relative; margin-top: clamp(40px, 6vw, 80px); border: 1px solid var(--line);
  background:
    linear-gradient(rgba(196,241,53,.05) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(196,241,53,.05) 1px, transparent 1px) 0 0/40px 40px,
    #0a0d08;
}
.topo-hud { display: flex; gap: 24px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 11px/1 ui-monospace, Consolas, monospace; color: var(--muted); }
.topo-hud strong { color: var(--accent); }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; box-shadow: 0 0 10px var(--accent); animation: pulse 1.2s infinite; }
#topology { display: block; width: 100%; height: auto; }
#topology .link { stroke: rgba(196,241,53,.45); stroke-width: 1.6; fill: none; }
#topology .link.dash { stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
#topology .node rect { fill: #0f140b; stroke: var(--accent); stroke-width: 1.5; }
#topology .node .ico { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#topology .node text { fill: #e9f7c2; font: 700 13px var(--font); text-anchor: middle; }
#topology .node .ip { fill: rgba(196,241,53,.6); font: 600 10px ui-monospace, Consolas, monospace; }
#topology .node { filter: drop-shadow(0 0 6px rgba(196,241,53,.35)); transition: filter .3s; cursor: default; }
#topology .node:hover { filter: drop-shadow(0 0 14px rgba(196,241,53,.9)); }
#topology .pkt { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
#topology .pkt.alt { fill: #fff; }

.net-panels { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2px; margin-top: 2px; }
.terminal, .pulse { background: #0a0d08; border: 1px solid var(--line); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 11px ui-monospace, Consolas, monospace; color: var(--muted); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: 8px; }
#term { padding: 18px; min-height: 260px; font: 13px/1.6 ui-monospace, Consolas, monospace; color: #cfe9a0; white-space: pre-wrap; }
#term .cmd { color: #fff; }
#term .ok { color: var(--accent); }
#term .caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.pulse { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.pulse-top { display: flex; justify-content: space-between; font: 600 11px ui-monospace, Consolas, monospace; color: var(--muted); }
.pulse-top strong { color: var(--accent); font-size: 28px; font-family: var(--font); letter-spacing: -.03em; }
.pulse-svg { width: 100%; height: 140px; filter: drop-shadow(0 0 6px rgba(196,241,53,.7)); }
.beat { stroke-dasharray: 900; stroke-dashoffset: 900; animation: beat 2.4s linear infinite; }
@keyframes beat { 0% { stroke-dashoffset: 900 } 70% { stroke-dashoffset: 0 } 100% { stroke-dashoffset: -900 } }
.pulse-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; }
.pulse-stats span { display: block; font: 600 10px ui-monospace, Consolas, monospace; color: var(--muted); }
.pulse-stats strong { font-size: 18px; letter-spacing: -.02em; }

@media (max-width: 900px) {
  .network-head, .net-panels { grid-template-columns: 1fr; }
  .floaters span:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floor, .floaters span, .beat, #topology .link.dash { animation: none; }
  .beat { stroke-dashoffset: 0; }
}

/* Hero sur mobile : cadre en bas, visage visible en haut */
@media (max-width: 900px) {
  .hero { align-items: center; }
  .hero-frame { width: 100%; background: rgba(18,18,18,.6); }
  .hero-video { object-position: 81% 15%; }
  .signature { display: none; }
  .hero-overlay {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(12,12,12,.8) 40%, rgba(12,12,12,.1) 70%, transparent 80%),
      linear-gradient(180deg, rgba(12,12,12,.6) 0%, transparent 16%);
  }
  .net-canvas { -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 70%); mask-image: linear-gradient(0deg, #000 30%, transparent 70%); }
}

/* ===== Chatbot ===== */
.chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font); }
.cb-toggle {
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px; font: 700 13px var(--font);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.cb-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 24px rgba(196,241,53,.45); }
.cb-toggle img { width: 38px; height: 38px; border-radius: 50%; }
.cb-ping { position: absolute; top: 4px; left: 34px; width: 10px; height: 10px; border-radius: 50%; background: #2bd96b; border: 2px solid var(--accent); }
.chatbot.open .cb-toggle { display: none; }

.cb-panel {
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #0f120c; border: 1px solid rgba(196,241,53,.25); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(196,241,53,.08);
  animation: cbIn .3s cubic-bezier(.2,.8,.2,1);
}
.cb-panel[hidden] { display: none; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.cb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #13170f; }
.cb-head img { width: 36px; height: 36px; border-radius: 50%; }
.cb-head div { flex: 1; display: flex; flex-direction: column; }
.cb-head strong { font-size: 14px; color: var(--text); }
.cb-head span { font-size: 11px; color: var(--muted); }
.cb-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2bd96b; margin-right: 4px; vertical-align: 1px; }
.cb-close { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cb-close:hover { color: var(--text); }

.cb-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cb-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.cb-msg.bot { background: #1b2114; color: #e7f2d0; border-bottom-left-radius: 4px; align-self: flex-start; }
.cb-msg.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.cb-msg.err { background: #2a1616; color: #ffd2d2; }
.cb-msg a { color: var(--accent); text-decoration: underline; }
.cb-msg strong { color: #fff; }
.cb-msg.typing { display: flex; gap: 4px; padding: 14px; }
.cb-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: cbDot 1s infinite ease-in-out; }
.cb-msg.typing i:nth-child(2) { animation-delay: .15s; } .cb-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.cb-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.cb-sugg button {
  background: transparent; color: var(--accent); border: 1px solid rgba(196,241,53,.4); border-radius: 999px;
  padding: 6px 11px; font: 600 12px var(--font); cursor: pointer; transition: background .2s, color .2s;
}
.cb-sugg button:hover { background: var(--accent); color: var(--accent-ink); }
.cb-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cb-input { flex: 1; background: #1a1f14; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font: 14px var(--font); outline: none; }
.cb-input:focus { border-color: rgba(196,241,53,.55); }
.cb-send { width: 42px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 800; cursor: pointer; }
.cb-send:disabled { opacity: .45; cursor: wait; }
.cb-note { font-size: 10px; color: var(--muted); text-align: center; padding: 0 12px 10px; }

@media (max-width: 600px) {
  .chatbot { right: 12px; bottom: 12px; }
  .cb-toggle-label { display: none; }
  .cb-toggle { padding: 6px; }
}

/* ===== TOTO (personnalisation du chatbot) ===== */
.cb-avatar {
  position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, #3aa0ff, var(--accent), #3aa0ff);
  animation: totoSpin 6s linear infinite;
}
.cb-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; animation: totoSpin 6s linear infinite reverse; }
.cb-avatar.sm { width: 28px; height: 28px; padding: 1.5px; align-self: flex-end; }
@keyframes totoSpin { to { transform: rotate(360deg); } }
.cb-toggle .cb-avatar { width: 40px; height: 40px; }
.cb-toggle img { width: 100%; height: 100%; }
.cb-head .cb-avatar { width: 40px; height: 40px; }
.cb-head .cb-avatar img { width: 100%; height: 100%; }
.cb-id strong { font-size: 15px; letter-spacing: .04em; }
.cb-id em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.cb-id b { font-weight: 500; }
.cb-langs { display: flex; gap: 2px; background: #1a1f14; border-radius: 8px; padding: 2px; }
.cb-langs button { background: none; border: 0; color: var(--muted); font: 700 11px var(--font); padding: 5px 7px; border-radius: 6px; cursor: pointer; }
.cb-langs button.on { background: var(--accent); color: var(--accent-ink); }
.cb-langs button:not(.on):hover { color: var(--text); }

.cb-row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.cb-row.me { justify-content: flex-end; }
.cb-row .cb-msg { max-width: 82%; }
.cb-row.bot .cb-msg { background: #1b2114; color: #e7f2d0; border-bottom-left-radius: 4px; }
.cb-row.me .cb-msg { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; font-weight: 500; }
.cb-row.err .cb-msg { background: #2a1616; color: #ffd2d2; }
.cb-row.typing .cb-msg { display: flex; gap: 4px; padding: 14px; }
.cb-row.typing .cb-msg i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: cbDot 1s infinite ease-in-out; }
.cb-row.typing .cb-msg i:nth-child(2) { animation-delay: .15s; } .cb-row.typing .cb-msg i:nth-child(3) { animation-delay: .3s; }
.cb-panel[dir="rtl"] .cb-row.bot .cb-msg { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.cb-panel[dir="rtl"] .cb-row.me .cb-msg { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
.cb-panel[dir="rtl"] .cb-head, .cb-panel[dir="rtl"] .cb-langs { direction: ltr; }
@media (prefers-reduced-motion: reduce) { .cb-avatar, .cb-avatar img { animation: none; } }
.cb-head .cb-langs { flex: none; flex-direction: row; }
.cb-banner { position: relative; margin: -14px -14px 4px; flex-shrink: 0; overflow: hidden; }
.cb-banner img { width: 100%; height: 150px; object-fit: cover; object-position: 50% 30%; display: block; }
.cb-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0f120c 0%, transparent 60%); }
.cb-banner figcaption { position: absolute; left: 14px; bottom: 10px; z-index: 1; font: 800 22px var(--font); letter-spacing: .08em; color: #fff; text-shadow: 0 0 18px rgba(58,160,255,.8); }
.cb-banner figcaption span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .25em; color: #7cc4ff; }
.cb-avatar { background: conic-gradient(from 0deg, #3aa0ff, #c9e8ff, #3aa0ff); }

/* Logo YH : simple, sans fond ni effet */
.logo-img, .logo-img.sm,
.logo:hover .logo-img {
  border-radius: 0; background: none; box-shadow: none;
  transform: none; transition: none; object-fit: contain;
}

/* Photo de Younesse à côté de « De Casablanca à Rouen » */
.journey-img { background: #0a0d08; }
.journey-img { position: relative; }
.journey-img::before { content: ""; position: absolute; inset: -30px; background: url("assets/younesse.png") center/cover; filter: blur(28px) brightness(.45); }
.journey-img img { position: relative; object-fit: contain; }
