/* ==========================================================================
   Lucas — portfolio. Direction éditoriale, typo grand format.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #F7FAFD;
  --bg-alt: #EEF4FA;
  --ink: #10161E;
  --ink-soft: #38414D;
  --muted: #6B7686;
  --sky: #4E86B8;
  --sky-deep: #2C5A85;
  --line: rgba(16, 22, 30, 0.10);
  --line-strong: rgba(16, 22, 30, 0.16);
  --white: #FFFFFF;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 253, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px;
}
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.brand-avatar {
  display: none; width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; margin-right: 2px; vertical-align: middle;
}
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted); padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--sky); }
.nav-cta {
  background: var(--ink); color: var(--white);
  font-size: 0.82rem; font-weight: 600; padding: 11px 22px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--sky-deep); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; }
.nav-links .nav-cta-mobile { display: none; }

/* ---------- Marquee band ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,250,253,0.6);
  padding: 0 22px;
  white-space: nowrap;
  border-right: 1px solid rgba(247,250,253,0.18);
}
.marquee-track span b { color: var(--white); font-weight: 500; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

section { padding: 120px 0; }
section.tight { padding: 80px 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--sky-deep);
  margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--sky-deep); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 20px; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.98; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--muted); margin: 0 0 16px; }
p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42ch; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 0; }
.hero-top {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: end;
  padding-bottom: 56px;
}
.hero-name { display: block; color: var(--sky-deep); }

.hero-side { padding-bottom: 10px; }
.hero-side p { margin-bottom: 26px; }

.hero-actions { display: flex; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem;
  padding: 13px 24px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--sky-deep); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); }

.hero-art {
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, var(--bg-alt), #DCE9F5);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,22,30,0) 55%, rgba(16,22,30,0.35) 100%);
}
.hero-tag {
  position: absolute; bottom: 18px; left: 18px; z-index: 2;
  color: var(--white); font-family: var(--font-mono); font-size: 0.72rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-tag .live { width: 6px; height: 6px; border-radius: 50%; background: #4CAF7D; }

/* ---------- Stat strip ---------- */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 44px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.stat span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Editorial rows (services / projects) ---------- */

.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 100px 1fr 1fr; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.15s ease;
}
.row-item:hover { background: var(--bg-alt); }
.row-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 4px; }
.row-item h3 { margin-bottom: 10px; }
.row-item p { margin-bottom: 0; font-size: 0.96rem; max-width: 46ch; }

/* ---------- Feature project block ---------- */

.feature {
  background: var(--ink);
  border-radius: 6px;
  padding: 64px;
  color: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.feature h2 { color: var(--white); }
.feature p { color: rgba(247,250,253,0.68); }
.feature-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.74rem; color: rgba(247,250,253,0.75);
  border: 1px solid rgba(247,250,253,0.18); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.feature-status .live { width: 6px; height: 6px; border-radius: 50%; background: #4CAF7D; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feature-list li {
  display: flex; gap: 14px; font-size: 0.94rem; color: rgba(247,250,253,0.82);
  padding: 16px 0; border-bottom: 1px solid rgba(247,250,253,0.10);
}
.feature-list li:last-child { border: none; }
.feature-list b { color: var(--white); font-family: var(--font-mono); font-size: 0.76rem; min-width: 52px; }

/* ---------- Timeline (Expérience) ---------- */

.timeline-group { margin-bottom: 64px; }
.timeline-group h3.section-label {
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--sky-deep); margin-bottom: 4px;
}
.role-list { border-top: 1px solid var(--line); }
.role-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.role-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.role-servers { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.role-servers span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.timeline-group.past .role-servers span { color: var(--muted); font-weight: 500; }

/* ---------- Experience cards ---------- */

.exp-block { margin-bottom: 56px; }
.exp-block:last-child { margin-bottom: 0; }

.exp-role-label {
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--sky-deep); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.exp-role-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.exp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px;
}
.exp-grid:last-child { margin-bottom: 0; }

.exp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.exp-card:hover { border-color: var(--sky); transform: translateY(-2px); }

.exp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.exp-card-id { display: flex; align-items: center; gap: 12px; }

.exp-avatar {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--white);
  background: linear-gradient(150deg, var(--sky), var(--sky-deep));
}

.exp-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.25; }

.badge {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-admin { background: var(--ink); color: var(--white); }
.badge-resp { background: var(--sky-deep); color: var(--white); }
.badge-mod { background: var(--bg-alt); color: var(--sky-deep); border: 1px solid var(--line-strong); }
.exp-grid.past .badge { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }

.exp-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.exp-chip {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-soft);
  background: var(--bg-alt); border-radius: 999px; padding: 5px 10px;
}
.exp-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.exp-chip .dot.on { background: #4CAF7D; }
.exp-chip .dot.off { background: var(--muted); }

.exp-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--muted);
}
.exp-card-foot a { font-weight: 600; color: var(--sky-deep); display: inline-flex; align-items: center; gap: 4px; }
.exp-card-foot a:hover { text-decoration: underline; }

.exp-grid.past .exp-card { background: var(--bg-alt); }
.exp-grid.past h3 { color: var(--ink-soft); }

/* ---------- Contact list ---------- */

.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.15s ease, color 0.15s ease;
}
.contact-row:hover { padding-left: 14px; color: var(--sky-deep); }
.contact-row .label { display: flex; align-items: center; gap: 18px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.contact-row .label .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.contact-row .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.contact-row .handle { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.contact-row .arrow { font-size: 1.3rem; transition: transform 0.15s ease; }
.contact-row:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); }

/* ---------- Page header (sub-pages) ---------- */

.page-head { padding: 76px 0 30px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .row-item { grid-template-columns: 1fr; gap: 10px; }
  .feature { grid-template-columns: 1fr; padding: 36px; }
  .role-row { grid-template-columns: 1fr; gap: 8px; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .contact-row .label { font-size: 1.2rem; }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 20px 40px 26px; gap: 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 4px; }
}

@media (max-width: 520px) {
  section { padding: 72px 0; }
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .feature { padding: 26px; }
  .exp-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.exp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exp-avatar.is-past { background: linear-gradient(150deg, #9AA6B4, #6B7686); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }