/* Home, legacy rules extracted from style.css. */

/* Accordion base rules, verbatim from style.css where they lived under pp-. */
.acc-block {
  border-top: 1px solid var(--border);
}

.acc-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1;
  flex: 1;
  transition: color var(--dur-state) var(--ease-out);
}

.hero-content { min-width: 0; }

.hero-aside {
  min-width: 0;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  padding-top: 15%;
  padding-bottom: 21%;
  line-height: 0;
}

.hero-photo {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-avatar {
  height: clamp(48px, 6.8vw, 92px);
  width: clamp(48px, 6.8vw, 92px);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 25%;
  display: block;
  flex-shrink: 0;
}

.hero-greeting {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-greeting::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-full);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

/* Two lines by choice: the plate needs 856px for one. D-104. */
.hero-role {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--action-default);
  color: var(--text-on-action);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  line-height: 1;
}

/* margin, not gap: below 1024 the plate goes display:block. */
.hero-role-line { display: block; }
.hero-role-line + .hero-role-line { margin-top: var(--space-2); }

.hero-location {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

/* No hardcoded 600px bound: the measure is a token. */
/* 18px under the bio removed: they were dead space in the column height. D-239. */
.hero-bio p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}
/* Dead: hero.css wins at equal specificity and already renders this. */
.hero-bio p strong { color: inherit; font-weight: 700; }
.hero-bio .about-tags { margin-top: 28px; }

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero bottom row: info strip */
/* 20px removed: they dated from when this block was in the left column flow. D-234. */

/* Hero horizontal info strip */
.hero-info-strip {
  display: inline-flex;
  align-items: stretch;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
}

.hero-strip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  flex-shrink: 0;
}

/* .hero-strip-sep left the markup; hero.css draws the rule on the cell. */
.hero-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
/* Accent hover removed: it targeted the span and beat the generic rule. */

/* .hero-strip-label left the markup with the band labels. D-108. */

.hero-strip-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.hero-strip-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--muted);
  transition: color var(--dur-state) var(--ease-out), background var(--dur-state) var(--ease-out);
  text-decoration: none;
  flex-shrink: 0;
}
/* Mail accent hover goes with the LinkedIn one. */
.hero-strip-mail svg { width: 16px; height: 16px; }
.hero-bio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-item {
  padding: 14px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  color: var(--orange);
}
.stat-value span { color: var(--orange); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.experience-card:hover .pli-tag {
  color: var(--orange);
  border-color: var(--border-accent-hv);
}

.exp-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.exp-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--bg3);
  padding: 4px;
  flex-shrink: 0;
}

/* Studio name typography lives in experience.css. D-206. */

.exp-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* Role progression timeline */
.exp-progression {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.exp-prog-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.exp-prog-role.current {
  background: var(--action-default);
  border-color: transparent;
  color: var(--text-on-action);
}
.exp-prog-arrow {
  /* A progression arrow carries information: --border-hover left it at 2.21:1. */
  color: var(--text-meta);
  font-size: 11px;
  flex-shrink: 0;
}

.exp-body {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
}
/* Accent to body bold: the accent never touches running text. */
.exp-body strong { color: var(--text); font-weight: 600; }

.exp-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* Bullets section in main experience card */
.exp-bullets {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
.exp-bullet-group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.exp-bullet-group:last-child {
  border-bottom: 1px solid var(--border);
}
.exp-bullet-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 4px;
  line-height: 1.5;
}
.exp-bullet-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 6px;
}

.exp-bullet-sublabel {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.exp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exp-bullet-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.exp-bullet-list li:last-child { margin-bottom: 0; }
.exp-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--orange);
}
.exp-bullet-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Project chips */
.exp-projects-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.exp-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-project-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  transition: color var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
a.exp-project-chip:hover {
  color: var(--text);
  border-color: var(--orange);
}
a.exp-project-chip::after {
  content: '↗';
  color: var(--orange);
  font-size: 9px;
}

