.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.project-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.summary-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.summary-list li {
  font-size: var(--font-size-card-compact);
  color: var(--muted);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-list li strong {
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.project-visual img {
  width: 100%;
  display: block;
}
.project-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  font-style: italic;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.content-card + .content-card { margin-top: 12px; }

.list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list li {
  color: var(--muted);
  font-size: var(--font-size-card-compact);
  font-weight: 400;
  line-height: 1.6;
}
.list li strong { color: var(--text); font-weight: 600; }

.text-muted {
  color: var(--muted);
  font-size: var(--font-size-card);
  line-height: 1.75;
  font-weight: 400;
}
.text-muted + .text-muted { margin-top: 12px; }

.project-next-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* ==============================================
   CASE STUDY - avant / apres IA
   ============================================== */
.ba-grid {
  display: grid;
  gap: 18px;
}

.ba-grid .ba-card {
  padding: 24px;
  background: var(--surface) !important;
  border: 0.5px solid var(--rule) !important;
  border-radius: var(--radius);
  box-shadow: none !important;
}

.ba-task {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.ba-task-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  background: var(--accent-light);
}

.ba-task-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ba-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ba-col {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.ba-col.after {
  border-color: var(--accent-mid);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}

.ba-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ba-time {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
}

.ba-col ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--font-size-card-compact);
  line-height: var(--line-card);
}

.ba-arrow {
  display: flex;
  width: 44px;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--accent) !important;
}

.ba-arrow svg {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
}

.ba-gain {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
}

@media (max-width: 800px) {
  .ba-row {
    grid-template-columns: 1fr;
  }

  .ba-arrow {
    width: 100%;
    min-height: 36px;
  }

  .ba-arrow svg {
    transform: rotate(90deg);
  }
}

/* ==============================================
   CASE STUDY - workflows IA
   ============================================== */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.workflow-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  min-width: 0;
}

.workflow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workflow-head::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 26px;
}

.workflow-num {
  color: var(--accent);
}

.workflow-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.workflow-problem {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.workflow-method {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.workflow-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workflow-method ol {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: var(--font-size-card-compact);
  line-height: var(--line-card);
}

.workflow-method li + li {
  margin-top: 8px;
}

.workflow-anchor {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workflow-anchor strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   CASE STUDY - indicateurs d'impact
   ============================================== */
.impact-section {
  position: relative;
  padding: 34px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.impact-section::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  pointer-events: none;
}

.impact-section .section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.impact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
}

.impact-card {
  min-height: 210px;
  padding: 30px 26px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.impact-card:last-child { border-right: 0; }

.impact-card::after {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.75;
}

.impact-card .metric-value {
  display: block;
  max-width: 100%;
  color: var(--accent);
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.impact-card .metric-label {
  display: block;
  margin-top: 12px;
  max-width: 30ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .impact-section { padding: 26px; }
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .impact-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .impact-card:last-child { border-bottom: 0; }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb-sep {
  color: var(--subtle);
  font-weight: 400;
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Section heading avec numéro */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 15px;
  flex-shrink: 0;
}
.section-heading h2 { margin: 0; }

/* Challenge card — la tension narrative */
.challenge-card .lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.challenge-tension {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 20px;
  font-size: var(--font-size-card-compact);
  line-height: 1.7;
  color: var(--text);
}
.challenge-tension strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Decisions section — grille d'arbitrages produit */
.decisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.decision-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.decision-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.decision-number {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.decision-card h3 {
  font-size: 19px;
  margin-bottom: 14px;
  line-height: 1.3;
}
.decision-rationale {
  font-size: var(--font-size-card-compact);
  line-height: var(--line-card);
  color: var(--muted);
}
.decision-rationale .label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--font-size-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
  margin-top: 8px;
}
.decision-rationale .label:first-child { margin-top: 0; }
.decision-rationale p { margin: 0; }
.decision-rationale p + .label { margin-top: 10px; }

/* Proof card — ce que ce projet prouve */
.proof-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.proof-list li {
  position: relative;
  padding: 18px 20px 18px 22px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  font-size: var(--font-size-card);
  line-height: var(--line-card);
  color: var(--text);
}
.proof-list li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

/* Spacing between case study sections */
.case-section { margin-top: 32px; }
.case-section:first-of-type { margin-top: 0; }

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

.case-toc {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 230px;
  font-size: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 1320px) {
  .case-toc { display: flex; }
}

.case-toc-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.case-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  line-height: 1.3;
  font-size: 12.5px;
}

.case-toc a .case-toc-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--subtle);
  width: 18px;
  flex-shrink: 0;
  transition: color 0.18s;
}

.case-toc a:hover {
  color: var(--text);
  background: var(--surface2);
}

.case-toc a.is-active {
  color: var(--accent);
  background: var(--accent-light);
}

.case-toc a.is-active .case-toc-num {
  color: var(--accent);
}

/* Scroll-margin pour ancres : passer sous le header sticky */
.case-section {
  scroll-margin-top: 96px;
}

.project-nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.project-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, background 0.25s;
  min-width: 0;
}
.project-nav-card .nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}
.project-nav-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-light);
  border-color: var(--accent-mid);
  background: var(--surface);
}
.project-nav-card:hover .nav-label {
  color: var(--accent);
}
.project-nav-card.next {
  text-align: right;
}
.project-nav-card.center {
  background: var(--accent-light);
  border-color: var(--accent-mid);
  text-align: center;
  align-items: center;
  justify-content: center;
}
.project-nav-card.center .nav-label,
.project-nav-card.center strong {
  color: var(--accent);
}

