/* ==========================================================================
   Arthur Willemenot — Portfolio
   Design system: dark, editorial, warm accent. Mobile-first.
   ========================================================================== */

:root {
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --border: #262629;
  --border-soft: #1e1e21;

  --text: #f5f5f2;
  --text-muted: #a3a39c;
  --text-dim: #6e6e6a;

  --accent: #ff5a36;
  --accent-soft: rgba(255, 90, 54, 0.12);
  --accent-border: rgba(255, 90, 54, 0.35);
  --accent-2: #ffd166;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { color: var(--text-muted); }

.highlight { color: var(--accent); font-weight: 600; }

::selection { background: var(--accent); color: #0b0b0d; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--text); }

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-btn {
  width: 30px; height: 22px;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  opacity: 0.55;
  transition: all 0.25s var(--ease);
}

.lang-btn img { width: 100%; height: 100%; object-fit: cover; }

.lang-btn:hover { opacity: 0.85; }
.lang-btn.active { opacity: 1; border-color: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: calc(var(--header-h) + 20px) 32px 32px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
  }

  .main-nav a { font-size: 1.1rem; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 150;
  }

  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 90, 54, 0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 90, 54, 0.10), transparent 40%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 40px;
  margin-bottom: 28px;
  width: fit-content;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight { color: var(--accent); }

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b0d;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 90, 54, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* ==========================================================================
   Section titles
   ========================================================================== */

.section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 420px;
}

/* ==========================================================================
   Projects grid (home)
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-card {
  grid-column: span 12;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

@media (min-width: 640px) {
  .project-card { grid-column: span 6; }
  .project-card.is-featured { grid-column: span 12; }
}

@media (min-width: 1000px) {
  .project-card { grid-column: span 4; }
  .project-card.is-featured { grid-column: span 12; }
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-border);
}

.project-card .card-media {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.project-card.is-featured .card-media { height: 340px; }

.project-card .card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0) 30%, rgba(11,11,13,0.92) 100%);
}

.project-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .card-media img { transform: scale(1.06); }

.card-status {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(11, 11, 13, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}

.card-status.is-new { background: var(--accent); color: #0b0b0d; border-color: transparent; }

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
}

.project-card.is-featured .card-title { font-size: 1.7rem; }

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 5px 11px;
  border-radius: 30px;
}

/* ==========================================================================
   Skills strip (home)
   ========================================================================== */

.skills-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 700px) {
  .skills-strip { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.skill-tile {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
}

.skill-tile h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.skill-tile p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ==========================================================================
   Project detail pages
   ========================================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: color 0.25s var(--ease);
}

.back-link:hover { color: var(--accent); }

.project-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.project-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.92) 100%);
  backdrop-filter: blur(2px);
}

.project-hero .container { position: relative; z-index: 2; }

.project-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 18px;
}

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

.project-meta span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 30px;
  background: rgba(255, 90, 54, 0.15);
  border: 1px solid var(--accent-border);
  color: var(--accent-2);
}

.report-cta {
  margin-top: 28px;
}

/* content grid */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}

.detail-grid:last-of-type { border-bottom: none; }

@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .detail-grid.reverse .detail-text { order: 2; }
  .detail-grid.reverse .detail-media { order: 1; }
}

.detail-text .kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.detail-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 18px;
  color: var(--text);
}

.detail-text p, .detail-text li {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.detail-text ul { margin-bottom: 14px; }
.detail-text li { position: relative; padding-left: 22px; }
.detail-text li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-conclusion {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
}

.detail-media img,
.detail-media video {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.media-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.media-frame.tight { padding: 0; overflow: hidden; }

/* --- carousel --- */

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius-md);
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}

.carousel-slide img { border-radius: var(--radius-md); border: 1px solid var(--border); }

.carousel-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(11,11,13,0.75);
  backdrop-filter: blur(6px);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 3;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(20,20,22,0.8);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}

.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0d; }
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }

@media (max-width: 640px) {
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.carousel-dots button.is-active { background: var(--accent); transform: scale(1.3); }

/* --- gallery grid (simple, non-carousel) --- */

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

@media (min-width: 700px) {
  .gallery-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
}

/* --- KPI stat row --- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}

@media (min-width: 700px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
}

.stat-tile .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-tile .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --- PDF / download block --- */

.doc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.doc-card .doc-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.doc-card .doc-info { flex: 1; }
.doc-card .doc-title { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.doc-card .doc-sub { font-size: 0.8rem; color: var(--text-dim); }

.pdf-embed {
  display: none;
}

@media (min-width: 900px) {
  .pdf-embed {
    display: block;
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .pdf-embed iframe { width: 100%; height: 480px; border: none; display: block; }
}

/* --- bilan / summary --- */

.bilan {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid var(--border-soft);
}

.bilan h2 {
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.bilan p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- project nav (prev/next) --- */

.project-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}

@media (min-width: 700px) {
  .project-pager { grid-template-columns: 1fr 1fr; }
}

.pager-link {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: all 0.3s var(--ease);
}

.pager-link:hover { border-color: var(--accent-border); transform: translateY(-4px); }

.pager-link .pager-dir {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}

.pager-link.next { text-align: right; }

.pager-link .pager-title { font-size: 1.05rem; font-weight: 600; }

/* ==========================================================================
   CV page
   ========================================================================== */

.cv-hero {
  padding: calc(var(--header-h) + 50px) 0 20px;
  text-align: center;
}

.cv-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
}

.cv-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 90px;
}

@media (min-width: 760px) {
  .cv-cards { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
}

.cv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cv-card h2 { font-size: 1.2rem; margin-bottom: 18px; }

.cv-preview {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

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

/* ==========================================================================
   Parcours (timeline)
   ========================================================================== */

.parcours-hero {
  padding: calc(var(--header-h) + 50px) 0 20px;
  max-width: 700px;
}

.parcours-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.parcours-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  max-width: 760px;
  padding: 60px 0 40px 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  z-index: 2;
}

.timeline-item.is-highlight .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-item.is-now .timeline-dot {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.timeline-item.is-highlight .timeline-card { border-color: var(--accent-border); }

.timeline-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.timeline-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-project-link::after { content: '→'; transition: transform 0.25s var(--ease); }
.timeline-project-link:hover::after { transform: translateX(4px); }

.parcours-cta {
  max-width: 760px;
  margin: 20px 0 90px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.parcours-cta h3 { font-size: 1.2rem; margin-bottom: 6px; }
.parcours-cta p { font-size: 0.9rem; color: var(--text-muted); max-width: 420px; }

@media (max-width: 640px) {
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -28px; }
  .parcours-cta { margin-left: 0; }
}