/* Two-column secondary grid removed: Pango and StudioStudio each take a row. */
.experience-card-sm:hover .pli-tag {
  color: var(--orange);
  border-color: var(--border-accent-hv);
}

/* The gap belongs to the relation between two cards, not an inline style. */
.experience-card-sm + .experience-card-sm { margin-block-start: var(--rhythm-intra); }

.exp-sm-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.exp-sm-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: var(--radius-os);
  background: var(--bg3);
  padding: 10px;
  flex-shrink: 0;
}

/* Idem : la BOITE reste ici, la SURFACE est dans experience.css. D-206. */
.exp-sm-company {
  margin-bottom: 4px;
}
.exp-sm-period {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.exp-sm-role {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  margin-top: 2px;
}
.exp-sm-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}
.exp-sm-body strong { color: var(--text); font-weight: 600; }

/* ── EXPERIENCE BULLETS ── */
.exp-bullets {
  margin: 0;
}
.exp-bullet-group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.exp-bullet-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.5;
  padding-top: 4px;
}
.exp-bullet-sublabel {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: none;
}
.exp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exp-bullet-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
.exp-bullet-list li:last-child { margin-bottom: 0; }
.exp-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--orange);
}
.exp-bullet-list li strong { color: var(--text); font-weight: 600; }

/* Education block */
.edu-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-rest);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  transition: border-color var(--dur-state) var(--ease-out);
}
.edu-block:hover { border-color: var(--border-hover); }
.edu-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.edu-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg3);
  padding: 8px;
  flex-shrink: 0;
}
.edu-school {
  /* 28px is below the display floor: a school name is a card title. */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.edu-degrees {
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
}
.edu-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* ── PROJECTS GRID ── */

/* details wrapper: no border — only the summary gets the card frame */
.projects-accordion.acc-block {
  border: none;
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
}
.projects-accordion.acc-block:last-of-type {
  border: none;
  margin-bottom: 0;
}
.projects-accordion.acc-block .acc-title {
  font-size: 36px;
}

/* Accordion header: summary is the only framed element. */
.projects-accordion summary {
  padding: 18px 20px;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: 11px;
  background: transparent;
  transition: background var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out);
}

/* Hover on closed: light fill + stronger border */
.projects-accordion:not([open]) summary:hover {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}

/* Open state: summary stays framed, slight separator below */
.projects-accordion[open] summary {
  border-radius: 11px 11px 8px 8px;
  border-bottom-color: var(--border-default);
}

.acc-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Title must not stretch — badge stays immediately after the text */
.acc-title-row .acc-title {
  flex: none;
}

/* Badge: outline, accent border and text, tight to the title. */
.acc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  /* Un compteur est de la metadonnee : mono, comme toutes les autres. */
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.acc-tags {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.3;
}

.acc-thumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.acc-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background-color: var(--bg3);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform var(--dur-state) var(--ease-out);
}

.projects-accordion:not([open]):hover .acc-thumb {
  transform: scale(1.06);
}

