/* Portfolio d'Edouard ZONGO — sombre, sobre, accent orange, globe 3D */

:root {
  --bg: #08090b;
  --bg-alt: #0d0f13;
  --card: #121419;
  --card-2: #181b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eeede8;
  --muted: #8f939d;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.12);
  --green: #34c77b;
  --radius: 18px;
  --wrap: 1180px;
  --nav-h: 64px;
  --globe-h: 46svh;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-titre: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-titre); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.accent { color: var(--accent); }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 199, 123, 0.18); flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15.5px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; color: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #140a02; }
.btn-primary:hover { background: #ff8c3a; }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(8, 9, 11, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
  max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #140a02; font: 700 14px/1 var(--font-titre);
}
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.menu a:hover, .menu a.actif { color: var(--text); }
.menu .menu-cta { color: var(--text); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); }
.menu .menu-cta:hover { border-color: var(--accent); }

.nav-inner { gap: 20px; }
.menu { margin-left: auto; }

/* Logos LinkedIn / GitHub */
.nav-reseaux { display: flex; gap: 8px; }
.reseau {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.reseau .ico { width: 17px; height: 17px; }
a.reseau:hover, .reseau-lien:hover .reseau { color: #140a02; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.reseau[hidden], .reseau-lien[hidden], .footer-liens [hidden] { display: none; }
.hero-reseaux { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.reseau-lien { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.reseau-lien:hover { color: var(--text); }
.footer-liens { display: flex; flex-wrap: wrap; gap: 20px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text); cursor: pointer; padding: 0; }
.burger, .burger::before, .burger::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  margin: 0 auto; position: relative; transition: transform 0.25s ease, background-color 0.25s;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Scène : contenu à gauche, globe fixe à droite ---------- */
.scene {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  max-width: 1480px; margin: 0 auto;
}
.scene-contenu { grid-area: 1 / 1; min-width: 0; padding: 0 clamp(24px, 3vw, 48px) 0 clamp(24px, 5vw, 72px); }
.scene-globe {
  grid-area: 1 / 2; align-self: start; position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  overflow: hidden;
}
.scene-globe::before {
  content: ""; position: absolute; inset: 10% 6%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.1), transparent 75%);
}
.globe-canvas, .globe-calques { position: absolute; inset: 0; }
.globe-canvas { opacity: 0; transition: opacity 1.4s ease; }
.pret .globe-canvas { opacity: 1; }
.globe-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.globe-calques { pointer-events: none; overflow: hidden; }

.coin { position: absolute; width: 18px; height: 18px; border: 0 solid var(--line-2); pointer-events: none; }
.coin-hg { top: 22px; left: 22px; border-width: 1px 0 0 1px; }
.coin-hd { top: 22px; right: 22px; border-width: 1px 1px 0 0; }
.coin-bg { bottom: 22px; left: 22px; border-width: 0 0 1px 1px; }
.coin-bd { bottom: 22px; right: 22px; border-width: 0 1px 1px 0; }

.hud {
  position: absolute; margin: 0; pointer-events: none; white-space: pre;
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hud-coord { top: 30px; left: 50px; }
.hud-contexte { bottom: 30px; left: 50px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.hud-contexte::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hud-aide { bottom: 30px; right: 50px; }

.globe-secours { display: none; }
.sans-globe .globe-secours {
  display: grid; place-items: center; position: absolute; inset: 0; padding: 24px;
  text-align: center; color: var(--muted); font-size: 15px;
}
.sans-globe .hud, .sans-globe .coin { display: none; }

/* Étiquettes posées sur le globe */
.callout, .etiquette { position: absolute; left: 0; top: 0; will-change: transform; }
.callout-trait { position: absolute; left: 0; bottom: 0; width: 230px; height: 64px; overflow: visible; }
.callout-trait path {
  fill: none; stroke: var(--accent); stroke-width: 1.2;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.callout.on .callout-trait path { stroke-dashoffset: 0; }
.callout-texte {
  position: absolute; left: 44px; bottom: 46px; white-space: nowrap;
  padding: 10px 14px 10px 12px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.78), rgba(8, 9, 11, 0.45));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease 0.35s, transform 0.6s ease 0.35s;
}
.callout.on .callout-texte { opacity: 1; transform: none; }
.callout-num { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.callout strong { display: block; margin-top: 8px; font: 600 30px/1 var(--font-titre); letter-spacing: -0.02em; }
.callout small { display: block; margin-top: 6px; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.callout small + small { margin-top: 2px; }
.callout.gauche .callout-trait { transform: scaleX(-1); transform-origin: left bottom; }
.callout.gauche .callout-texte { left: auto; right: 44px; text-align: right; background: linear-gradient(270deg, rgba(8, 9, 11, 0.78), rgba(8, 9, 11, 0.45)); }

.etiquette > span {
  position: absolute; left: 0; top: 0; transform: translate(calc(-100% - 12px), 6px);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--text);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(8, 9, 11, 0.72); border: 1px solid rgba(255, 122, 26, 0.45);
  opacity: 0; transition: opacity 0.5s ease 0.5s;
}
.etiquette.on > span { opacity: 1; }
.etiquette.droite > span { transform: translate(12px, 6px); }
.etiquette--futur > span { border-style: dashed; color: var(--muted); }
.etiquette--maison > span {
  transform: translate(12px, -50%); padding: 4px 12px 4px 4px; gap: 9px;
  border-color: var(--line-2); font-size: 12px; transition-delay: 0.1s;
}
.etiquette--maison.gauche > span { transform: translate(calc(-100% - 12px), -50%); }
.etiquette--maison b { font-weight: 500; color: var(--text); }
.maison-av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 700 10px/1 var(--font-titre); font-style: normal;
  background: var(--accent) center / cover; color: #140a02;
  box-shadow: 0 0 0 1.5px var(--accent);
}

/* ---------- Accueil ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center; padding: 56px 0 80px;
}
.hero-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent);
}
.dispo {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02);
}
.hero h1 { font-size: clamp(44px, 6vw, 84px); margin-top: 28px; font-weight: 700; }
.hero-role { margin-top: 16px; font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; text-wrap: balance; }
.hero-pitch { margin-top: 16px; color: var(--muted); max-width: 52ch; font-size: 17.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chiffres {
  display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 28px;
  margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.chiffres dt { font: 700 34px/1 var(--font-titre); color: var(--accent); }
.chiffres dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Titres de section ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2, .apropos h2, .contact h2 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 14px; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 17.5px; }

/* ---------- Liste des projets ---------- */
.projets { padding: 48px 0 140px; }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.projet { position: relative; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.projet::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.projet.ouvert::before { width: 100%; }
.projet-h { margin: 0; font: inherit; letter-spacing: normal; }
.projet-tete {
  width: 100%; display: grid; align-items: center;
  grid-template-columns: 52px minmax(0, 1fr) auto 22px;
  grid-template-areas: "num nom etat plus" "num meta etat plus";
  column-gap: 14px; row-gap: 6px;
  padding: 24px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.projet-tete:focus-visible { outline-offset: -2px; }
.projet-num { grid-area: num; align-self: start; padding-top: 10px; font: 500 12px/1 var(--mono); color: var(--muted); transition: color 0.3s; }
.projet-nom {
  grid-area: nom; font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--font-titre); letter-spacing: -0.02em;
  transition: color 0.3s, transform 0.35s ease;
}
.projet-meta { grid-area: meta; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 14px; color: var(--muted); }
.ico-pin { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sep { opacity: 0.35; margin: 0 2px; }
.projet-etat {
  grid-area: etat; display: inline-flex; align-items: center; gap: 7px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.projet-etat--live { color: var(--green); }
.projet-etat--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.projet-plus { grid-area: plus; position: relative; width: 14px; height: 14px; justify-self: end; transition: transform 0.4s ease; }
.projet-plus::before, .projet-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--muted); }
.projet-plus::after { transform: rotate(90deg); }
.projet-tete:hover .projet-nom { transform: translateX(6px); }
.projet.ouvert .projet-nom, .projet.ouvert .projet-num { color: var(--accent); }
.liste:has(.ouvert) .projet:not(.ouvert) .projet-nom { color: var(--muted); }
.projet.ouvert .projet-plus { transform: rotate(45deg); }
.projet.ouvert .projet-plus::before, .projet.ouvert .projet-plus::after { background: var(--accent); }

.projet-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.projet.ouvert .projet-detail { grid-template-rows: 1fr; }
.projet-detail > div { min-height: 0; overflow: hidden; }
.projet-corps { padding: 0 0 36px 66px; opacity: 0; transform: translateY(-8px); transition: opacity 0.35s ease, transform 0.5s ease; }
.projet.ouvert .projet-corps { opacity: 1; transform: none; transition-delay: 0.12s; }
.projet-corps > p:not(.slogan) { margin-top: 10px; color: var(--muted); }
.slogan { margin-top: 22px; font: 500 19px/1.35 var(--font-titre); }

.media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.media--navigateur { aspect-ratio: auto; background: #0f1115; }
.media--navigateur img { height: auto; }
.barre {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  background: #1a1d23; border-bottom: 1px solid var(--line); font: 400 12px/1 var(--mono); color: var(--muted);
}
.barre i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4a; }
.barre span { margin-left: 10px; padding: 4px 12px; border-radius: 6px; background: #101217; }
.media--code { aspect-ratio: auto; background: #0c0e12; }
.media--code pre { margin: 0; padding: 20px 22px; overflow: hidden; font: 500 13.5px/1.65 var(--mono); color: #c3c6ce; white-space: pre; }
.media--code .k { color: #ff9a4d; }
.media--code .t { color: var(--text); font-weight: 600; }
.media--code .c { color: #767b88; }
.media--code .ok { color: var(--green); }
.media--phone {
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.16), transparent 75%), #0c0e12;
}
.phone { height: 100%; aspect-ratio: 540 / 676; border-radius: 18px; overflow: hidden; border: 5px solid #23262e; background: #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; }

.points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px;
  border-radius: 1px; background: var(--accent); transform: rotate(45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags li {
  font: 500 12px/1 var(--mono); padding: 7px 11px; border-radius: 999px;
  background: var(--accent-soft); color: #ffb47a; border: 1px solid rgba(255, 122, 26, 0.22);
}
.projet-corps .btn { margin-top: 24px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* À propos */
.apropos { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; background: var(--card); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(8, 9, 11, 0.7)); pointer-events: none; }
.portrait figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: rgba(8, 9, 11, 0.7); border: 1px solid var(--line-2);
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; backdrop-filter: blur(6px);
}
.apropos .section-lead + .section-lead { margin-top: 12px; }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.faits div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faits dt { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.faits dd { margin: 8px 0 0; font-weight: 500; }

/* Compétences */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.skill:hover { border-color: rgba(255, 122, 26, 0.4); transform: translateY(-3px); }
.skill-num { font: 500 11px/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; }
.skill h3 { font-size: 21px; margin-top: 16px; }
.skill p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.skill .tags li { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line); }

/* Parcours */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 107px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 36px; padding: 0 0 40px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 102px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.when { font: 500 13px/1.6 var(--mono); color: var(--accent); text-align: right; }
.timeline h3 { font-size: 21px; }
.timeline p { margin-top: 6px; color: var(--muted); }
.timeline a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Contact */
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 32px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(600px 300px at 50% -10%, rgba(255, 122, 26, 0.22), transparent 70%), var(--card);
}
.contact-photo {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--accent);
}
.contact-card .section-lead { margin-left: auto; margin-right: auto; }
.mail {
  display: inline-block; margin-top: 26px; font: 600 clamp(19px, 3.2vw, 30px)/1.2 var(--font-titre);
  text-decoration: none; overflow-wrap: anywhere; border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.mail:hover { color: var(--accent); }
.liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }

/* Galerie et schémas des projets */
.galerie { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.galerie figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 4 / 3; }
.galerie .galerie-une { grid-row: 1 / 3; aspect-ratio: auto; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie figcaption, .media-legende {
  position: absolute; left: 8px; bottom: 8px; margin: 0; padding: 5px 9px; border-radius: 999px;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--text);
  background: rgba(8, 9, 11, 0.72); border: 1px solid var(--line-2);
}
.media--schema { position: relative; aspect-ratio: auto; background: #0c0e12; }
.media--principe { margin-top: 22px; }
.schema { display: block; width: 100%; height: auto; }
.schema text { font-family: var(--mono); fill: var(--muted); font-size: 11px; }
.schema .schema-titre { font: 600 15px var(--font-titre); fill: var(--text); }
.schema .schema-txt--clair { fill: var(--text); }
.schema-trajet { animation: trajet 1.6s linear infinite; }
@keyframes trajet { to { stroke-dashoffset: -32; } }
.bac > rect:first-child { fill: #15181e; stroke: #3b3f48; stroke-width: 1.5; }
.bac .niveau { fill: #5d626d; }
.bac text { fill: var(--muted); font-size: 11px; }
.bac--plein > rect:first-child { stroke: var(--accent); }
.bac--plein .niveau { fill: var(--accent); }
.bac--plein text { fill: var(--text); font-weight: 500; }

.projet-etat--or { color: var(--accent); }
.projet-etat--or::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: currentColor; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Mon histoire */
.histoire { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.histoire-cote { position: sticky; top: calc(var(--nav-h) + 32px); }
.histoire-cote .faits { grid-template-columns: 1fr; margin-top: 24px; }
.histoire-recit h2 { font-size: clamp(30px, 3.8vw, 44px); margin-top: 14px; max-width: 18ch; }
.chapitres { list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.chapitres::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.chapitre { position: relative; padding: 0 0 56px 40px; }
.chapitre:last-child { padding-bottom: 0; }
.chapitre::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.chapitre-tete { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chapitre-tete span:first-child { color: var(--accent); }
.chapitre h3 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 30px); }
.chapitre > p:not(.chapitre-tete):not(.lecon) { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.lecon {
  margin-top: 18px; padding: 14px 18px; border-left: 2px solid var(--accent); border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.03); font: 500 16px/1.45 var(--font-titre); max-width: 60ch;
}
.lecon span { display: block; margin-bottom: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chapitre--suite .hero-actions { margin-top: 26px; }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offre {
  display: flex; flex-direction: column; padding: 36px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
}
.offre--freelance { background: linear-gradient(160deg, rgba(255, 122, 26, 0.1), rgba(255, 122, 26, 0.02) 55%), var(--card); border-color: var(--line-2); }
.offre-pour { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.offre h3 { margin-top: 16px; font-size: clamp(24px, 2.6vw, 30px); }
.offre > p:not(.offre-pour) { margin-top: 12px; color: var(--muted); }
.atouts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.atouts li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.atouts li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px);
}
.atouts strong { color: var(--text); font-weight: 600; }
.etapes { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.etapes li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.etapes span {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); font: 500 12px/1 var(--mono);
}
.offre .btn { margin-top: auto; align-self: flex-start; }
.offre .atouts, .offre .etapes { margin-bottom: 28px; }

/* Pied de page */
.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .skill, .projet-detail, .projet-corps, .callout-trait path, .callout-texte { transition: none; }
}

/* ---------- Écrans moyens ---------- */
@media (max-width: 1100px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { gap: 20px; }
}

/* ---------- Téléphone et petite tablette : globe fixé en haut ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }

  .nav-toggle { display: block; order: 3; }
  .nav-inner { gap: 10px; }
  .nav-reseaux { margin-left: auto; }
  .nav-reseaux .reseau { width: 36px; height: 36px; }
  .menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h); display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: rgba(8, 9, 11, 0.97); border-bottom: 1px solid var(--line);
  }
  .menu.ouvert { display: flex; }
  .menu a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu .menu-cta { margin-top: 14px; text-align: center; }

  .scene { display: block; }
  .scene-globe { position: sticky; top: var(--nav-h); height: var(--globe-h); z-index: 5; background: var(--bg); overflow: visible; }
  .scene-globe::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
    background: linear-gradient(var(--bg), rgba(8, 9, 11, 0));
  }
  .globe-calques { overflow: hidden; }
  .scene-contenu { padding: 0 16px; }
  .coin, .hud-aide { display: none; }
  .hud-coord { top: 14px; left: 16px; font-size: 10px; }
  .hud-contexte { bottom: 12px; left: 16px; font-size: 10px; }

  .callout-trait { width: 150px; }
  .callout-texte { left: 30px; bottom: 44px; }
  .callout.gauche .callout-texte { right: 30px; }
  .callout strong { font-size: 22px; }
  .callout small { font-size: 11px; }

  .hero { min-height: 0; padding: 28px 0 64px; }
  .hero h1 { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .chiffres dt { font-size: 28px; }
  .chiffres dd { font-size: 13px; }

  .projets { padding: 24px 0 88px; }
  .projet, #projets { scroll-margin-top: calc(var(--nav-h) + var(--globe-h) + 12px); }
  .projet-tete { grid-template-columns: 34px minmax(0, 1fr) 18px; grid-template-areas: "num nom plus" "num meta plus" "num etat plus"; padding: 20px 0; }
  .projet-etat { margin-top: 2px; }
  .projet-corps { padding: 0 0 28px; }
  .media--code pre { font-size: 11.5px; padding: 16px; }
  .media--phone { aspect-ratio: 4 / 3; }
  .projet-corps .btn { width: 100%; }

  .section { padding: 80px 0; }
  .histoire { grid-template-columns: 1fr; }
  .histoire-cote { position: static; }
  .portrait { max-width: 420px; }
  .faits { grid-template-columns: 1fr; }
  .chapitre { padding: 0 0 44px 30px; }
  .offres { grid-template-columns: 1fr; }
  .offre { padding: 26px 20px; }
  .offre .btn { width: 100%; }
  .galerie { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .galerie .galerie-une { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .skills { grid-template-columns: 1fr; }
  .skill { padding: 22px; }

  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 0; top: 6px; }
  .when { text-align: left; }

  .contact-card { padding: 52px 18px; border-radius: 22px; }
  .liens li { flex: 1 1 100%; }
  .liens .btn { width: 100%; }
}

@media (max-width: 420px) {
  .logo-name { display: none; }
}
