:root {
  --bg: #141414;
  --panel: #121212;
  --panel-2: #121212;
  --card: #1d1d1d;
  --line: #2a2a2a;
  --text: #ececec;
  --muted: #9b9b9b;
  --accent: #c7ff1b;
  --accent-ink: #1a1d08;
  --glow-a: #0812a1;
  --glow-b: #0042a6;
  --radius: 14px;
  --col: 1040px;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Halos flous sur les côtés, fixes pendant le scroll */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 55% at 0% 22%, var(--glow-a) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 100% 25%, var(--glow-b) 0%, transparent 70%);
  filter: blur(40px);
}

/* Colonne centrale : transparente (le fond est donné par chaque section) */
.page {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero (transparent) ---------- */
.hero { padding: clamp(56px, 10vw, 120px) var(--pad) clamp(56px, 8vw, 96px); }
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; display: block; margin-bottom: 36px;
  background: #2b2b2b;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; }
.tagline { margin: 0 0 22px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; max-width: 20em; font-weight: 300; }
.intro { margin: 0 0 32px; color: var(--muted); max-width: 40em; font-size: 1.05rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  font-weight: 500; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f3ff9a; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #4a4a4a; }

/* ---------- Sections ---------- */
.section { padding: 56px var(--pad); position: relative; background: var(--panel);}
.section h2 { margin: 0 0 18px; font-size: 1.7rem; letter-spacing: -.01em; }
.lead { margin: -8px 0 28px; color: var(--muted); }

/* Fond d'À propos : apparaît en fondu depuis le hero transparent */
#about {
  background: linear-gradient(to bottom, transparent 0, var(--panel) 220px);
  padding-top: 120px;
}

/* Sections plus sombres, séparées par une ligne simple */
.section.alt { background: var(--panel-2); border-top: 1px solid #1f1f1f; }

#about-text p { margin: 0 0 16px; max-width: 70ch; }

/* ---------- Expérience ---------- */
.timeline { display: grid; gap: 44px; margin-top: 28px; }
.job { display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.job-date { color: var(--muted); font-size: .95rem; padding-top: 6px; }
.job-side {
  display: flex;
  flex-direction: column;
  align-items: center;      /* centre le logo sous la date */
  width: max-content;       /* le bloc fait la largeur de la date */
  max-width: 100%;
}
.job-date { padding-top: 6px; }
.job-logo { height: 64px; width: auto; max-width: 100%; margin-top: 25px; display: block; }
.job-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.job-meta { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.job-desc { margin: 0 0 12px; color: #c9c9c9; }
.job ul { margin: 0; padding: 0; list-style: none; color: #c9c9c9; }
.job li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.job li::before {
  content: ""; position: absolute; left: 4px; top: .6em;
  width: 7px; height: 7px; border: 1.5px solid var(--muted); border-radius: 50%;
}

/* ---------- Cartes (projets marquants) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-media { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.meta { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.card p.desc { margin: 0 0 16px; color: #bdbdbd; }
.card .link { margin-top: auto; }
.link small { color: var(--muted); font-size: .9em; }

/* ---------- Liste (autres projets) ---------- */
.rows { display: grid; gap: 34px; }
.row { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.row-media {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: 10px; border: 1px solid var(--line);
}
.row h3 { margin: 0 0 6px; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.row h3 .meta { margin: 0; font-weight: 400; }
.row p { margin: 0; color: #c2c2c2; }
.row .link { display: inline-block; margin-top: 8px; }

/* Vignette de remplacement quand aucune image n'est fournie */
.ph {
  background: linear-gradient(135deg, #2b3418, #1b1b1b 60%, #3a2f5c);
  display: grid; place-items: center; color: rgba(255,255,255,.5);
  font-weight: 700; font-size: 1.4rem; letter-spacing: .02em;
}

.footer { padding: 40px var(--pad) 56px; color: var(--muted); font-size: .9rem; background: var(--panel-2); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .job { grid-template-columns: 1fr; gap: 6px; }
  .cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}