.acc-thumb-more {
  background-color: var(--bg3);
  background-image: none !important;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.acc-thumb-dungeon {
  background-color: var(--surface-page);
  background-image: none !important;
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-thumb-dungeon::after { content: '#'; }

/* Thumbs hidden when open — visible in expanded list */
.projects-accordion[open] .acc-thumbs { display: none; }

/* Title stays text color on hover (card hover already signals interactivity) */
.projects-accordion:not([open]) summary:hover .acc-title {
  color: var(--orange);
}
.project-list.side .pli-visual {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 0;
  flex-shrink: 0;
}
.project-list.side .pli-content {
  padding: 10px 12px;
  gap: 3px;
  flex: 1;
}
.project-list.side .pli-number { display: none; }
.project-list.side .pli-name {
  font-size: clamp(15px, 1.4vw, 18px);
  white-space: normal;
}
.project-list.side .pli-role {
  font-size: 11px;
}
.project-list.side .pli-studio {
  font-size: 10px;
}
.project-list.side .pli-desc {
  font-size: 11px;
  max-width: 100%;
}
.project-list.side .pli-tags { margin-top: 3px; }
.project-list.side .pli-tag { font-size: 10px; padding: 2px 8px; }

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

.pli-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pli-number {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pli-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.pli-name-row .pli-name {
  flex: 1;
  min-width: 0;
}
.pli-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
  transition: color var(--dur-state) var(--ease-out);
}
.project-list-item:hover .pli-year { color: var(--text); }

.pli-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color var(--dur-state) var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-list-item:hover .pli-name { color: var(--text); }
.pli-name.long { font-size: clamp(18px, 1.7vw, 28px); }
.project-list-item:hover .pli-desc { color: var(--text); }
.project-list-item:hover .pli-tag {
  color: var(--orange);
  border-color: var(--border-accent-hv);
}

.pli-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: -4px;
}

.pli-studio {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: -4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pli-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 520px;
  margin-top: 2px;
  transition: color var(--dur-state) var(--ease-out);
}

.pli-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pli-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  transition: color var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out);
}

.pli-visual-wrap {
  position: relative;
  flex-shrink: 0;
}

.pli-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg3);
  width: 100%;
}

.pli-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pli-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.001;
  transition: opacity var(--dur-state) var(--ease-out);
  will-change: opacity;
}
.project-list-item:hover .pli-gif { opacity: 1; }

.pli-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.001;
  transition: opacity var(--dur-struct) var(--ease-out);
  will-change: opacity;
}
.project-list-item:hover .pli-video { opacity: 1; }

/* ── Dungeon side project card ── */
.pli-visual--dungeon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  overflow: hidden;
}
.pli-dungeon-art {
  font-family: var(--font-mono);
  font-size: clamp(4px, 0.85vw, 9px);
  line-height: 1.15;
  color: var(--orange);
  white-space: pre;
  text-align: left;
  margin: 0;
  padding: 8px;
  opacity: 0.85;
  transition: opacity var(--dur-struct) var(--ease-out), color var(--dur-struct) var(--ease-out);
}
.project-list-item:hover .pli-dungeon-art {
  opacity: 1;
  color: var(--accent-b);
}

/* pli-wip: WIP cursor, removed per card when the page ships. */

/* @keyframes pli-wiggle retire avec l animation infinie du badge. D-111. */

.pli-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  font-size: 18px;
  color: rgba(232,228,220,0.5);
  transition: color var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out);
}
.project-list-item:hover .pli-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}
/* ── PARCOURS ── */
/* No padding of its own: rhythm belongs to the relation between sections. */
.parcours-section {
  padding-block: 0;
}

/* Removed with the see-full-experience button. */

.parcours-timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 32px;
}

/* The groove: two 1px rules, dark above, surface below. */
.parcours-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  height: 2px;
  background: var(--surface-page);
  border-top: 1px solid var(--border-strong);
}

/* --grad-accent is a flat fill since D-086. */
.parcours-timeline::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 0; right: 0;
  height: 1px;
  background: var(--action-default);
  z-index: 0;
}

.parcours-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;

  /* No cursor:pointer: primitives.css sets cursor:none for the custom cursor. */
}

/* Dot on the palette: it carried two hardcoded cold greys. */
/* Square, not round: the timeline is a control, not a chart. */
.parcours-dot {
  width: 16px; height: 16px;
  border-radius: var(--radius-os);
  border: 2px solid var(--border-strong);
  background: var(--surface-raised);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out);
}

/* Tick: 1px under each stop, like the scale under a Windows slider. */
.parcours-dot::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 50%;
  width: 1px;
  height: var(--space-2);
  background: var(--border-strong);
}

.parcours-stop.is-active .parcours-dot::after {
  background: var(--action-default);
}

