@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/space-grotesk-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/space-grotesk-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/space-grotesk-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/space-grotesk-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0a0e27;
  --navy-soft: #10163a;
  --navy-card: #141b45;
  --navy-line: rgba(184, 193, 219, 0.12);
  --navy-line-bold: rgba(184, 193, 219, 0.2);

  --text-white: #ffffff;
  --text-gray: #b8c1db;
  --text-faint: #8a93b8;

  --yellow: #ffc21c;
  --yellow-dark: #d99e00;

  --font-ui: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-ui);
  background-color: var(--navy);
  /* Glow doux + quadrillage plan technique, très discret */
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -5%, var(--navy-soft) 0%, transparent 70%),
    linear-gradient(rgba(184, 193, 219, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 193, 219, 0.045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
  color: var(--text-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: inherit; }

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

/* ============ Navbar ============ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: padding 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Effet pilule au scroll réservé au desktop, le mobile est déjà en pilule fixe plus bas */
@media (min-width: 901px) {
  .navbar.scrolled {
    padding: 14px 16px 0;
  }
}

.nav-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 0 0 0 transparent;
  transition: max-width 0.5s cubic-bezier(0.65, 0, 0.35, 1), padding 0.4s ease,
    border-radius 0.4s ease, border-color 0.3s ease, background 0.3s ease,
    box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

@media (min-width: 901px) {
  .navbar.scrolled .nav-container {
    max-width: 920px;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border-color: var(--navy-line-bold);
    background: rgba(20, 27, 69, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }
}

.nav-logo {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: normal;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-logo .dot { color: var(--yellow); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
  transition: gap 0.4s ease;
}

@media (min-width: 901px) {
  .navbar.scrolled .nav-menu { gap: 1.1rem; }
}

.nav-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: normal;
  font-family: var(--font-ui);
  display: inline-block;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.15s ease, font-size 0.3s ease;
}

@media (min-width: 901px) {
  .navbar.scrolled .nav-link { font-size: 0.83rem; }
}

.nav-link:hover { color: var(--text-white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--navy-line-bold);
  background: rgba(255, 255, 255, 0.03);
}

.nav-lang-icon {
  width: 13px;
  height: 13px;
  margin: 0 2px 0 5px;
  color: var(--text-faint);
}

.nav-lang-option {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  margin: 0;
  cursor: pointer;
  line-height: normal;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-lang-option:hover { color: var(--text-white); }

.nav-logo::-moz-focus-inner,
.nav-link::-moz-focus-inner,
.nav-lang-option::-moz-focus-inner,
.modal-close::-moz-focus-inner { border: 0; padding: 0; }

.nav-lang-option.is-active {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  /* Header toujours en pilule sur mobile, pas seulement au scroll */
  .navbar { padding: 14px 16px 0; }

  .nav-container {
    max-width: 100%;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border-color: var(--navy-line-bold);
    background: rgba(20, 27, 69, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }

  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(10px);
    border: 1px solid var(--navy-line);
    border-radius: 16px;
    padding: 1.25rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }

  .nav-container.mobile-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-container.mobile-open .nav-link { font-size: 0.95rem; }
}

/* ============ Structure générale ============ */

main { position: relative; z-index: 1; }

.stage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 44px);
}

section { padding: clamp(70px, 12dvh, 120px) 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--navy-line-bold);
}

.section-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-title .accent { color: var(--yellow); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
  padding: 90px 20px 70px;
}

.hero-avatar {
  position: relative;
  width: min(300px, 60vw);
  height: min(300px, 60vw);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards 0.15s;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter:
    drop-shadow(0 0 8px rgba(255, 194, 28, 0))
    drop-shadow(0 0 22px rgba(255, 194, 28, 0))
    drop-shadow(0 0 42px rgba(255, 194, 28, 0));
  animation: shadow-fade-in 1.4s ease-out 0.9s forwards, shadow-pulse 3s ease-in-out 2.3s infinite;
}

@keyframes shadow-fade-in {
  from {
    filter:
      drop-shadow(0 0 8px rgba(255, 194, 28, 0))
      drop-shadow(0 0 22px rgba(255, 194, 28, 0))
      drop-shadow(0 0 42px rgba(255, 194, 28, 0));
  }
  to {
    filter:
      drop-shadow(0 0 8px rgba(255, 194, 28, 0.5))
      drop-shadow(0 0 22px rgba(255, 194, 28, 0.32))
      drop-shadow(0 0 42px rgba(255, 194, 28, 0.18));
  }
}

@keyframes shadow-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 8px rgba(255, 194, 28, 0.5))
      drop-shadow(0 0 22px rgba(255, 194, 28, 0.32))
      drop-shadow(0 0 42px rgba(255, 194, 28, 0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 194, 28, 0.62))
      drop-shadow(0 0 26px rgba(255, 194, 28, 0.4))
      drop-shadow(0 0 48px rgba(255, 194, 28, 0.22));
  }
}

