/* Dr YAN — charte néo-brutaliste : crème, aubergine, ambre */
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url(fonts/Montserrat-900-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: 'Montserrat'; font-weight: 900; font-display: swap; src: url(fonts/Montserrat-900-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(fonts/PlusJakartaSans-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: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(fonts/PlusJakartaSans-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700 800; font-display: swap; src: url(fonts/PlusJakartaSans-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: 'Plus Jakarta Sans'; font-weight: 700 800; font-display: swap; src: url(fonts/PlusJakartaSans-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #4A1530;
  --ink-deep: #2B0A1B;
  --accent: #FDB500;
  --paper: #FFF4DC;
  --dots: #EBD8BC;
  --card: #FFFFFF;
  --muted: #6B4A5A;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --display: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dots) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
.shell { width: min(100% - 32px, 1160px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 10px 16px; background: var(--accent); border: var(--border); font-weight: 800; transform: translateY(-200%); }
.skip:focus { transform: none; }

.card { background: var(--card); border: var(--border); box-shadow: var(--shadow); border-radius: 14px; }

.tag {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 22px;
  border: var(--border); border-radius: 12px; font-weight: 800; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 150px; }
nav { display: flex; align-items: center; gap: clamp(8px, 3vw, 32px); font-size: .92rem; font-weight: 800; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
nav a:not(.nav-cta):hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.nav-cta { padding: 0 16px; background: var(--ink); color: var(--paper); border-radius: 10px; }
.nav-cta:hover { background: var(--ink-deep); }

/* Héros */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); hyphens: manual; }
.hl { display: inline; background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { max-width: 46ch; margin-top: 24px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.lead strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-art {
  position: relative; margin: 0; padding: 24px 24px 0; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center;
  background: var(--ink); border: var(--border); border-radius: 20px; box-shadow: 10px 10px 0 var(--accent), 10px 10px 0 3px var(--ink);
  overflow: hidden;
}
.hero-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff1f 1.6px, transparent 1.7px); background-size: 22px 22px; }
.hero-art img { position: relative; width: 92%; max-height: 100%; object-fit: contain; object-position: bottom; }
.bubble {
  position: absolute; top: 22px; left: 22px; z-index: 2; padding: 8px 16px;
  background: var(--accent); border: var(--border); border-radius: 14px 14px 14px 2px;
  font-family: var(--display); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; transform: rotate(-4deg);
}
.diamond { position: absolute; width: 18px; height: 18px; background: var(--accent); transform: rotate(45deg); }
.d1 { top: 26%; right: 9%; }
.d2 { top: 44%; left: 8%; width: 11px; height: 11px; }

/* Bandeau défilant */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); border-block: var(--border); }
.marquee-track { display: flex; gap: 28px; width: max-content; padding-block: 14px; animation: defile 30s linear infinite; font-family: var(--display); font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.marquee i { color: var(--accent); font-style: normal; }
@keyframes defile { to { transform: translateX(-50%); } }

/* À propos */
.about { padding-block: clamp(56px, 9vw, 120px); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-art { margin: 0; padding: 28px 28px 0; background: var(--accent); overflow: hidden; transform: rotate(-1.5deg); }
.about-art img { width: 100%; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.about-text h2 { margin-bottom: 22px; }
.about-text p { max-width: 60ch; color: var(--muted); }
.about-text p + p { margin-top: 14px; }
.about-text strong { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; }
.facts div { padding: 12px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; }
.facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; line-height: 1.3; }

/* Parcours */
.career { padding-block: clamp(48px, 7vw, 96px); border-top: var(--border); }
.section-head { margin-bottom: 36px; }
.timeline { position: relative; display: grid; gap: 22px; padding: 0 0 0 34px; margin: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 9px; width: 4px; background: var(--ink); border-radius: 2px; }
.timeline > li { position: relative; padding: 22px 24px; }
.timeline > li::before { content: ''; position: absolute; top: 26px; left: -34px; width: 22px; height: 22px; background: var(--card); border: var(--border); border-radius: 50%; }
.timeline > li.current::before { background: var(--accent); }
.when { display: inline-block; margin-bottom: 8px; padding: 2px 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.when span { font-weight: 600; color: var(--muted); }
.current .when { background: var(--accent); }
.timeline h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.where { margin-top: 4px; font-weight: 800; color: var(--muted); }
.note { margin-top: 10px; color: var(--muted); }
.socials:empty { display: none; }
.timeline ul:not(.chips) { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.timeline ul:not(.chips) li::marker { color: var(--accent); content: '◆  '; font-size: .8em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-size: .86rem; font-weight: 700; }


/* Casquettes */
.hats { padding-block: clamp(56px, 8vw, 110px); }
.hat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.hat-list li { display: flex; flex-direction: column; padding: 0 0 24px; overflow: hidden; }
.hat-art { height: 230px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 20px; background: var(--accent); border-bottom: var(--border); }
.hat-list li:nth-child(2) .hat-art { background: var(--ink); }
.hat-art img { height: 210px; width: auto; }
.hat-list h3 { padding-inline: 24px; font-size: 1.35rem; }
.hat-list p { margin-top: 10px; padding-inline: 24px; color: var(--muted); }
.hat-list strong { color: var(--ink); }
.timeline > li.highlight { background: var(--accent); }
.timeline > li.highlight .note, .timeline > li.highlight .when { color: var(--ink); }
.timeline > li.highlight::before { background: var(--ink); }

/* Formation */
.education { padding-block: clamp(48px, 7vw, 96px); border-top: var(--border); }
.edu-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.edu-grid h2 { margin-bottom: 28px; }
.sub { margin: 36px 0 18px; font-size: 1.2rem; }
.edu-list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.edu-list li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
.year { display: grid; place-items: center; height: 40px; background: var(--ink); color: var(--paper); border-radius: 10px; font-family: var(--display); font-weight: 900; font-size: .95rem; }
.year.star { background: var(--accent); color: var(--ink); border: var(--border); font-size: 1.2rem; }
.edu-list small { color: var(--muted); font-size: .88rem; }
.skills { display: grid; gap: 20px; }
.skill-card { padding: 22px 24px; }
.skill-card h3 { font-size: 1.1rem; }
.skill-card .chips { margin-top: 14px; }
.skill-card p { margin-top: 10px; color: var(--muted); }
.langs { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.langs li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 12px; align-items: center; font-weight: 800; }
.langs small { grid-column: 2; color: var(--muted); font-weight: 600; font-size: .8rem; }
.meter { height: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }

/* Réseaux */
.tag-light { background: var(--card); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px; background: var(--card); border: var(--border); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); font-weight: 800; text-decoration: none; }
.socials a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* Initiatives */
.projects { padding-block: clamp(56px, 8vw, 110px); background: var(--ink); color: var(--paper); border-block: var(--border); }
.projects-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.projects-intro p:not(.tag) { margin-top: 16px; max-width: 36ch; opacity: .85; }
.tag-dark { color: var(--ink); border-color: var(--paper); }
.projects-avatar { width: min(320px, 70%); margin-top: 28px; filter: drop-shadow(8px 8px 0 #00000055); }
.project-list { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.project { display: block; padding: 24px 26px; color: var(--ink); text-decoration: none; box-shadow: 8px 8px 0 var(--accent); border-color: var(--paper); transition: transform .15s ease, box-shadow .15s ease; }
.project:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--accent); }
.project-type { display: inline-block; padding: 3px 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.arrow { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--accent); border: var(--border); border-radius: 50%; font-family: var(--body); font-size: 1.2rem; }
.project p { margin-top: 8px; color: var(--muted); }

/* Clôture */
.closing { padding-block: clamp(56px, 8vw, 110px); }
.closing-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: end; padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px) 0; background: var(--accent); overflow: hidden; }
.closing-grid > div { padding-bottom: clamp(28px, 5vw, 56px); }
.closing h2 { margin-bottom: 16px; }
.closing p:not(.tag) { max-width: 48ch; margin-bottom: 26px; }
.closing .btn-primary { background: var(--card); }
.closing img { width: min(300px, 100%); justify-self: center; }

/* Pied de page */
.footer { background: var(--ink-deep); color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 96px; padding-block: 20px; font-size: .9rem; }
.footer img { width: 120px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .projects-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; width: 100%; justify-self: center; }
  .about-art { max-width: 380px; width: 100%; justify-self: center; }
  .edu-grid, .hat-list { grid-template-columns: 1fr; }
  .projects-avatar { display: none; }
}
@media (max-width: 640px) {
  nav a[href="#casquettes"] { display: none; }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 6px; }
  .timeline > li { padding: 18px; }
  .timeline > li::before { left: -26px; width: 18px; height: 18px; }
  .brand img { width: 118px; }
  .facts { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; }
  .closing-grid > div { padding-bottom: 0; }
  .closing img { width: 200px; }
  .btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  nav a[href="#histoire"] { display: none; }
  h2 { font-size: 1.6rem; }
  h1 { font-size: 1.9rem; }
  .edu-list li { grid-template-columns: 60px 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .project { transition: none; }
}
