﻿:root {
  --bg: #0a111b;
  --surface: rgba(13, 19, 32, 0.9);
  --surface-glass: rgba(16, 23, 37, 0.82);
  --surface-strong: rgba(10, 15, 26, 0.96);
  --text: #f4f6fb;
  --text-muted: #b7c0d3;
  --text-soft: #8f9bb0;
  --border: rgba(169, 188, 220, 0.18);
  --border-strong: rgba(207, 221, 244, 0.38);
  --shadow: 0 16px 48px rgba(3, 8, 17, 0.28);
  --shadow-soft: 0 8px 24px rgba(3, 8, 17, 0.18);
  --focus: #b8d7ff;
  --primary: #c7f36b;
  --primary-contrast: #0f1805;
  --primary-soft: rgba(199, 243, 107, 0.14);
  --chip-bg: rgba(245, 248, 255, 0.03);
  --chip-bg-hover: rgba(245, 248, 255, 0.08);
  --chip-text: #edf2fb;
  --accent-soft: rgba(177, 206, 255, 0.1);

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  --font-size-0: clamp(0.84rem, 0.8rem + 0.18vw, 0.92rem);
  --font-size-1: clamp(0.95rem, 0.9rem + 0.24vw, 1.05rem);
  --font-size-2: clamp(1.06rem, 1rem + 0.34vw, 1.2rem);
  --font-size-3: clamp(1.35rem, 1.12rem + 0.82vw, 1.72rem);
  --font-size-4: clamp(2.5rem, 1.72rem + 2.8vw, 4.8rem);

  --line-height-tight: 1.08;
  --line-height-heading: 1.14;
  --line-height-base: 1.68;

  --max-width: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Satoshi", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--primary-contrast);
  background: rgba(199, 243, 107, 0.9);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: var(--line-height-heading);
}

p,
ul {
  margin-top: 0;
}

body.detail-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 300;
  transform: translateY(-180%);
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.96);
  color: var(--text);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.22s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(rgba(194, 216, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 216, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(126, 157, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 157, 214, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px, auto;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px, 0 0;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-bg::before {
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(221, 232, 255, 0.08), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(180, 204, 255, 0.05), transparent 20%),
    radial-gradient(circle at 72% 76%, rgba(199, 243, 107, 0.04), transparent 24%);
  opacity: 0.95;
}

.page-bg::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 19, 0.04), rgba(8, 12, 19, 0.36));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(199, 243, 107, 0.95), rgba(184, 215, 255, 0.95));
  z-index: 140;
}

.hero,
.section,
footer.section {
  width: var(--max-width);
  margin: 0 auto;
}

.hero {
  padding: 0;
}

.top-nav {
  position: fixed;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: var(--max-width);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(206, 219, 241, 0.2);
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(18px) saturate(110%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  z-index: 120;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-nav.scrolled {
  background: rgba(10, 15, 26, 0.92);
  border-color: rgba(206, 219, 241, 0.28);
  box-shadow: 0 16px 40px rgba(3, 8, 17, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 0.96rem + 0.36vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a,
.meta-chip,
.theme-option,
.btn,
.filter-btn,
.skill-chip,
.detail-close,
.item-toggle,
.contact-link {
  -webkit-tap-highlight-color: transparent;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-0);
  font-weight: 600;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(206, 219, 241, 0.16);
}

main section,
footer {
  scroll-margin-top: 7.5rem;
}

.hero-content,
.section,
footer.section,
.timeline-item,
.project-card,
.detail-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-content::before,
.section::before,
footer.section::before,
.timeline-item::before,
.project-card::before,
.detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 32%, transparent 72%, rgba(255, 255, 255, 0.02));
  opacity: 0.7;
}

.hero-content {
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.8rem);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(18rem, 0.86fr);
  gap: clamp(1.4rem, 1rem + 1.5vw, 2.5rem);
  align-items: end;
  min-height: min(78vh, 760px);
  isolation: isolate;
}

