/* ===== Polices auto-hébergées ===== */
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/sg-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Plex';
  src: url('assets/fonts/plex-reg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Plex';
  src: url('assets/fonts/plex-med.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Plex';
  src: url('assets/fonts/plex-sb.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Mono';
  src: url('assets/fonts/jbm-reg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Mono';
  src: url('assets/fonts/jbm-med.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --ink: #0F1922;
  /* nuit urbaine */
  --ink-2: #15212F;
  --ink-3: #1D2D3F;
  --teal: #37C6B0;
  /* accent principal */
  --teal-deep: #2AA694;
  --amber: #FFC46B;
  /* lumière de lampadaire */
  --paper: #F4F7F9;
  /* fond clair du corps */
  --card: #FFFFFF;
  --heading: #13202C;
  --body: #3A4754;
  --soft: #6B7884;
  --rule: #E3E9ED;
  --s-text: #D6E0EA;
  --s-muted: #8597A9;
  --radius: 10px;
  --w: 1060px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plex', system-ui, sans-serif;
  color: var(--body);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 99;
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(55, 198, 176, .13), transparent 60%),
    radial-gradient(900px 420px at 15% 110%, rgba(255, 196, 107, .07), transparent 55%),
    var(--ink);
  color: var(--s-text);
  position: relative;
  overflow: hidden;
}

.nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: 'Mono';
  font-size: .95rem;
  color: var(--s-muted);
  letter-spacing: .02em;
}

.nav-brand b {
  color: var(--teal);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Mono';
  font-size: .82rem;
  color: var(--s-text);
  letter-spacing: .05em;
}

.nav-links a:hover {
  color: var(--teal);
  text-decoration: none;
}

.hero-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 3rem;
  align-items: center;
}

.prompt {
  font-family: 'Mono';
  font-size: .9rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.prompt::after {
  content: "▌";
  animation: blink 1.1s steps(1) infinite;
  color: var(--s-muted);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero h1 {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  letter-spacing: -.015em;
  line-height: 1.02;
}

.role {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--s-text);
  margin-top: .5rem;
}

.role span {
  color: var(--teal);
}

.pitch {
  margin-top: 1.3rem;
  max-width: 34rem;
  font-size: 1.02rem;
  color: #B9C6D2;
}

.hero-cta {
  display: flex;
  gap: .9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Mono';
  font-size: .85rem;
  letter-spacing: .03em;
  padding: .78rem 1.35rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--teal);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(55, 198, 176, .35);
}

.btn-ghost {
  border: 1px solid #33475C;
  color: var(--s-text);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-ext {
  font-size: 1rem;
}

.hero-photo {
  justify-self: end;
}

.hero-photo img {
  width: min(160px, 40vw);
  height: min(160px, 40vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(55, 198, 176, .55);
  box-shadow: 0 0 0 8px rgba(55, 198, 176, .08), 0 18px 50px rgba(0, 0, 0, .45);
}

/* ===== Skyline signature ===== */
.skyline {
  margin-top: 1.5rem;
}

.skyline svg {
  display: block;
  width: 100%;
  height: auto;
}

.ground {
  stroke: #243447;
  stroke-width: 2;
}

.bldg {
  fill: #182635;
}

.lamp path {
  fill: none;
  stroke: #31465C;
  stroke-width: 3;
  stroke-linecap: round;
}

.bulb {
  fill: var(--amber);
}

.halo {
  fill: var(--amber);
  opacity: .14;
}

@media (prefers-reduced-motion: no-preference) {
  .bulb {
    animation: glow 4.5s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }

  .halo {
    animation: haloPulse 4.5s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }

  @keyframes glow {

    0%,
    100% {
      opacity: .55;
    }

    50% {
      opacity: 1;
    }
  }

  @keyframes haloPulse {

    0%,
    100% {
      opacity: .06;
    }

    50% {
      opacity: .2;
    }
  }
}

/* ===== Sections ===== */
.section {
  max-width: var(--w);
  margin: 0 auto;
  padding: 4.2rem 1.5rem 1rem;
}

.section:last-of-type {
  padding-bottom: 4rem;
}

h2 {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.8rem;
}

.h-label {
  font-family: 'Mono';
  font-weight: 500;
  font-size: .8rem;
  color: var(--teal-deep);
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: .22rem .5rem;
  letter-spacing: .06em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.vis {
  opacity: 1;
  transform: none;
}

/* À propos */
.about {
  max-width: 46rem;
  display: grid;
  gap: 1rem;
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.stack-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: 0 2px 10px rgba(19, 32, 44, .04);
}

.stack-card h3 {
  font-family: 'Mono';
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .9rem;
}

.stack-card h3::before {
  content: "// ";
  color: var(--teal);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tags li {
  font-family: 'Mono';
  font-size: .8rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--body);
  border-radius: 6px;
  padding: .3rem .6rem;
}

.tags li.hot {
  color: var(--teal-deep);
  border-color: rgba(42, 166, 148, .5);
  background: rgba(55, 198, 176, .07);
}

/* Timeline */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--rule));
  border-radius: 2px;
}

.timeline > li {
  position: relative;
  padding: 0 0 2.4rem 1.2rem;
}

.timeline > li:last-child {
  padding-bottom: .5rem;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: .42rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 196, 107, .2);
}