.hero-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards 0.35s;
}

.hero-title .accent { color: var(--yellow); }

.hero-title .hero-alias {
  display: block;
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.hero-subtitle {
  max-width: 520px;
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--text-gray);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards 0.5s;
}

.inline-link {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: left bottom 1px;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: background-size 0.18s ease, color 0.18s ease;
}

.inline-link::after {
  content: '↗';
  display: inline-block;
  margin-left: 2px;
  font-size: 0.85em;
  transform: translateY(-1px);
}

.inline-link:hover {
  color: #ffd657;
  background-size: 100% 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards 0.65s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease-snap), box-shadow 0.16s var(--ease-snap), background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--yellow);
  border: 1px solid transparent;
  color: var(--navy);
  box-shadow: 0 6px 0 var(--yellow-dark), 0 14px 24px -10px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
  background: var(--navy-card);
  color: var(--text-white);
  border: 1px solid var(--navy-line-bold);
  box-shadow: 0 6px 0 rgba(138, 147, 184, 0.4), 0 14px 24px -10px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) {
  .btn-primary:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--yellow-dark), 0 8px 16px -8px rgba(0, 0, 0, 0.45); }
  .btn-secondary:hover {
    transform: translateY(3px);
    border-color: var(--yellow);
    color: var(--yellow);
    box-shadow: 0 3px 0 rgba(138, 147, 184, 0.4), 0 8px 16px -8px rgba(0, 0, 0, 0.45);
  }
}

.btn-primary:active { transform: translateY(6px); box-shadow: 0 0 0 var(--yellow-dark); transition-duration: 0.08s; }
.btn-secondary:active { transform: translateY(6px); box-shadow: 0 0 0 rgba(138, 147, 184, 0.4); transition-duration: 0.08s; }

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  bottom: 28px;
  z-index: 40;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0;
  transition: opacity 0.8s ease-out;
  animation: rise 0.7s var(--ease) forwards 0.9s, bob 2.4s ease-in-out 1.6s infinite;
}

.scroll-cue.hidden { opacity: 0 !important; transition-duration: 1s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============ À propos ============ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text p {
  color: var(--text-gray);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 1rem;
}

.about-text strong { color: var(--text-white); }

/* Pile de statut façon prompt shell (starship-like), en lieu d'une grille de stats classique */
.prompt-stack {
  border: 1px solid var(--navy-line-bold);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.prompt-stack-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--navy-line-bold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-gray);
}

.prompt-stack-head .chevron { color: var(--yellow); }

.prompt-row {
  display: grid;
  grid-template-columns: 14px 110px 1fr;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--navy-line-bold);
  font-family: var(--font-mono);
}

.prompt-row:last-child { border-bottom: none; }

.prompt-row .chevron { color: var(--yellow); font-weight: 700; }

.prompt-row .k {
  grid-column: 2;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.prompt-row .v {
  grid-column: 3;
  font-size: 13px;
  color: var(--text-white);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .prompt-row { grid-template-columns: 14px 1fr; }
  .prompt-row .k { grid-column: 2; grid-row: 1; }
  .prompt-row .v { grid-column: 2; grid-row: 2; }
}

/* ============ Parcours (formation & expérience, fusionné dans #about) ============ */

.parcours-block {
  margin-top: clamp(48px, 8vw, 80px);
}

.subsection-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin-bottom: 1.5rem;
}

.subsection-title .accent { color: var(--yellow); }

.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
}

@media (max-width: 780px) {
  .parcours-grid { grid-template-columns: 1fr; }
}

.parcours-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.timeline {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--navy-line-bold);
  padding-left: 24px;
}

.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--navy);
}