@media (max-width: 800px) {
  .project-nav-grid {
    grid-template-columns: 1fr;
  }
  .project-nav-card.next { text-align: left; }
  .project-nav-card.center { order: 3; }
}

/* ==============================================
   RELATED PROJECTS
   ============================================== */
.related-projects {
  padding: 32px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.related-projects h2 {
  margin: 6px 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.related-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.related-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}
.related-body p {
  color: var(--muted);
  font-size: var(--font-size-card-compact);
  line-height: var(--line-card);
  margin: 0;
}
.related-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 4px;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-light);
  border-color: var(--accent-mid);
}
.related-card:hover img {
  transform: scale(1.04);
}
.related-card:hover .related-body h3 {
  color: var(--accent);
}

@media (max-width: 700px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Quick-jump dropdown dans le prev/next */
.project-nav-jump {
  width: 100%;
  margin-top: 4px;
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
.project-nav-jump:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.project-nav-index {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.project-nav-index:hover { text-decoration: underline; }

.case-hero-banner {
  position: relative;
  margin: 8px 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface2);
}
.case-hero-banner-image {
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--surface2);
  overflow: hidden;
}
.case-hero-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease-out;
}
.case-hero-banner.visible .case-hero-banner-image img {
  transform: scale(1.04);
}
.case-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.case-hero-banner-meta {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 2;
}
.case-hero-banner-tag {
  background: var(--accent);
  color: var(--on-accent);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.case-hero-banner-period {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 700px) {
  .case-hero-banner { margin: 6px 0 24px; }
  .case-hero-banner-image { aspect-ratio: 16 / 9; }
  .case-hero-banner-meta { bottom: 12px; left: 14px; right: 14px; gap: 8px; }
  .case-hero-banner-period { font-size: 12px; }
}

/* ==============================================
   CASE STUDY — barre de progression de lecture
   ============================================== */
.case-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.case-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .case-progress-fill { transition: none; }
}

/* ==============================================
   CASE STUDY — sticky CTA mobile (fixé en bas)
   ============================================== */
.case-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  gap: 10px;
  z-index: 95;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease), opacity 0.25s;
}
.case-sticky-cta.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.case-sticky-btn {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.case-sticky-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  flex: 1.4;
}
.case-sticky-btn.primary:hover {
  background: var(--accent-strong);
}