.tl-when {
  font-family: 'Mono';
  font-size: .8rem;
  color: var(--teal-deep);
  margin-bottom: .35rem;
  letter-spacing: .03em;
}

.tl-body h3 {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: .55rem;
}

.tl-co {
  font-family: 'Plex';
  font-weight: 400;
  font-size: .92rem;
  color: var(--soft);
}

.tl-body ul {
  list-style: none;
  display: grid;
  gap: .45rem;
}

.tl-body ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .97rem;
}

.tl-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 7px;
  height: 7px;
  border: 1.6px solid var(--teal);
  border-radius: 50%;
}

/* Formation */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 2px 10px rgba(19, 32, 44, .04);
}

.edu-date {
  font-family: 'Mono';
  font-size: .76rem;
  color: var(--teal-deep);
  margin-bottom: .4rem;
}

.edu-card h3 {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--heading);
  margin-bottom: .4rem;
  line-height: 1.3;
}

.edu-card p {
  font-size: .92rem;
  color: var(--soft);
}

/* Modal contact */
.contact-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 26rem;
  width: calc(100% - 2.5rem);
  height: fit-content;
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(55, 198, 176, .13), transparent 60%),
    radial-gradient(900px 420px at 15% 110%, rgba(255, 196, 107, .07), transparent 55%),
    var(--ink);
  color: var(--s-text);
  box-shadow: 0 25px 60px rgba(15, 25, 34, .35);
}

.contact-modal::backdrop {
  background: rgba(15, 25, 34, .6);
  backdrop-filter: blur(2px);
}

.contact-modal h2 {
  margin-bottom: 1.2rem;
  color: #fff;
}

.cm-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  border: none;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--s-muted);
  cursor: pointer;
  padding: .3rem;
}

.cm-close:hover {
  color: var(--s-text);
}

.cm-choices {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.cm-choice {
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid #33475C;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  background: var(--card);
  color: var(--body);
  transition: border-color .15s, transform .15s;
}

.cm-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  color: var(--teal-deep);
}

.cm-choice:hover {
  text-decoration: none;
  border-color: var(--teal);
  transform: translateY(-2px);
}

.cm-k {
  font-family: 'Mono';
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.cm-v {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  min-height: 4rem;
  background: var(--ink);
  color: var(--s-muted);
}

.footer p {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-family: 'Mono';
  font-size: .76rem;
}

.footer-links {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.4rem 1.5rem .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .88rem;
}

.footer-links a {
  color: var(--s-text);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-links a:not(:last-child) {
  position: relative;
  padding-right: 1rem;
}

.footer-links a:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -.6rem;
  color: var(--s-muted);
}

/* ===== Responsive ===== */
@media (max-width:760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.2rem;
  }

  .hero-photo {
    justify-self: start;
    order: -1;
  }

  .hero-photo img {
    width: 130px;
  }

  .nav-links {
    gap: 1.1rem;
  }

  .section {
    padding-top: 3.2rem;
  }
}