.hero-content::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% 42%;
  height: 70%;
  background: radial-gradient(circle, rgba(244, 249, 255, 0.08), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  font-size: var(--font-size-4);
  line-height: var(--line-height-tight);
  text-wrap: balance;
}

.intro {
  max-width: 36rem;
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-size: clamp(1.08rem, 0.98rem + 0.5vw, 1.34rem);
  line-height: 1.72;
}

.quick-meta {
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  list-style: none;
  align-content: end;
}

.quick-meta li {
  margin: 0;
}

.meta-chip {
  width: 100%;
  min-height: 64px;
  justify-content: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(206, 219, 241, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--chip-text);
  font: inherit;
  font-size: var(--font-size-1);
  line-height: 1;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.cta-row,
.filters,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row {
  margin-top: var(--space-6);
}

.btn,
.filter-btn,
.skill-chip,
.interest-tag {
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font: inherit;
  font-size: var(--font-size-1);
  line-height: 1;
}

.btn {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.btn.primary {
  color: var(--primary-contrast);
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(199, 243, 107, 0.18);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(199, 243, 107, 0.2);
}

.btn.secondary,
.filter-btn,
.skill-chip {
  background: rgba(255, 255, 255, 0.03);
  color: var(--chip-text);
  cursor: pointer;
}

.btn.secondary:hover,
.filter-btn:hover,
.skill-chip:hover,
.meta-chip:hover,
.theme-option:hover,
.menu-toggle:hover,
.detail-close:hover,
.item-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.5);
}

.section,
footer.section {
  margin-top: 0;
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2.15rem);
  letter-spacing: -0.04em;
}

.bento-card .section-head h2 {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bento-card .section-head h2::after {
  content: "";
  width: 3rem;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 243, 107, 0.88), rgba(199, 243, 107, 0));
}

.theme-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.theme-option {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--chip-text);
  font: inherit;
  font-size: var(--font-size-0);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.theme-option .swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.theme-option[data-theme="sombre"] .swatch-dot {
  background: #7c93ff;
}

.theme-option[data-theme="nuit"] .swatch-dot {
  background: #9cbcff;
}

.theme-option[data-theme="contraste"] .swatch-dot {
  background: #c7f36b;
}

.theme-option.active,
.theme-option[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding-left: 1.15rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(199, 243, 107, 0.55), rgba(184, 215, 255, 0.14));
}

.timeline-item {
  margin-left: 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: -1.06rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(199, 243, 107, 0.9);
  box-shadow: 0 0 0 6px rgba(199, 243, 107, 0.12);
}

.timeline-item.open,
.timeline-item:hover {
  border-color: rgba(215, 226, 245, 0.26);
  transform: translateY(-1px);
}

.item-toggle {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 72px;
  padding: 1.15rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
}

.item-toggle span:first-child {
  font-size: clamp(1rem, 0.96rem + 0.24vw, 1.12rem);
  font-weight: 700;
  line-height: 1.4;
}

.item-toggle span:last-child {
  color: var(--text-muted);
  font-size: var(--font-size-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.item-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  color: var(--text-muted);
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.item-content p {
  margin-bottom: 0.75rem;
}

.item-content ul {
  margin: 0;
  padding-left: 1.1rem;
}

.item-content li + li {
  margin-top: 0.35rem;
}

.timeline-item.open .item-content {
  max-height: 22rem;
  padding-bottom: 1.2rem;
}

.filters {
  align-items: center;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  width: fit-content;
  max-width: 100%;
}

.filter-btn,
.skill-chip {
  font-weight: 600;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.filter-btn.active,
.skill-chip.active {
  color: var(--text);
  background: rgba(199, 243, 107, 0.13);
  border-color: rgba(181, 255, 92, 0.55);
}

.interest-tag {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(206, 219, 241, 0.2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--chip-text);
  cursor: default;
  user-select: none;
}

.project-grid {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  min-height: 100%;
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 226, 245, 0.28);
}

.project-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem);
}