.timeline-item.upcoming::before {
  background: var(--navy);
  border: 2px solid var(--yellow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.timeline-badge {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow);
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
}

.timeline-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 3px;
}

.timeline-place { font-size: 12.5px; color: var(--text-gray); margin-top: 2px; }

.timeline-desc { font-size: 12.5px; color: var(--text-gray); line-height: 1.6; margin-top: 8px; }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 194, 28, 0.08);
  color: var(--yellow);
}

/* ============ Compétences ============ */

.skills-groups { display: flex; flex-direction: column; gap: 22px; }

.skills-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  color: var(--text-gray);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.tag:hover { border-color: var(--yellow); color: var(--yellow); }

/* ============ Projets ============ */

/* Grille bento façon aywen.fr : colonnes fixes, cartes de largeurs variées */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.project-card.wide { grid-column: span 2; }

/* Une seule colonne en dessous de 900px : un palier à 2 colonnes mélange
   l'ordre des cartes à cause du grid-auto-flow dense combiné à la carte large */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.wide { grid-column: span 1; }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 20px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  text-decoration: none;
  color: var(--text-white);
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 480px) {
  .project-card { padding: 20px; }
  .project-image { margin: -20px -20px 4px; height: 150px; }
}

.project-image {
  display: block;
  margin: -26px -26px 4px;
  height: 170px;
  background: rgba(255, 255, 255, 0.03);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coins de visée qui apparaissent au survol, façon scan */
.project-card::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, inset 0.2s ease;
  background:
    linear-gradient(var(--yellow), var(--yellow)) top left / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) top left / 2px 12px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) top right / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) top right / 2px 12px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom left / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom left / 2px 12px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom right / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom right / 2px 12px no-repeat;
}

@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  }

  .project-card:hover::before { opacity: 1; inset: 8px; }
}

.project-ref {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.15rem;
}

.project-desc { font-size: 13.5px; color: var(--text-gray); line-height: 1.5; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.project-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 194, 28, 0.08);
  color: var(--yellow);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-gray);
}

.project-card:hover .project-link { color: var(--yellow); }

/* ============ Réseaux ============ */

.socials-subsection-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.socials-subsection-label-other { margin-top: 28px; }

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.socials-grid-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  color: var(--text-gray);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-pill .icon { width: 16px; height: 16px; flex-shrink: 0; }

@media (hover: hover) {
  .social-pill:hover { border-color: var(--yellow); color: var(--yellow); }
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  color: var(--text-white);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s var(--ease);
}

.social-card .icon { width: 24px; height: 24px; flex-shrink: 0; }

.social-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-card-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 17px;
}

.social-card-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.social-card-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--text-faint);
  transition: color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .social-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
  .social-card:hover .social-card-arrow { color: var(--yellow); transform: translateX(3px); }
}

/* ============ Contact / footer ============ */

.contact-intro { color: var(--text-gray); margin-bottom: 28px; font-size: 15px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--navy-line-bold);
  color: var(--text-white);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.form-group textarea { resize: vertical; min-height: 120px; font-family: inherit; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.submit-btn { align-self: flex-start; }

.form-message {
  font-family: var(--font-mono);
  font-size: 13px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.form-message.show { opacity: 1; max-height: 100px; margin-top: 4px; }
.form-message-success { color: #1fae6e; }
.form-message-error { color: #f04e3e; }

/* ============ Gate (coming soon) ============ */

.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  border-radius: 16px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  text-align: center;
}

.gate-message {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
}

.gate-message-en {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-form input[type="password"] {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--navy-line-bold);
  color: var(--text-white);
  text-align: center;
}

.gate-form input[type="password"]:focus {
  border-color: var(--yellow);
  outline: none;
}

.gate-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #f04e3e;
  margin-top: 4px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  text-decoration: none;
  color: var(--text-white);
  transition: border-color 0.15s ease;
}

@media (hover: hover) {
  .contact-info-card:hover { border-color: var(--yellow); }
}

.contact-info-icon { width: 20px; height: 20px; flex-shrink: 0; }

.contact-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-info-value {
  font-size: 13.5px;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Champ piège à bots, masqué hors écran plutôt qu'en display:none (parfois repéré) */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cv-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
}

.cv-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-white);
  margin-bottom: 6px;
}

.cv-card-desc {
  font-size: 12.5px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cv-request-btn { width: 100%; justify-content: center; }

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 14, 39, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 16px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line-bold);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