@media (max-width: 900px) {
  .case-sticky-cta { display: flex; }
  body.is-case-study { padding-bottom: 76px; }
}

/* ==============================================
   CASE STUDY — TOC mobile collapsible
   Affichée < 1100px (pendant que .case-toc desktop est cachée)
   ============================================== */
.case-mobile-toc {
  display: none;
  margin: 18px 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.case-mobile-toc summary {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.case-mobile-toc summary::-webkit-details-marker { display: none; }
.case-mobile-toc summary:hover { background: var(--surface2); }
.case-mobile-toc summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.case-mobile-toc-icon {
  font-size: 16px;
  line-height: 1;
}
.case-mobile-toc-label {
  flex: 1;
  min-width: 0;
}
.case-mobile-toc-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.case-mobile-toc[open] .case-mobile-toc-count { display: none; }

.case-mobile-toc-chevron {
  width: 12px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}
.case-mobile-toc-chevron::before,
.case-mobile-toc-chevron::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}
.case-mobile-toc-chevron::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.case-mobile-toc-chevron::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.case-mobile-toc[open] .case-mobile-toc-chevron::after {
  transform: translateX(-50%) scaleY(0);
}

.case-mobile-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.case-mobile-toc-list li {
  border-bottom: 1px solid var(--border);
}
.case-mobile-toc-list li:last-child { border-bottom: none; }
.case-mobile-toc-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.case-mobile-toc-list a:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.case-mobile-toc-list a .num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--subtle);
  width: 22px;
  flex-shrink: 0;
}
.case-mobile-toc-list a .txt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.case-mobile-toc-list a:hover .num {
  color: var(--accent);
}

@media (max-width: 1319px) {
  .case-toc {
    display: none;
  }
}

/* ── Project header (en haut des case studies) ── */
.project-header {
  border-bottom: 0.5px solid var(--rule) !important;
  padding: 56px 0 32px !important;
}
.project-header h1,
.project-header .page-title {
  font-family: var(--font-display);
  font-weight: 500;
}
.project-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.06em;
}

.project-nav-card {
  background: var(--surface) !important;
  border: 0.5px solid var(--rule) !important;
  box-shadow: none !important;
}
.project-nav-card:hover {
  border-color: var(--accent) !important;
  box-shadow: none !important;
}
.project-nav-card .nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-nav-card strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
}
.project-nav-card.center {
  background: var(--accent-light) !important;
  border-color: var(--accent) !important;
}

/* ── Related cards (en pied de case study) ── */
.related-card {
  background: var(--surface) !important;
  border: 0.5px solid var(--rule) !important;
  box-shadow: none !important;
}
.related-card:hover {
  border-color: var(--accent) !important;
  box-shadow: none !important;
}
.related-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
}
.related-body p {
  font-family: var(--font-display);
  color: var(--muted);
}
.related-cta {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

/* ── Case progress / sticky CTA / mobile TOC ── */
.case-progress {
  background: var(--surface) !important;
  border-color: var(--rule) !important;
}
.case-sticky-cta {
  background: var(--surface) !important;
  border: 0.5px solid var(--accent) !important;
  box-shadow: none !important;
  font-family: var(--font-display) !important;
}
.case-mobile-toc {
  background: var(--surface) !important;
  border: 0.5px solid var(--rule) !important;
}

/* ── Hero banner case study ── */
.case-hero-banner {
  background: var(--surface) !important;
  border: 0.5px solid var(--rule) !important;
  border-radius: var(--radius) !important;
}

/* ── Avant/après IA ── */
.ba-grid .ba-card {
  background: var(--surface) !important;
  border: 0.5px solid var(--rule) !important;
  box-shadow: none !important;
}
/* ── Page 404 ── */

/* Pattern callout — bloc récap sur project-po-augmente-ia.html */
.pattern-callout {
  background: var(--surface2);
  border-left: 3px solid var(--accent);
}

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