/* ===== Couleurs et polices ===== */
:root {
  --night: #1B1A22;        /* bleu nuit (intro, pied de page) */
  --umber: #2B2019;        /* brun automnal (projets) */
  --cream: #FBF7F1;        /* fond clair (parcours) */
  --ink: #2A1D14;          /* texte foncé */
  --amber: #E9A35B;        /* accent */
  --rust: #8F4A1C;         /* accent sur fond clair */
  --light: #F4EDE4;        /* texte clair */
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); }
img { display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes float1 { from { transform: translate(0,0) scale(1); } to { transform: translate(120px,80px) scale(1.15); } }
@keyframes float2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-140px,-60px) scale(.95); } }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }

/* ===== INTRO ===== */
.intro { position: relative; height: calc(100vh + 1300px); }
.intro-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--light);
  background-color: var(--night);
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.intro-clip { position: absolute; inset: 0; clip-path: inset(16% 5% 16% 50% round 36px); }
.breathe { position: absolute; inset: 0; animation: breathe 12s ease-in-out infinite alternate; }
.intro-clip img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.intro-scrim {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to right, rgba(18,16,22,0.88), rgba(18,16,22,0.55) 30%, rgba(18,16,22,0) 52%);
}
.intro-content { position: relative; height: 100%; display: flex; flex-direction: column; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; }
.logo { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--amber); }
.hero { display: flex; flex-direction: column; gap: 24px; max-width: 540px; padding-top: 72px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--amber); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.accent { color: var(--amber); }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: #C3BCC6; }
.clients { font-size: 14px; color: #948C98; }
.nudge { font-size: 14px; font-weight: 600; padding-top: 16px; animation: nudge 1.8s ease-in-out infinite; }
.caption {
  position: absolute; left: 24px; top: 50%; width: min(440px, 38%);
  display: flex; flex-direction: column; gap: 16px; pointer-events: none;
  opacity: 0; transform: translateY(calc(-50% + 30px));
}
.caption-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.02em; color: #FFF7EC; }
.caption-sub { font-size: 19px; line-height: 1.5; color: #F1E3D0; }

/* ===== PROJETS ===== */
.projects { position: relative; background: var(--umber); }
.projects-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--umber); }
.blob { position: absolute; border-radius: 50%; }
.b1 { left: -10%; top: -20%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(233,163,91,0.28), rgba(233,163,91,0)); animation: float1 16s ease-in-out infinite alternate; }
.b2 { right: -15%; bottom: -25%; width: 65%; height: 85%; background: radial-gradient(closest-side, rgba(181,83,42,0.42), rgba(181,83,42,0)); animation: float2 20s ease-in-out infinite alternate; }
.projects-inner { position: relative; height: 100%; }
.projects-area { position: absolute; left: 24px; right: 24px; top: 0; bottom: 0; }
.section-label { position: absolute; left: 0; top: 4%; margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--amber); }
.win {
  position: absolute; overflow: hidden; background: #241B15; contain: strict;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  transition: left .9s cubic-bezier(.65,0,.35,1), top .9s cubic-bezier(.65,0,.35,1), width .9s cubic-bezier(.65,0,.35,1), height .9s cubic-bezier(.65,0,.35,1), border-radius .9s cubic-bezier(.65,0,.35,1);
}
.strip { position: absolute; left: 0; top: 0; width: 100%; display: flex; flex-direction: column; will-change: transform; }
.slide { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.slide .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .shot { position: absolute; width: 40%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.45); }

.card {
  position: absolute; display: flex; flex-wrap: wrap; gap: 14px 40px; color: var(--light);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .6s ease .25s, transform .6s ease .25s, visibility .6s;
}
.card.before { transform: translateY(-24px); }
.card.on { opacity: 1; visibility: visible; transform: none; }
.card-head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.card-body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.card .kind { font-size: 14px; font-weight: 600; color: #D9B48A; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 18px; line-height: 1.6; color: #D8CCBE; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; }
.tags span { padding: 6px 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(244,237,228,0.22); border-radius: 99px; }
.card a { font-weight: 600; font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; color: var(--amber); }
.dots { position: absolute; left: 0; bottom: 5%; display: flex; gap: 8px; }
.dots span { height: 8px; width: 8px; border-radius: 8px; background: rgba(244,237,228,0.25); transition: width .4s ease, background-color .4s ease; }
.dots span.on { width: 32px; background: var(--amber); }

/* ===== PARCOURS ===== */
.cv { position: relative; background: var(--cream); overflow: hidden; }
.cv-blob { left: -20%; right: auto; top: 10%; bottom: auto; width: 55%; height: 70%; background: radial-gradient(closest-side, rgba(233,163,91,0.28), rgba(233,163,91,0)); }
.cv-inner { position: relative; padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 64px; }
.cv-intro { flex: 1 1 320px; align-self: flex-start; position: sticky; top: 64px; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--rust); }
.cv-intro h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.cv-intro p { margin: 0; font-size: 18px; line-height: 1.6; color: #4A3828; }
.btn-dark { align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 600; border-radius: 99px; }
.cv-body { flex: 2 1 520px; display: flex; flex-direction: column; gap: 64px; }
.timeline { position: relative; padding-left: 36px; }
.timeline-track, .timeline-fill { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: #E3D3BF; }
.timeline-fill { background: var(--rust); }
.timeline ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 40px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.timeline li strong { font-family: var(--display); font-size: 26px; }
.timeline li > span:last-child { font-size: 17px; color: #4A3828; }
.pin { position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 2px solid var(--rust); }
.years { font-size: 14px; font-weight: 600; color: #75583F; }
.education { display: flex; flex-direction: column; gap: 20px; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.edu { padding: 28px; background: rgba(255,255,255,0.75); border: 1px solid #E8DACA; border-radius: 20px; display: flex; flex-direction: column; gap: 6px; }
.edu strong { font-family: var(--display); font-size: 24px; }
.edu span { color: #4A3828; }

@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .fill { transform-origin: top; animation: grow linear both; animation-timeline: view(); animation-range: cover 10% cover 70%; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* ===== CONTACT ===== */
.footer { background: var(--night); color: var(--light); }
.footer-inner { padding-top: 72px; padding-bottom: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.02em; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }
.footer-links a:hover { color: var(--amber); }

/* ===== Petits écrans ===== */
@media (max-width: 760px) {
  .nav { gap: 16px; font-size: 14px; }
  .hero { padding-top: 24px; gap: 16px; }
  .lead { font-size: 17px; }
  .caption { width: auto; right: 24px; top: auto; bottom: 64px; transform: translateY(30px); }
  .card h3 { font-size: 32px; }
  .card p { font-size: 16px; }
  .card-head, .card-body { flex-basis: 100%; }
}

/* Mouvement réduit : on garde le contenu, sans animations décoratives */
@media (prefers-reduced-motion: reduce) {
  .breathe, .blob, .nudge, .rise { animation: none; }
  .win, .card { transition: none; }
}
