@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #141d32;
  --ink-deep: #111b31;
  --muted: #46536a;
  --blue: #374d72;
  --ice: #f0f3f8;
  --line: #d7dfea;
  --white: #fff;
  --title: Manrope, system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fdfdfe; color: var(--ink); font-family: var(--body); line-height: 1.55; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #718cc1; outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3, .brand { font-family: var(--title); }
h2 { font-size: clamp(2.15rem, 4vw, 3.45rem); letter-spacing: -.06em; line-height: 1.08; font-weight: 800; }
h3 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -.037em; font-weight: 800; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.section-pad { padding-block: 84px; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: 12px; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #e6eaf0; background: #fdfdfe; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; letter-spacing: -.025em; }
.brand strong { font-weight: 800; }
.monogram { background: var(--ink-deep); width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; color: white; font-size: .95rem; font-weight: 800; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .93rem; font-weight: 700; text-decoration: none; color: var(--muted); }
nav a:hover, footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .24em; }
nav .nav-contact { min-height: 40px; padding: 7px 17px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: clamp(32px, 7vw, 110px); align-items: center; padding-block: 65px 72px; }
.eyebrow { color: var(--blue); display: flex; align-items: center; gap: 11px; font-weight: 800; font-family: var(--title); font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; }
.rule { display: inline-block; flex: 0 0 24px; height: 2px; background: currentColor; }
h1 { margin-top: 20px; font-size: clamp(4.05rem, 7.8vw, 7.4rem); font-weight: 800; letter-spacing: -.09em; line-height: .96; }
h1 span { color: var(--blue); }
.intro { margin-top: 29px; max-width: 485px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.7; }
.hero-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background .18s, border-color .18s; }
.primary { color: white; background: var(--ink-deep); }
.primary:hover { background: var(--blue); }
.outline { border-color: #cbd4e2; }
.outline:hover { background: var(--ice); }
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: .91rem; font-weight: 600; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: #39705c; box-shadow: 0 0 0 3px #e1eee8; }
.availability i { width: 4px; height: 4px; border-radius: 50%; background: #8390a3; }
.portrait { background: #e9edf4; padding: 15px 15px 0; border: 1px solid #dfe5ef; border-radius: 20px; }
.portrait-mat { overflow: hidden; border-radius: 12px; background: #cbd1d9; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: center 43%; }
.portrait figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; color: #3e4e67; padding: 14px 0; font-size: .89rem; font-weight: 700; }
.portrait figcaption span + span::before { content: '·'; margin-right: 12px; color: #7385a1; }
.projects, .skills { background: var(--ice); border-block: 1px solid #e3e8f0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.section-head h2, .contact h2 { margin-top: 10px; }
.section-head > p { color: var(--muted); max-width: 350px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.project-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #c9d4e4;
  border-radius: 8px;
  color: #2b3c58;
  background: white;
  font: 700 .91rem var(--body);
  cursor: pointer;
}
.project-filters button:hover { border-color: #5c7295; background: #e7eef9; }
.project-filters button[aria-pressed="true"] { border-color: var(--ink-deep); background: var(--ink-deep); color: white; }
.project-filters button:focus-visible { outline: 3px solid #718cc1; outline-offset: 3px; }
.project-filters button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding-inline: 5px;
  border-radius: 5px;
  background: #e7edf6;
  color: #33486c;
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
}
.project-filters button[aria-pressed="true"] span { background: #314365; color: white; }
.project-count { align-self: center; color: var(--muted); font-size: .91rem; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; align-items: start; }
.project-card { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 20px; }
.project-card:target { box-shadow: 0 0 0 3px #718cc1; }
.card-body { padding: clamp(20px, 3vw, 29px); }
.card-body h3 { margin-top: 8px; }
.project-intro { margin-top: 10px; color: var(--muted); }
.project-highlight {
  margin-top: 15px;
  padding-left: 10px;
  border-left: 2px solid #8299ba;
  color: #2c4368;
  font-size: .94rem;
  font-weight: 800;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 15px; list-style: none; }
.tags li { border-radius: 5px; background: #edf2f9; color: #30466b; padding: 3px 8px; font-size: .84rem; font-weight: 700; }
.project-visual {
  --art-base: #e5ecf7;
  --art-grid: #b6c8e32c;
  --art-border: #b8c8df;
  --art-label: #334d76;
  display: grid;
  place-items: center;
  min-height: 106px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  background-color: var(--art-base);
  background-image: linear-gradient(var(--art-grid) 1px, transparent 1px), linear-gradient(90deg, var(--art-grid) 1px, transparent 1px);
  background-size: 15px 15px;
}
.theme-bi { --art-base: #e7edf8; --art-label: #365784; }
.theme-data { --art-base: #e5eef5; --art-label: #2f516c; }
.theme-nlp { --art-base: #ebebf7; --art-label: #494c7d; }
.theme-vision { --art-base: #e9ebf5; --art-label: #4a507c; }
.theme-ml { --art-base: #e8eef5; --art-label: #344f72; }
#memoire .project-visual {
  --art-base: #1d2c49;
  --art-grid: #7892b33b;
  --art-border: #7e94b4;
  --art-label: #23395e;
}
.project-visual ol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-visual li {
  position: relative;
  z-index: 0;
  display: grid;
  place-content: center;
  min-width: 0;
  min-height: 39px;
  padding: 6px 8px;
  border: 1px solid var(--art-border);
  border-radius: 6px;
  background: #fcfdff;
  color: var(--art-label);
  font: 800 clamp(.71rem, 1.5vw, .84rem)/1.25 var(--title);
  text-align: center;
}
.project-visual li + li { margin-left: clamp(10px, 2.2vw, 24px); }
.project-visual li + li::before {
  position: absolute;
  right: 100%;
  top: 50%;
  width: clamp(10px, 2.2vw, 24px);
  height: 1px;
  background: var(--art-border);
  content: '';
}
.project-visual li:nth-child(2) { border-color: var(--art-label); background: var(--art-label); color: white; }
#memoire .project-visual li:nth-child(2) { border-color: #a5b8d7; }
.project-details { border-top: 1px solid #e1e7f0; }
.project-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary::before {
  display: grid;
  place-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
  content: "+" / "";
}
.project-details[open] summary::before { content: "−" / ""; }
.project-details summary:hover, .project-source:hover { text-decoration: underline; text-underline-offset: .22em; }
.project-details dl { display: grid; gap: 12px; margin-top: 5px; }
.project-details dt { font-weight: 800; }
.project-details dd { margin-top: 2px; color: var(--muted); }
.project-source { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 700; text-underline-offset: .2em; }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.timeline article, .skill-grid article { border-top: 1px solid var(--line); padding-block: 17px; }
.timeline .eyebrow { font-size: .78rem; }
.timeline h3 { margin-top: 7px; font-size: 1.28rem; }
.timeline h3 span { color: var(--blue); }
.timeline p:not(.eyebrow), .skill-grid p { color: var(--muted); margin-top: 8px; }
.skill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; }
.skill-grid h3 { font-size: 1.16rem; }
.contact { color: white; background: var(--ink-deep); }
.contact .eyebrow { color: #b7c9e6; }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.contact h2 { max-width: 650px; }
.contact-links { flex-shrink: 0; margin-top: 0; }
.light { color: var(--ink); background: white; }
.light:hover { background: #dce8f9; }
.ghost { border-color: #7386a6; }
.ghost:hover { background: #2e466c; }
footer { background: var(--ink-deep); color: #c6d3e8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #344565; min-height: 62px; font-size: .9rem; }
footer a:hover { color: white; }
@media (max-width: 950px) {
  .wrap { width: min(100% - 64px, 1200px); }
  .hero { gap: 32px; }
  .contact-inner { align-items: start; flex-direction: column; }
  .section-pad { padding-block: 66px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; padding-top: 11px; gap: 0; }
  nav { width: 100%; gap: 8px; justify-content: space-between; }
  nav a { font-size: .88rem; }
  nav .nav-contact { min-height: 44px; padding: 0; border: 0; }
  .hero { grid-template-columns: 1fr; padding-block: 43px 47px; }
  .portrait { width: min(100%, 440px); }
  h1 { font-size: clamp(3.65rem, 12vw, 5.55rem); }
  .section-head { align-items: start; flex-direction: column; gap: 9px; }
  .project-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-pad { padding-block: 53px; }
}
@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 12px; font-size: .93rem; }
  .portrait figcaption { gap: 3px 7px; font-size: .8rem; }
  .portrait figcaption span + span::before { margin-right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