.project-card p:last-child {
  margin-bottom: 0;
}

.project-card .tags {
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card.hidden {
  opacity: 0.2;
  transform: scale(0.985);
  pointer-events: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 1.02rem + 0.58vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.interactive-item {
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.interactive-item:hover,
.interactive-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(215, 226, 245, 0.28);
}

.interactive-item p,
.interactive-item li,
.project-card p,
.section p,
footer p {
  color: var(--text-muted);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.interactive-item:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-page {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.detail-page.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-page.mode-sheet {
  place-items: stretch end;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 10, 17, 0.68);
  backdrop-filter: blur(10px);
}

.detail-page.mode-sheet .detail-backdrop {
  background: rgba(6, 10, 17, 0.54);
}

.detail-card {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(82vh, 780px);
  overflow: auto;
  padding: 2rem 2rem 2.4rem;
  border-radius: 28px;
  transform: translateY(18px) scale(0.99);
  opacity: 0.98;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.detail-page.open .detail-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.detail-page.mode-sheet .detail-card {
  width: min(480px, calc(100vw - 0.75rem));
  max-height: 100vh;
  height: 100vh;
  border-radius: 28px 0 0 28px;
  border-left: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  transform: translateX(32px);
}

.detail-page.open.mode-sheet .detail-card {
  transform: translateX(0);
}

.detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 46px;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--chip-text);
  font-weight: 600;
  cursor: pointer;
}

.detail-kicker {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#detail-title {
  margin: 1rem 0 0.7rem;
  max-width: 14ch;
  font-size: clamp(1.8rem, 1.22rem + 1.8vw, 2.8rem);
  text-wrap: balance;
}

#detail-body {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: var(--font-size-2);
  line-height: 1.74;
}

footer {
  margin-bottom: var(--space-8);
}

.bento-main {
  position: relative;
  isolation: isolate;
  width: var(--max-width);
  margin: 0 auto var(--space-8);
  padding-top: calc(var(--space-9) + var(--space-7));
}

.bento-main::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border-radius: var(--radius-xl);
  pointer-events: none;
  background:
    linear-gradient(rgba(194, 216, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 216, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(126, 157, 214, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 157, 214, 0.045) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
  opacity: 0.28;
  z-index: 0;
}

.bento-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.bento-grid > .section,
.bento-grid > footer.section {
  width: auto;
  margin: 0;
  height: 100%;
}

.bento-card {
  padding: clamp(1.35rem, 1rem + 0.9vw, 2rem);
}

.bento-hero-card {
  grid-column: 1 / -1;
  grid-row: 1;
}

.bento-hero-card.hero-content {
  margin-top: 0;
}

.bento-profil {
  grid-column: 1 / 8;
  grid-row: 2;
}

.bento-projets {
  grid-column: 8 / 13;
  grid-row: 2;
}

.bento-experience {
  grid-column: 1 / 8;
  grid-row: 3 / span 2;
}

.bento-competences {
  grid-column: 8 / 13;
  grid-row: 3;
}

.bento-formations {
  grid-column: 8 / 13;
  grid-row: 4;
}

.bento-interets {
  grid-column: 1 / 5;
  grid-row: 5;
}

.bento-contact {
  grid-column: 5 / 13;
  grid-row: 5;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .intro,
.hero-content .cta-row {
  grid-column: 1;
}

.hero-content .quick-meta {
  grid-column: 2;
}

.bento-projets .project-grid {
  grid-template-columns: 1fr;
  margin-top: var(--space-4);
}

.bento-formations .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.bento-formations .project-card:last-child {
  grid-column: 1 / -1;
}

.bento-competences .skill-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bento-interets .skill-cloud {
  gap: 0.7rem;
}

.bento-contact .cta-row {
  margin-top: 1.5rem;
}

@media (max-width: 1120px) {
  .bento-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .bento-profil,
  .bento-experience,
  .bento-contact {
    grid-column: span 8;
    grid-row: auto;
  }

  .bento-projets,
  .bento-competences,
  .bento-formations,
  .bento-interets {
    grid-column: span 4;
    grid-row: auto;
  }

  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-content h1 {
    max-width: 12ch;
  }

  .hero-content .quick-meta {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .bento-main {
    padding-top: calc(var(--space-8) + var(--space-8));
  }

  .top-nav {
    padding: 0.85rem;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(206, 219, 241, 0.22);
    border-radius: 24px;
    background: rgba(10, 15, 26, 0.96);
    backdrop-filter: blur(18px) saturate(110%);
    box-shadow: 0 20px 44px rgba(3, 8, 17, 0.34);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.24s ease, opacity 0.24s ease;
  }

  .menu.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .menu a {
    justify-content: flex-start;
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .bento-hero-card,
  .bento-profil,
  .bento-experience,
  .bento-projets,
  .bento-competences,
  .bento-formations,
  .bento-interets,
  .bento-contact {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-content .quick-meta,
  .bento-competences .skill-cloud,
  .bento-formations .project-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .filters {
    width: 100%;
    border-radius: 26px;
  }
}

@media (max-width: 640px) {
  .top-nav {
    top: var(--space-2);
    width: min(100vw - 1rem, 100%);
  }

  .hero-content,
  .section,
  footer.section,
  .bento-card {
    padding: 1.1rem;
  }

  .hero-content {
    border-radius: 28px;
  }

  .eyebrow {
    margin-bottom: 0.8rem;
  }

  .intro {
    margin-top: 1rem;
    font-size: 1.02rem;
  }

  .cta-row,
  .skill-cloud,
  .filters {
    width: 100%;
  }

  .cta-row > *,
  .skill-cloud > *,
  .filters > * {
    flex: 1 1 auto;
  }

  .timeline {
    padding-left: 0.95rem;
  }

  .timeline::before {
    left: 0.12rem;
  }

  .timeline-item::after {
    left: -0.88rem;
  }

  .item-toggle {
    grid-template-columns: 1fr;
  }

  .item-toggle span:last-child {
    white-space: normal;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    width: calc(100vw - 1rem);
    padding: 1.25rem 1.1rem 1.5rem;
  }

  .detail-page.mode-sheet .detail-card {
    width: calc(100vw - 0.3rem);
    border-radius: 22px 0 0 22px;
  }

  .detail-close {
    top: 0.7rem;
    right: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  body.js-enabled .reveal,
  body.js-enabled .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    overflow: visible !important;
    line-height: 1.42;
    font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 10.5pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-bg,
  .top-nav,
  .theme-switcher,
  .filters,
  .scroll-progress,
  .detail-page,
  .skip-link,
  .menu-toggle,
  .hero-photo-card,
  #print-cv,
  #copy-email,
  .hero-content .cta-row {
    display: none !important;
  }

  .bento-main,
  .bento-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .hero,
  .section,
  footer.section,
  .hero-content,
  .timeline-item,
  .project-card,
  .detail-card {
    width: 100% !important;
    margin: 0 0 6mm !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .hero-content::before,
  .hero-content::after,
  .section::before,
  footer.section::before,
  .timeline-item::before,
  .timeline-item::after,
  .project-card::before,
  .detail-card::before,
  .timeline::before,
  .bento-main::before {
    display: none !important;
    content: none !important;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  span,
  button {
    color: #000 !important;
  }

  h1,
  h2,
  h3 {
    font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif !important;
    break-after: avoid;
  }

  h1 {
    max-width: none !important;
    margin: 0 0 3mm !important;
    font-size: 24pt !important;
    line-height: 1.05 !important;
  }

  h2 {
    margin: 0 0 2.5mm !important;
    font-size: 14pt !important;
  }

  h3 {
    margin: 0 0 1.5mm !important;
    font-size: 11.5pt !important;
  }

  p,
  li,
  a,
  button,
  .meta-chip,
  .skill-chip,
  .interest-tag,
  .contact-link {
    font-size: 10.2pt !important;
    line-height: 1.42 !important;
    text-align: left !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }

  .eyebrow,
  .detail-kicker,
  .project-card .tags {
    color: #444 !important;
    font-size: 8pt !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
  }

  .intro,
  .item-content,
  .project-card p,
  .section p,
  footer p,
  .interactive-item p,
  .interactive-item li,
  .item-toggle span:last-child {
    color: #111 !important;
  }

  .hero-content,
  .project-grid,
  .bento-formations .project-grid,
  .bento-competences .skill-cloud,
  .hero-content .quick-meta,
  .bento-contact .cta-row {
    display: block !important;
  }

  .hero-content {
    min-height: auto !important;
  }

  .hero-content .quick-meta,
  .skill-cloud {
    margin: 3mm 0 0 !important;
    padding: 0 !important;
  }

  .hero-content .quick-meta li {
    list-style: none !important;
    margin: 0 0 1.5mm !important;
    padding: 0 !important;
  }

  .meta-chip,
  .skill-chip,
  .interest-tag,
  .contact-link,
  .bento-contact .cta-row a,
  .item-toggle {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .section-head {
    display: block !important;
    margin-bottom: 2.5mm !important;
  }

  .timeline {
    display: block !important;
    padding-left: 0 !important;
  }

  .timeline-item,
  .project-card,
  .bento-interets,
  .bento-formations,
  .bento-competences,
  .bento-projets,
  .bento-contact {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .item-toggle {
    min-height: auto !important;
    padding: 0 0 1.5mm !important;
  }

  .item-toggle span:first-child {
    font-weight: 700 !important;
  }

  .item-toggle span:last-child {
    display: block !important;
    margin-top: 0.5mm !important;
    white-space: normal !important;
    font-weight: 500 !important;
  }

  .item-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 0 2mm !important;
  }

  .item-content ul {
    margin: 0 !important;
  }

  .project-card {
    margin-bottom: 3mm !important;
  }

  .project-card.hidden {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    pointer-events: auto !important;
  }

  .bento-contact .cta-row {
    margin-top: 2mm !important;
  }

  .bento-contact .cta-row a {
    margin: 0 0 1.5mm !important;
    text-decoration: none !important;
  }

  .bento-contact .cta-row a[href^="tel:"]::after,
  .bento-contact .cta-row a[href*="linkedin.com"]::after {
    content: " : " attr(href);
    color: #111 !important;
    font-weight: 400;
  }

  a,
  .contact-link {
    text-decoration: none !important;
  }

  .reveal,
  body.js-enabled .reveal,
  body.js-enabled .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}




.skill-chip-centered {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 190px);
}


.hero-photo-card {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: center;
  width: 100%;
  margin: 0;
}

.hero-photo-frame {
  position: relative;
  padding: 0.9rem;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-photo-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 24, 42, 0.82), rgba(7, 15, 30, 0.98));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo-image {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-photo-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.04) 0%, rgba(6, 10, 18, 0.14) 55%, rgba(6, 10, 18, 0.48) 100%);
}

.hero-photo-image::after {
  content: "";
  position: absolute;
  inset: auto 12% 10%;
  height: 26%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 243, 107, 0.18), transparent 68%);
  filter: blur(14px);
}

.hero-photo-visual span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 27, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-photo-card figcaption {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.9rem;
  padding: 0 0.35rem;
  justify-items: center;
  text-align: center;
}

.hero-photo-card figcaption strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.hero-photo-card figcaption span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.hero-status i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #6fe27a;
  box-shadow: 0 0 0 4px rgba(111, 226, 122, 0.14);
  flex: 0 0 auto;
}

.detail-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.detail-slot {
  padding: 0.95rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-slot-label {
  margin: 0 0 0.42rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-slot-value {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.detail-page.mode-sheet .detail-slots {
  margin-top: 1.35rem;
}

.detail-page.mode-sheet .detail-card {
  padding-bottom: 2rem;
}