.modal-close:hover { color: var(--yellow); }

.modal-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 8px;
  padding-right: 24px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 22px;
}

.cv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer {
  border-top: 1px solid var(--navy-line);
  padding: 32px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-socials { display: flex; gap: 18px; }

.footer-socials a { color: var(--text-gray); transition: color 0.15s ease; line-height: 0; }
.footer-socials a:hover { color: var(--yellow); }

/* Icônes (masque CSS sur fichiers .svg externes, suivent la couleur du parent) */
.icon {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-github { width: 18px; height: 18px; -webkit-mask-image: url(../img/icons/github.svg); mask-image: url(../img/icons/github.svg); }
.icon-x { width: 16px; height: 16px; -webkit-mask-image: url(../img/icons/x.svg); mask-image: url(../img/icons/x.svg); }
.icon-twitch { width: 18px; height: 18px; -webkit-mask-image: url(../img/icons/twitch.svg); mask-image: url(../img/icons/twitch.svg); }
.icon-youtube { width: 19px; height: 19px; -webkit-mask-image: url(../img/icons/youtube.svg); mask-image: url(../img/icons/youtube.svg); }
.icon-instagram { width: 18px; height: 18px; -webkit-mask-image: url(../img/icons/instagram.svg); mask-image: url(../img/icons/instagram.svg); }
.icon-mail { width: 18px; height: 18px; -webkit-mask-image: url(../img/icons/mail.svg); mask-image: url(../img/icons/mail.svg); }
.icon-discord { width: 18px; height: 18px; -webkit-mask-image: url(../img/icons/discord.svg); mask-image: url(../img/icons/discord.svg); }
.icon-linkedin { width: 18px; height: 18px; -webkit-mask-image: url(../img/icons/linkedin.svg); mask-image: url(../img/icons/linkedin.svg); }
.icon-vps { width: 15px; height: 15px; -webkit-mask-image: url(../img/icons/server.svg); mask-image: url(../img/icons/server.svg); }
.icon-globe { -webkit-mask-image: url(../img/icons/globe.svg); mask-image: url(../img/icons/globe.svg); }

.footer-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.footer-legal-link {
  display: inline-block;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-legal-link:hover { color: var(--yellow); }

/* ============ Mentions légales ============ */

.legal-page {
  padding-top: clamp(120px, 18vh, 160px);
  padding-bottom: 80px;
}

.project-page {
  padding-top: clamp(88px, 12vh, 120px);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.legal-content { max-width: 720px; }

.legal-content h2 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
  margin: 40px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-gray);
  line-height: 1.75;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-gray);
  line-height: 1.75;
  font-size: 14.5px;
  margin: 0 0 12px 20px;
}

.legal-content a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }

.legal-back-btn { margin-top: 48px; }

/* ============ Page projet ============ */

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.project-detail-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-line-bold);
  color: var(--text-gray);
}

.project-hero-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--navy-line-bold);
  margin-bottom: 32px;
}

.project-hero-image img { width: 100%; height: auto; display: block; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 12px;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--navy-line-bold);
}

.project-detail-tags { margin-top: 32px; }

/* ============ Badge porte-clefs ============ */

.keys-page {
  padding-top: clamp(48px, 10vh, 90px);
  padding-bottom: 60px;
  max-width: 560px;
}

.keys-page .section-label { margin-bottom: 18px; }

.keys-page .legal-content { max-width: none; margin-bottom: 8px; }

.keys-form { max-width: 100%; }

@media (max-width: 480px) {
  .keys-page { padding-top: clamp(32px, 8vh, 64px); }
  .keys-page .section-title { font-size: clamp(1.5rem, 8vw, 2rem); }
}

/* ============ Accessibilité ============ */

@media (prefers-reduced-motion: reduce) {
  .hero-avatar, .hero-avatar img, .hero-title, .hero-subtitle, .hero-actions, .scroll-cue {
    opacity: 1; transform: none; animation: none;
  }
  .hero-avatar img {
    filter:
      drop-shadow(0 0 8px rgba(255, 194, 28, 0.5))
      drop-shadow(0 0 22px rgba(255, 194, 28, 0.32))
      drop-shadow(0 0 42px rgba(255, 194, 28, 0.18));
  }
  html { scroll-behavior: auto; }
}