/* Slider thumb: accent fill and hard shadow, the one link between layers. */
.parcours-stop.is-active .parcours-dot {
  background: var(--action-default);
  border-color: var(--action-default);
  box-shadow: var(--shadow-sm);
}

/* Survol : l arret se designe comme une cible d OS, par son filet. */
.parcours-stop:hover .parcours-dot {
  border-color: var(--border-accent);
}

/* §6 : anneau pointille de 2px a 3px d offset, pas une ombre pleine. */
.parcours-stop:focus-visible {
  outline: none;
}
.parcours-stop:focus-visible .parcours-dot {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.parcours-stop-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Mono: all metadata, no exception. */
.parcours-stop-role {
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--meta-tracking);
  color: var(--text-primary);
  line-height: 1.3;
}
/* Caps like all metadata, or studio names render in mixed case. */
.parcours-stop-studio {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--meta-tracking);
  color: var(--text-meta);
}

.parcours-stop.is-active .parcours-stop-role { color: var(--orange); }

.parcours-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  padding: 20px 24px;
  min-height: 88px;
}
.parcours-card-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.parcours-card-role {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.1;
}
.parcours-card-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.parcours-card-studio { color: var(--text); text-transform: uppercase; }
.parcours-card-period { color: var(--orange); }
.parcours-card-highlight {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes exp-highlight {
  0%   { border-color: var(--orange); }
  100% { border-color: var(--border); }
}

/* ── Projects accordion chevron overrides (must come after base rule) ── */
.projects-accordion.acc-block summary::before {
  font-size: 22px;
  color: #a8a8a0;
  display: flex;
  align-items: center;
  align-self: center;
  transition: transform var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out);
}
.projects-accordion.acc-block:not([open]):hover summary::before {
  color: var(--orange);
  transform: translateX(4px);
}
.projects-accordion.acc-block[open] summary::before {
  color: var(--orange);
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  .hero-aside { position: static; }
  .hero-name { font-size: clamp(42px, 11vw, 64px); white-space: normal; }
  .hero-info-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .hero-strip-badge {
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .hero-strip-item {
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .hero-strip-item:nth-of-type(2) { border-right: none; }
  .hero-strip-item:nth-of-type(2),
  .hero-strip-mail {
    border-bottom: none;
  }
  .hero-strip-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-right: none;
    border-bottom: none;
  }
  .pli-visual { order: -1; aspect-ratio: 16 / 7; }
  .pli-visual-wrap { order: -1; }
  .pli-name { white-space: normal; }
  .pli-name.long { font-size: clamp(22px, 5.5vw, 38px); }
  .project-list.side .pli-visual { aspect-ratio: 16 / 6; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(4) { border-right: none; }
  .stat-item { padding: 14px 16px; }
  .stat-item:first-child { padding-left: 16px; }
  .exp-logo { width: 88px; height: 88px; padding: 6px; border-radius: var(--radius-os); }
  .exp-sm-logo { width: 80px; height: 80px; padding: 8px; border-radius: var(--radius-os); }
  /* Studio name steps removed: experience.css overrides at every width. */
  .edu-block { flex-direction: column; align-items: flex-start; padding: 24px; }
  .edu-logo { width: 56px; height: 56px; }
  .edu-school { font-size: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-greeting { font-size: 18px; }
  .hero-name { font-size: clamp(36px, 10vw, 52px); }
  .hero-role {
    display: block;
    font-size: 15px;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: center;
    padding: 10px 18px;
  }
  .hero-bio p { font-size: 15px; }
  .hero-bio-actions { flex-direction: column; }

  /* Project list */
  .pli-name { font-size: clamp(24px, 7vw, 38px); }
  .pli-role { font-size: 14px; }
  .pli-desc { font-size: 14px; }
  .pli-visual { aspect-ratio: 16 / 6; }
  .stat-value { font-size: 24px; }
  .exp-logo { width: 68px; height: 68px; padding: 5px; border-radius: var(--radius-os); }
  .exp-sm-logo { width: 60px; height: 60px; padding: 6px; border-radius: var(--radius-os); }
  /* Idem, voir D-206. */
  .exp-sm-role { font-size: 13px; }
  .exp-prog-role { font-size: 9px; padding: 3px 9px; }
  .exp-sm-header { gap: 14px; }

  /* Accordion closed state — mobile : vignettes sur leur propre ligne sous le titre */
  .projects-accordion summary { padding: 14px 16px; flex-wrap: wrap; gap: 10px 14px; }
  .projects-accordion[open] summary { padding: 14px 16px; }
  .acc-thumbs { flex-basis: 100%; margin-left: 28px; }
  .acc-thumb { width: 44px; height: 44px; border-radius: 8px; }
  .acc-badge { font-size: 12px; padding: 2px 7px; }

  /* Photo hidden on phones. D-164, D-170. */
  .hero-aside { display: none; }

  /* Display title stops being nowrap: at 375 it needs 245px in a 233px row. */
  .acc-title-row .acc-title { flex: 0 1 auto; min-width: 0; }

  /* Experience bullets: stack label above list */
  .exp-bullet-group { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
}

@media (min-width: 1081px) {

  /* Parcours */
  .parcours-stop-role  { font-size: 11px; }

  /* Studio visible again above 1081, where it used to be hidden. */
  .parcours-card { padding: 16px 18px; }
  /* 18px step removed: hero.css overrides --type-card at every width. D-207. */
}

/* These rules came from style.css. */
.acc-block summary {
  list-style: none;
  /* cursor: pointer retire — voir primitives.css et D-170. */
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  user-select: none;
}
.acc-block summary::-webkit-details-marker,
.acc-block summary::marker {
  display: none;
}
.acc-block summary::before {
  content: '▸';
  font-size: 14px;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--dur-state) var(--ease-out);
  display: inline-block;
  transform-origin: center;
}
.acc-block[open] summary::before {
  transform: rotate(90deg);
}
.acc-block summary:hover .acc-title {
  color: var(--orange);
}

/* Student rank. */
/* Double selector: .experience-card-sm gets its padding from style.css, later. */
.experience-card-sm.experience-card-sm--student {
  padding: var(--space-5);
}

.experience-card-sm--student .exp-sm-logo {
  width: 72px;
  height: 72px;
}

.experience-card-sm--student .exp-sm-header {
  gap: var(--space-4);
}

/* Student rank survives the responsive steps. */
@media (max-width: 900px) {
  .experience-card-sm--student .exp-sm-logo { width: 56px; height: 56px; }
}

@media (max-width: 640px) {
  .experience-card-sm--student .exp-sm-logo { width: 44px; height: 44px; }
}

/* Slider goes vertical on phones. */
@media (max-width: 640px) {
  .parcours-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    /* les etiquettes ne sont plus sous la barre : le creux disparait avec */
    padding-bottom: 0;
  }

  /* Groove, vertical: the dark rule moves left, the surface stays under. */
  .parcours-timeline::before {
    top: 0; bottom: 0;
    left: 8px; right: auto;
    width: 2px; height: auto;
    border-top: none;
    border-left: 1px solid var(--border-strong);
  }

  /* Segment parcouru : meme axe, meme decalage d un pixel. */
  .parcours-timeline::after {
    top: 0; bottom: 0;
    left: 9px; right: auto;
    width: 1px; height: auto;
  }

  /* The stop becomes a row: dot, tick, then the label on two lines. */
  .parcours-stop {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }

  /* Tick rotates a quarter turn and shortens into the 12px gutter. */
  .parcours-dot::after {
    top: 50%;
    left: calc(100% + var(--space-1));
    width: var(--space-1);
    height: 1px;
  }

  /* Centre sous un point, l intitule se lit ligne a ligne a sa gauche. */
  .parcours-stop-label {
    text-align: left;
    min-width: 0;
  }
}
