/* ╔═══════════════════════════════════════════════════╗
   ║  PORTFOLIO — Anne Bacheré                         ║
   ║  Modern, modular CSS for chat interface           ║
   ╚═══════════════════════════════════════════════════╝ */

/* Color Palette & Typography */
:root {
  --bg: #FFFFFF;
  --sidebar-bg: #F7F5F3;
  --sidebar-hover: #EEEAE6;
  --sidebar-active: #EDE7E0;
  --border: #E8E3DE;
  --ink: #1A1A1A;
  --muted: #6F6860;
  --terra: #C8613A;
  --terra-light: rgba(200,97,58,.08);
  --sand: #F5F0EB;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --sidebar-w: 280px;

  /* Case view specific tokens (applied only to .case-view) */
  --cv-paper: #f7f4ec;
  --cv-paper-2: #efe9dc;
  --cv-border: rgba(28,27,23,.14);
  --cv-ink: #1c1b17;
  --cv-muted: rgba(28,27,23,.6);
  --cv-terra: #C8613A;
  --cv-terra-soft: rgba(200,97,58,.12);
}

/* Dark mode — explicit */
[data-theme="dark"] {
  --bg: #161513;
  --sidebar-bg: #1C1A18;
  --sidebar-hover: #252219;
  --sidebar-active: #2C2820;
  --border: #2E2B26;
  --ink: #EDE8E2;
  --muted: #9D9690;
  --terra: #D4714A;
  --terra-light: rgba(212,113,74,.12);
  --sand: #1E1C19;

  /* Case view dark mode overrides */
  --cv-paper: #161513;
  --cv-paper-2: #1E1C19;
  --cv-border: rgba(237,232,226,.14);
  --cv-ink: #EDE8E2;
  --cv-muted: rgba(237,232,226,.6);
  --cv-terra: #D4714A;
}

/* Auto dark mode — respect device preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --sidebar-bg: #1C1A18;
    --sidebar-hover: #252219;
    --sidebar-active: #2C2820;
    --border: #2E2B26;
    --ink: #EDE8E2;
    --muted: #9D9690;
    --terra: #D4714A;
    --terra-light: rgba(212,113,74,.12);
    --sand: #1E1C19;

    --cv-paper: #161513;
    --cv-paper-2: #1E1C19;
    --cv-border: rgba(237,232,226,.14);
    --cv-ink: #EDE8E2;
    --cv-muted: rgba(237,232,226,.6);
    --cv-terra: #D4714A;
  }
}

/* ══════════════════════════════════════════════════════════════════
   CASE VIEW STYLES — Inspired by UX Folio design
   Applied only to .case-view to keep other pages unchanged
   ══════════════════════════════════════════════════════════════════ */

.case-view {
  background: var(--bg);
  color: var(--cv-ink);
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.cv-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* Reveal animation */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.cv-hero-section {
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
}

.cv-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: clamp(20px, 3vw, 40px);
  color: var(--cv-ink);
}

.cv-hero-sub {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.5;
  color: var(--cv-muted);
  max-width: 50ch;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.cv-hero-meta {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--cv-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cv-hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.8vw, 36px);
  line-height: 1.3;
  color: var(--cv-terra);
  font-style: italic;
  margin-top: clamp(24px, 3vw, 40px);
  border-left: 3px solid var(--cv-terra);
  padding-left: clamp(20px, 3vw, 32px);
  max-width: 50ch;
}

/* Sections */
.cv-section {
  padding: clamp(50px, 8vw, 100px) 0;
  border-top: 1px solid var(--cv-border);
}
.cv-section.flush {
  border-top: none;
}

.cv-h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--cv-ink);
}

.cv-h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cv-ink);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.cv-para {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--cv-ink);
  margin-bottom: clamp(14px, 2vw, 20px);
  max-width: 55ch;
}
.cv-para strong {
  font-weight: 600;
  color: var(--cv-terra);
}

/* Contexte Section */
.cv-section--contexte {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.cv-contexte-meta {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(20px, 3vw, 32px);
}

.cv-contexte-meta .row {
  border-top: 1px solid var(--cv-border);
  padding-top: clamp(12px, 1.5vw, 16px);
}

.cv-contexte-meta .k {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.cv-contexte-meta .v {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--cv-ink);
}

.cv-contexte-body .cv-para:first-child {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.5;
}

/* Mon rôle — 2 column grid */
.cv-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px);
  margin-top: clamp(32px, 4vw, 56px);
}

.cv-role-block h3 {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.cv-role-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

.cv-role-block li {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--cv-ink);
  padding-left: 20px;
  position: relative;
}

.cv-role-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cv-terra);
}

.cv-role-block li strong {
  font-weight: 600;
  color: var(--cv-ink);
}

/* Objectifs — 4 column grid */
.cv-objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--cv-border);
  margin-top: clamp(28px, 4vw, 48px);
}

.cv-objective-item {
  padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 28px) clamp(24px, 3vw, 32px) 0;
  border-right: 1px solid var(--cv-border);
}

.cv-objective-item:last-child {
  border-right: 0;
}

.cv-objective-item > * {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.35;
  color: var(--cv-ink);
}

/* Image Gallery */
.cv-img-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
  margin: clamp(32px, 4vw, 56px) 0;
}

.cv-img-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cv-img-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cv-img-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cv-img-grid--1 {
  grid-template-columns: 1fr;
}

.cv-figure {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 27, 23, 0.12);
}

.cv-img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  padding: clamp(12px, 2vw, 16px);
  background: var(--cv-paper-2);
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--cv-muted);
  text-align: center;
}

/* Résultats / KPI Cards */
.cv-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: clamp(28px, 4vw, 48px) 0;
}

.cv-kpi {
  border-top: 2px solid var(--cv-ink);
  padding-top: clamp(16px, 2vw, 24px);
}

.cv-kpi-value {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.95;
  color: var(--cv-terra);
  font-weight: 400;
}

.cv-kpi-label {
  font-size: clamp(14px, 1.7vw, 16px);
  color: var(--cv-muted);
  margin-top: clamp(10px, 1.5vw, 14px);
}

/* Quotes / Verbatims */
.cv-quotes {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(28px, 4vw, 48px);
}

.cv-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.25;
  color: var(--cv-ink);
  max-width: 48ch;
  font-style: italic;
}

.cv-quote::before {
  content: '"';
  display: inline;
}

.cv-quote::after {
  content: '"';
  display: inline;
}

.cv-quote.alt {
  align-self: flex-end;
  text-align: right;
  color: var(--cv-terra);
}

/* Apprentissages / Learnings — 2 column grid with counters */
.cv-learnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px);
  margin-top: clamp(28px, 4vw, 48px);
  counter-reset: learning-num;
}

.cv-learning-block {
  counter-increment: learning-num;
}

.cv-learning-block h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: clamp(12px, 1.5vw, 16px);
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.cv-learning-block h3::before {
  content: "0" counter(learning-num);
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--cv-terra);
  font-weight: 500;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}

.cv-learning-block p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--cv-ink);
  padding-left: 32px;
}

.cv-learning-block p strong {
  font-weight: 600;
  color: var(--cv-terra);
}

/* Cards Grid (Objectives as cards) */
.cv-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vw, 48px);
}

.cv-card {
  border: 1px solid var(--cv-border);
  border-radius: 12px;
  padding: clamp(20px, 2.5vw, 28px);
}

.cv-card-title {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 600;
  color: var(--cv-terra);
  margin-bottom: clamp(12px, 1.5vw, 16px);
  line-height: 1.3;
}

.cv-card-body {
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.65;
  color: var(--cv-ink);
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .cv-section--contexte,
  .cv-role-grid,
  .cv-learnings-grid {
    grid-template-columns: 1fr;
  }

  .cv-objectives-grid,
  .cv-kpis,
  .cv-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-objective-item:nth-child(2) {
    border-right: 0;
  }

  .cv-objective-item {
    border-bottom: 1px solid var(--cv-border);
    padding-right: 0;
  }

  .cv-kpi {
    border-top-width: 1px;
  }

  .cv-quote.alt {
    align-self: flex-start;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .cv-objectives-grid,
  .cv-kpis,
  .cv-cards-grid {
    grid-template-columns: 1fr;
  }

  .cv-objective-item {
    border-right: 0;
    border-bottom: 1px solid var(--cv-border);
    padding-right: 0;
  }

  .cv-objective-item:last-child {
    border-bottom: 0;
  }

  .cv-img-grid--2,
  .cv-img-grid--3,
  .cv-img-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   UX FOLIO DESIGN SYSTEM — Case View Styling
   ══════════════════════════════════════════════════════════════ */

.dir-a {
  --green: oklch(0.64 0.15 150);
  --green-soft: oklch(0.92 0.05 150);
  --green-deep: oklch(0.5 0.12 152);
}

.a-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.a-section {
  padding: 32px 0;
  border-top: 1px solid var(--cv-border);
}

.a-section.flush {
  border-top: 0;
  padding-top: clamp(48px, 8vw, 72px);
  padding-bottom: 32px;
}

.a-section__title {
  font-size: 0.7rem;
  margin: 0 0 24px;
  color: var(--cv-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.a-section__content {
  color: var(--cv-ink);
}

/* Hero Section */
.a-hero {
  padding: clamp(120px, 16vw, 220px) 0 clamp(56px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}

.a-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  max-width: 20ch;
  color: var(--cv-ink);
  margin-bottom: 20px;
  font-weight: 400;
}

.a-hero__sub {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  max-width: 60ch;
  color: var(--cv-muted);
  margin-bottom: 20px;
  font-weight: 300;
}

.a-hero__meta {
  font-size: .9rem;
  color: var(--cv-muted);
}

.a-hero__glow {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--green-soft), transparent 62%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

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

/* Objectives Grid */
.a-obj__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--cv-border);
  margin-top: clamp(36px, 5vw, 64px);
}

.a-obj__item {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--cv-border);
}

.a-obj__item:last-child {
  border-right: 0;
}

.a-obj__n {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--terra);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.a-obj__t {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cv-ink);
  font-weight: 300;
}

/* Metrics Grid */
.a-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--cv-border);
  padding-top: 24px;
}

.a-metric {
  border-top: 2px solid var(--cv-ink);
  padding-top: 16px;
}

.a-metric__v {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1;
  color: var(--cv-ink);
  margin-bottom: 6px;
  font-weight: 400;
}

.a-metric__l {
  font-size: 13px;
  color: var(--cv-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Pull Quote */
.a-pull {
  background: var(--cv-ink);
  color: var(--cv-paper);
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--cv-border);
  text-align: center;
}

.a-pull__t {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 2.5vw, 28px);
  line-height: 1.3;
  max-width: 35ch;
  margin: 0 auto;
  font-weight: 300;
}

/* Quotes */
.a-quote {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
  max-width: 50ch;
  color: var(--cv-ink);
  margin-bottom: 20px;
  font-weight: 300;
}

.a-quote::before { content: '"'; }
.a-quote::after { content: '"'; }

/* Role Section */
.a-role-section .a-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px);
  margin-top: clamp(36px, 5vw, 64px);
}

.a-role-section h4 {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--cv-ink);
  font-weight: 400;
}

.a-role-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.a-role-section li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cv-muted);
  padding-left: 16px;
  position: relative;
  font-weight: 300;
}

.a-role-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Learnings Section */
.a-learnings-section .a-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px) clamp(48px, 7vw, 96px);
  margin-top: clamp(36px, 5vw, 64px);
  counter-reset: learning;
}

.a-learnings-section h4 {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--cv-ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
  counter-increment: learning;
  font-weight: 400;
}

.a-learnings-section h4::before {
  content: '0' counter(learning);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--terra);
  flex: 0 0 auto;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.a-learnings-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cv-muted);
  padding-left: 20px;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 900px) {
  .a-obj__grid {
    grid-template-columns: 1fr 1fr;
  }

  .a-metrics__grid {
    grid-template-columns: 1fr 1fr;
  }

  .a-role-section .a-section__content,
  .a-learnings-section .a-section__content {
    grid-template-columns: 1fr;
  }
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ──────────────────────────────────────────────── */
/* SIDEBAR                                          */
/* ──────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.profile-info { flex: 1; min-width: 0; }

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}

/* ⓘ info button */
.info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  transition: color .15s, background .15s;
  opacity: .6;
}
.info-btn:hover {
  color: var(--ink);
  background: var(--sidebar-hover);
  opacity: 1;
}

.profile-title {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .03em;
  margin-top: 1px;
}

/* ── Info modal ─────────────────────────────────────────────────── */
.info-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 24px;
}
.info-modal--open { display: flex; }

.info-modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}

.info-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}
.info-modal-close:hover { background: var(--sand); color: var(--ink); }

.info-modal-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.info-modal-logo svg { color: var(--terra); }
.info-modal-logo span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.info-modal-body p {
  font-size: .85rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 300;
}
.info-modal-body p:last-child { margin-bottom: 0; }
.info-modal-body strong { font-weight: 500; color: var(--ink); }
.info-modal-body a { color: var(--terra); text-decoration: none; }
.info-modal-body a:hover { text-decoration: underline; }

.info-modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.info-modal-disclaimer {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
}
.info-modal-disclaimer a {
  color: var(--terra);
  text-decoration: none;
}
.info-modal-disclaimer a:hover { text-decoration: underline; }

/* ── Input disclaimer ───────────────────────────────────────────── */
.input-disclaimer {
  text-align: center;
  font-size: .68rem;
  color: var(--muted);
  opacity: .55;
  margin-top: 7px;
  line-height: 1.4;
  letter-spacing: .01em;
}

.new-chat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--terra);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  font-weight: 500;
}

.new-chat-btn:hover {
  background: #b5512f;
}

.new-chat-btn svg {
  color: #fff;
  flex-shrink: 0;
}

/* ── Chat icon pulse (default / no conversation) ── */
.btn-chat-icon {
  animation: chat-bubble-pulse 2.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes chat-bubble-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  45%       { transform: scale(1.22); opacity: .85; }
  55%       { transform: scale(1.22); opacity: .85; }
}

/* ── Active state (conversation exists) ── */
.new-chat-btn--active {
  background: #a84e2d;
  box-shadow: 0 0 0 0 rgba(200,97,58,.5);
}
.new-chat-btn--active:hover {
  background: #963f22;
}
.new-chat-btn--active .btn-chat-icon {
  animation: none;
  display: none; /* replaced by the dot */
}

/* Green presence dot */
.new-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5EC26A;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(94,194,106,.7);
  animation: dot-ping 2.2s ease-out infinite;
}

@keyframes dot-ping {
  0%   { box-shadow: 0 0 0 0   rgba(94,194,106,.7); }
  60%  { box-shadow: 0 0 0 7px rgba(94,194,106,0);  }
  100% { box-shadow: 0 0 0 0   rgba(94,194,106,0);  }
}

/* Navigation */
.nav-section {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.nav-section::-webkit-scrollbar {
  width: 3px;
}

.nav-section::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.nav-group-label {
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 8px 4px;
  font-weight: 500;
}

.nav-item--about {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.nav-item--about .nav-icon-svg {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .12s;
}

.nav-item--about:hover .nav-icon-svg,
.nav-item--about.active .nav-icon-svg {
  color: var(--terra);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
  margin-bottom: 1px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.3;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--sidebar-hover);
}

.nav-item.active {
  background: var(--sidebar-active);
}

.nav-item.active .nav-icon {
  color: var(--terra);
}

.nav-icon {
  font-size: .9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--muted);
}

.nav-text {
  flex: 1;
}

.nav-tag {
  font-size: .62rem;
  background: var(--terra-light);
  color: var(--terra);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: .78rem;
  transition: background .12s, color .12s;
}

.footer-link:hover {
  background: var(--sidebar-hover);
  color: var(--ink);
}

.footer-link svg {
  flex-shrink: 0;
}

.clear-all-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
}
.clear-all-btn:hover {
  color: #c0392b !important;
  background: rgba(192, 57, 43, .06) !important;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 4px;
}

/* Dark mode toggle */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-btn:hover {
  background: var(--sidebar-hover);
  color: var(--ink);
}

/* Send button fix in dark mode */
[data-theme="dark"] .send-btn {
  background: var(--terra);
}

/* Case view backdrop fix in dark mode */
[data-theme="dark"] .cv-header {
  background: rgba(22,21,19,.95);
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ──────────────────────────────────────────────── */
/* MAIN AREA                                        */
/* ──────────────────────────────────────────────── */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* Topbar */
.topbar {
  padding: 14px 24px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
}

.topbar-badge {
  font-size: .7rem;
  color: var(--muted);
  background: var(--sand);
  padding: 2px 8px;
  border-radius: 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chat Area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  overflow-anchor: none; /* disable browser scroll-anchoring during streaming */
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  max-width: clamp(820px, 72%, 1100px);
  width: 100%;
  margin: 0 auto;
  padding-left: max(24px, calc((100% - clamp(820px, 72%, 1100px)) / 2));
  padding-right: max(24px, calc((100% - clamp(820px, 72%, 1100px)) / 2));
}

/* Chat area en mode case view — annule toutes les contraintes */
.chat-area.case-view-active {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chat-area::-webkit-scrollbar {
  width: 4px;
}

.chat-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* Welcome Screen */
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 16px;
  padding: 40px 0;
}

.welcome-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 4px;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink);
  line-height: 1.2;
}

.welcome-title em {
  font-style: italic;
  color: var(--terra);
}

.welcome-sub {
  font-size: .88rem;
  color: var(--muted);
  max-width: clamp(420px, 60%, 560px);
  line-height: 1.6;
  font-weight: 300;
}

/* Recruiter fast lane */
.fast-lane {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.fast-lane-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}

.fast-lane-btn:hover {
  background: #b5512f;
  color: #fff;
}

.fast-lane-btn.secondary {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra);
}

.fast-lane-btn.secondary:hover {
  background: var(--terra-light);
}

.welcome-or {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin: 4px 0 -4px;
}

.welcome-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
}

.welcome-suggestion {
  font-family: var(--font-sans);
  font-size: .8rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: all .15s;
}

.welcome-suggestion:hover {
  border-color: var(--terra);
  background: var(--terra-light);
}

.welcome-suggestion strong {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
  font-size: .78rem;
}

.welcome-suggestion span {
  color: var(--muted);
  font-size: .75rem;
}

/* Case welcome — variante avec titre du cas */
.case-welcome-title {
  font-size: 1.15rem;
  color: var(--terra);
  font-style: italic;
  font-weight: 300;
  font-family: var(--font-sans);
}

.case-welcome .welcome-sub {
  font-size: .82rem;
}

/* Messages */
.msg {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.msg.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg.user {
  flex-direction: row-reverse;
}

.msg-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 500;
  background: var(--sand);
  color: var(--muted);
}

.msg-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg.user .msg-av {
  background: var(--ink);
  color: var(--bg);
}

.bubble {
  max-width: 72%;
  padding: 11px 16px;
  font-size: .87rem;
  line-height: 1.7;
  font-weight: 300;
}

.msg.anne .bubble {
  background: transparent;
  color: var(--ink);
  padding-left: 0;
}

.msg.user .bubble {
  background: var(--sand);
  border-radius: 18px 18px 4px 18px;
  color: var(--ink);
}

/* Follow-up suggestion chips */
.follow-up-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 8px 44px;
  animation: fadeUp .2s ease both;
}

.follow-up-chip {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 400;
  color: var(--terra);
  background: var(--terra-light);
  border: 1px solid rgba(200,97,58,.2);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.follow-up-chip:hover {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

/* Mobile : les chips passent à la ligne et ne dépassent plus de l'écran */
@media (max-width: 640px) {
  .follow-up-chips { padding-left: 12px; padding-right: 12px; }
  .follow-up-chip {
    white-space: normal;
    max-width: 100%;
    text-align: left;
  }
}

/* Streaming cursor */
.bubble.streaming::after {
  content: '▋';
  display: inline-block;
  color: var(--terra);
  animation: cursor-blink .6s step-end infinite;
  margin-left: 2px;
  font-size: .8em;
  vertical-align: baseline;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Markdown rendering inside bubbles */
.bubble p {
  margin: 0 0 .6em;
}
.bubble p:last-child {
  margin-bottom: 0;
}
.bubble h1, .bubble h2, .bubble h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  margin: .8em 0 .3em;
  line-height: 1.3;
}
.bubble h1 { font-size: 1.2rem; }
.bubble h2 { font-size: 1.05rem; }
.bubble h3 { font-size: .95rem; color: var(--terra); }
.bubble strong {
  font-weight: 600;
  color: var(--ink);
}
.bubble em {
  font-style: italic;
  color: var(--muted);
}
.bubble code {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .78rem;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--terra);
}
.bubble a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity .15s;
}
.bubble a:hover {
  opacity: .75;
}
.bubble ul {
  padding-left: 1.2em;
  margin: .4em 0 .6em;
}
.bubble ul li {
  margin-bottom: .25em;
  line-height: 1.6;
}
.bubble table {
  border-collapse: collapse;
  width: 100%;
  margin: .6em 0;
  font-size: .82rem;
}
.bubble table th {
  background: var(--sand);
  font-weight: 600;
  text-align: left;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--ink);
}
.bubble table td {
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.bubble table tr:nth-child(even) td {
  background: rgba(245,240,235,.5);
}

/* Typing Indicator */
.typing-line {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}

.typing-line span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  opacity: .4;
  animation: blink .9s ease-in-out infinite;
}

.typing-line span:nth-child(2) {
  animation-delay: .2s;
}

.typing-line span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: .3;
  }
  40% {
    opacity: 1;
  }
}

/* ──────────────────────────────────────────────── */
/* INPUT AREA                                       */
/* ──────────────────────────────────────────────── */

.input-zone {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 12px 24px 16px;
  max-width: clamp(820px, 72%, 1100px);
  width: 100%;
  margin: 0 auto;
  padding-left: max(24px, calc((100% - clamp(820px, 72%, 1100px)) / 2));
  padding-right: max(24px, calc((100% - clamp(820px, 72%, 1100px)) / 2));
}

.input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  transition: border-color .15s;
}

.input-wrap:focus-within {
  border-color: var(--terra);
}

.chat-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: .87rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  line-height: 1.5;
  min-height: 24px;
  max-height: 120px;
}

.chat-input::placeholder {
  color: var(--muted);
}

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}

.send-btn:hover {
  background: var(--terra);
}

.send-btn:active {
  transform: scale(.93);
}

.send-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ──────────────────────────────────────────────── */
/* RESPONSIVE                                       */
/* ──────────────────────────────────────────────── */

@media (max-width: 700px) {
  .sidebar {
    width: 240px;
  }
}

/* ── Mobile drawer ─────────────────────────────────────────────── */

/* Hamburger — invisible sur desktop */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}
.mobile-menu-btn:hover { background: var(--sand); }

/* Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 199;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.sidebar-backdrop--visible { display: block; }

@media (max-width: 540px) {
  /* Accessibility: increase base font size on mobile */
  :root {
    font-size: 18px; /* up from 15px for better readability */
  }

  /* Sidebar devient un drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    bottom: 0;
    z-index: 200;
    width: 280px;
    height: 100dvh;
    transition: left .25s cubic-bezier(.4, 0, .2, 1),
                box-shadow .25s ease;
    box-shadow: none;
    overflow-y: auto;
  }
  .sidebar--open {
    left: 0;
    box-shadow: 6px 0 32px rgba(0, 0, 0, .25);
  }

  /* Hamburger visible */
  .mobile-menu-btn { display: flex; }

  /* Topbar compact */
  .topbar { padding: 10px 14px; }

  /* Input zone mobile fixes */
  .input-zone {
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    padding: 6px 12px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    max-width: 100%;
  }

  .input-wrap {
    border-radius: 10px;
    padding: 6px 6px 6px 12px;
    margin: 0;
  }

  .chat-input {
    font-size: 1rem;
    min-height: 32px;
  }

  .send-btn {
    width: 32px;
    height: 32px;
  }

  /* Disclaimer toujours visible sur mobile (comme Claude web) */
  .input-disclaimer {
    display: block;
    font-size: .62rem;
    margin-top: 5px;
    padding: 0 6px;
    line-height: 1.25;
  }

  /* Chat area should flex and not take all space */
  .chat-area {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overflow-anchor: none;
  }
}

/* ══ CASE VIEW ══════════════════════════════════════════════════ */

/* Topbar toggle button */
.topbar-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: none;
  border-radius: 20px;
  background: var(--terra);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.topbar-view-btn:hover {
  background: #b5512f;
  color: #fff;
}
.topbar-view-btn svg {
  flex-shrink: 0;
  stroke: #fff;
}

/* Case view container */
.case-view {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  color: var(--cv-ink);
  display: flex;
  flex-direction: column;
}
.case-view > section,
.case-view > .case-facts-section,
.case-view > .case-banner-section { width: 100%; }

/* Case view header */
.cv-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cv-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-tags {
  display: flex;
  gap: 6px;
}

.cv-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--terra);
  background: var(--terra-light);
  border-radius: 4px;
  padding: 3px 8px;
}

.cv-case-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
}

.cv-chat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-chat-btn:hover { opacity: .85; }

/* Case view body */
.cv-body {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

/* H1 — titre du cas (dans le contenu) */
.cv-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Sections */
.cv-section {
  margin-bottom: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--cv-border);
}

.cv-section.flush {
  border-top: none;
  padding-top: 0;
}

.cv-section--results {
  border-top-color: var(--cv-border);
}

.cv-h2 {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Steps numérotés */
.cv-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.cv-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.cv-h3 {
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

/* Paragraphes */
.cv-para {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 16px;
}

/* Lists */
.cv-list {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
.cv-list li {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 6px;
}

/* KPI cards */
.cv-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 28px 0;
  border-top: 1px solid var(--cv-border);
  padding-top: 28px;
}

@media (max-width: 900px) {
  .cv-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cv-kpi {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
  border-top: 2px solid var(--cv-ink);
  padding-top: 20px;
}
.cv-kpi-value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--cv-ink);
  font-style: normal;
  font-weight: 400;
  line-height: .9;
  margin-bottom: 12px;
}
.cv-kpi-label {
  font-size: .82rem;
  color: var(--cv-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Tables */
.cv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .82rem;
}
.cv-table th {
  background: var(--sand);
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
}
.cv-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.cv-table tr:nth-child(even) td {
  background: rgba(245,240,235,.4);
}

/* Images — single */
.cv-img-single { margin: 24px 0; }
.cv-img-single .cv-figure { margin: 0; }

/* Images — grids */
.cv-img-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.cv-img-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cv-img-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cv-img-grid--4 { grid-template-columns: repeat(4, 1fr); }

.cv-figure {
  margin: 0;
}
.cv-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow .2s ease;
}
.cv-img:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.cv-img-single .cv-img {
  object-fit: contain;
  max-height: 520px;
  background: var(--sand);
  aspect-ratio: 16/9;
}
.cv-figure figcaption {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* Responsive grids */
@media (max-width: 700px) {
  .cv-img-grid--3,
  .cv-img-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cv-img-grid--2,
  .cv-img-grid--3,
  .cv-img-grid--4 { grid-template-columns: 1fr; }
}

/* Blockquote */
.cv-quote {
  border-left: 3px solid var(--terra);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--terra-light);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
}

/* HR */
.cv-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Inline code */
.cv-body code {
  font-family: 'Menlo', monospace;
  font-size: .78rem;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--terra);
}

/* Links */
.cv-body a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Label standalone */
.cv-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ── Hero section ─────────────────────────────────────────────── */
.cv-hero-section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.cv-hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
}

.cv-hero-sub {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.cv-hero-meta {
  display: inline-flex;
  align-items: center;
  background: var(--terra-light);
  color: var(--terra);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 28px;
}

.cv-hero-meta strong {
  font-weight: 600;
}

.cv-intro {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 640px;
}

.cv-hero-quote {
  border-left: 3px solid var(--terra);
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--terra-light);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
}

/* ── Section type variants ────────────────────────────────────── */
.cv-section--results .cv-h2 { color: var(--terra); }

.cv-section--learnings .cv-h2,
.cv-section--features  .cv-h2 {
  color: var(--ink);
  font-size: .65rem;
  letter-spacing: .12em;
}

/* ── Cards grid (learnings / features) ────────────────────────── */
.cv-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.cv-section--learnings .cv-cards-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--cv-border);
  padding-top: 28px;
  counter-reset: learning;
}

@media (max-width: 900px) {
  .cv-section--learnings .cv-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cv-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}

.cv-section--learnings .cv-card {
  border: 1px solid var(--cv-border);
  background: transparent;
  padding: 0;
  border-radius: 0;
  counter-increment: learning;
}

.cv-card-title {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 8px;
  line-height: 1.35;
}

.cv-section--learnings .cv-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cv-ink);
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.cv-section--learnings .cv-card-title::before {
  content: "0" counter(learning);
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  color: var(--terra);
  flex: 0 0 auto;
}

.cv-card-body {
  font-size: .83rem;
  line-height: 1.75;
  color: var(--ink);
}

.cv-section--learnings .cv-card-body {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--cv-muted);
  padding-left: 30px;
}
  font-weight: 300;
  margin: 0;
}

.cv-card-list {
  padding-left: 1.1em;
  margin-top: 10px;
}
.cv-card-list li {
  font-size: .82rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 4px;
}

/* h4 inside sections */
.cv-h4 {
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 10px;
}


/* ══ ABOUT VIEW ════════════════════════════════════════════════ */

.about-view {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

/* Hero */
.ab-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px 48px;
}

.ab-hero-text {
  flex: 1;
  min-width: 0;
}

.ab-eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 14px;
}

.ab-name {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}

.ab-name em {
  font-style: italic;
  color: var(--terra);
}

.ab-lead {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 28px;
}

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

.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}

.ab-btn:hover {
  background: #b5512f;
  color: #fff;
}

.ab-btn--ghost {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra);
}

.ab-btn--ghost:hover {
  background: var(--terra-light);
  color: var(--terra);
}

.ab-hero-photo {
  flex-shrink: 0;
  width: 240px;
  height: 300px;
}

.ab-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
}

/* Tools strip */
.ab-tools-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--sand);
  padding: 18px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Remove border-top from section directly after tools strip */
.ab-tools-strip + .ab-section {
  border-top: none;
}

.ab-marquee-wrap {
  overflow: hidden;
}

.ab-marquee-inner {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: ab-marquee 40s linear infinite;
}

.ab-marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes ab-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ab-tool {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  cursor: default;
}

/* Sections */
.ab-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 48px;
  border-top: 1px solid var(--border);
}

.ab-section-title {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Expertise grid */
.ab-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ab-expertise-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ab-expertise-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--terra);
  opacity: .25;
  line-height: 1;
  margin-bottom: 12px;
}

.ab-expertise-card h3 {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.ab-expertise-card p {
  font-size: .83rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 8px;
}

.ab-expertise-tags {
  font-size: .75rem !important;
  color: var(--terra) !important;
  font-weight: 400 !important;
  margin-top: 8px;
}

/* XP grid */
.ab-xp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ab-xp-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ab-xp-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.ab-xp-period {
  font-size: .7rem;
  font-weight: 500;
  color: var(--terra);
  background: var(--terra-light);
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .03em;
}

.ab-xp-company {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 3px;
}

.ab-xp-role {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 12px;
}

.ab-xp-card p {
  font-size: .83rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 10px;
}

.ab-xp-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-xp-card ul li {
  font-size: .78rem;
  color: var(--muted);
  padding-left: 12px;
  position: relative;
}

.ab-xp-card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}

.ab-xp-footer {
  display: flex;
  justify-content: flex-start;
}

/* PromptStudio section */
.ab-ps-section {
  background: var(--sand);
  max-width: 100%;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* Remove border-top from section directly after PromptStudio */
.ab-ps-section + .ab-section {
  border-top: none;
}

.ab-ps-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 48px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.ab-ps-text {
  flex: 1;
  min-width: 0;
}

.ab-ps-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.ab-ps-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--terra);
  margin-bottom: 16px;
}

.ab-ps-text p {
  font-size: .87rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 12px;
}

.ab-ps-text strong {
  font-weight: 500;
  color: var(--ink);
}

.ab-ps-btn {
  margin-top: 20px;
}

.ab-ps-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
  width: 260px;
  align-self: center;
}

.ab-ps-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.ab-ps-stat--wide {
  grid-column: span 2;
}

.ab-ps-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--terra);
  line-height: 1.1;
  margin-bottom: 5px;
}

.ab-ps-key {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Recommandations */
.ab-reco-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Recommandations — carrousel épuré (sans cards) ───────── */
.ab-reco-carousel-wrap { position: relative; }
.ab-reco-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ab-reco-track::-webkit-scrollbar { display: none; }

.ab-reco-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  padding: 12px clamp(8px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ab-reco-quote {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 24px;
}
.ab-reco-author {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}
.ab-reco-author strong { color: var(--ink); font-weight: 500; }

.ab-reco-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.ab-reco-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.ab-reco-dot:hover { background: var(--muted); }
.ab-reco-dot.is-active { background: var(--terra); transform: scale(1.25); }

.ab-reco {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 0;
}

.ab-reco--featured {
  border-left: 3px solid var(--terra);
  background: var(--terra-light);
}

.ab-reco p {
  font-family: var(--font-sans);
  font-size: .93rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 16px;
}

.ab-reco cite {
  display: block;
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
}

.ab-reco cite strong {
  color: var(--ink);
  font-weight: 500;
}

.ab-reco-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Responsive about view ────────────────────────────────── */
@media (max-width: 820px) {
  .ab-hero { flex-direction: column-reverse; padding: 32px 24px; gap: 24px; }
  .ab-hero-photo { width: 100%; height: 220px; }
  .ab-hero-photo img { border-radius: 12px; }
  .ab-name { font-size: 2.4rem; }
  .ab-expertise-grid { grid-template-columns: 1fr; }
  .ab-xp-grid { grid-template-columns: 1fr; }
  .ab-ps-inner { flex-direction: column; padding: 32px 24px; gap: 24px; }
  .ab-ps-stats { width: 100%; }
  .ab-reco-row { grid-template-columns: 1fr; }
  .ab-section { padding: 40px 24px; }
}

@media (max-width: 540px) {
  .ab-hero { padding: 24px 16px; }
  .ab-section { padding: 32px 16px; }
  .ab-name { font-size: 2rem; }
  .ab-ps-stats { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   CASE VIEW — EDITORIAL DESIGN (style « À propos »)
   ═════════════════════════════════════════════════════════════════════ */

.case-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ──────────────────────────────────────────────────────── */
.case-hero {
  padding: 56px 24px 40px;
}

.case-hero__overline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.case-hero__overline > span:first-child {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}
.case-hero__tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

.case-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--cv-ink);
  max-width: 18ch;
}

.case-hero__description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cv-ink);
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 56ch;
}

.case-hero__quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--cv-ink);
  padding: 20px 26px;
  background: var(--sand);
  border-left: 3px solid var(--terra);
  margin: 0;
  border-radius: 0 8px 8px 0;
}
.case-hero__quote p { margin: 0; }

/* ── FACTS PANEL ───────────────────────────────────────────────── */
.case-facts {
  margin: 8px 0 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px 32px;
}
.case-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-fact__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}
.case-fact__value {
  font-size: 0.9rem;
  color: var(--cv-ink);
  line-height: 1.5;
  font-weight: 300;
}
.case-award {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cv-ink);
  margin-bottom: 24px;
}
.case-facts .case-award { margin-bottom: 24px; }
.case-facts .case-kpi__grid { margin-top: 28px; }

/* ── SECTIONS ──────────────────────────────────────────────────── */
.case-section {
  margin-bottom: 56px;
  padding-top: 48px;
}
.case-section:first-of-type { padding-top: 24px; }

.case-section__title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cv-muted);
  margin-bottom: 28px;
}

.case-section__content > p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--cv-ink);
  font-weight: 300;
  max-width: 62ch;
}
.case-section__content > p:last-child { margin-bottom: 0; }
.case-section__content strong { font-weight: 600; color: var(--cv-ink); }
.case-section__content em { font-style: italic; color: var(--cv-muted); }
/* Liens : toujours orange (terracotta) en light ET dark */
.case-view a {
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 1px;
}
.case-view a:hover { opacity: 0.7; }

/* Subheadings inside sections (h3) */
.case-subhead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--cv-ink);
  margin: 36px 0 14px;
}
.case-subhead:first-child { margin-top: 0; }

/* ── LIST (légère, marqueur fin — pas de puce ni bloc) ─────────── */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 18px;
}
.case-list__item {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cv-ink);
  font-weight: 300;
  max-width: 62ch;
}
.case-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 11px;
  height: 1.5px;
  background: var(--terra);
}
.case-list__item strong { font-weight: 600; }

/* ── CHIPS (compétences / outils) ──────────────────────────────── */
.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0;
}
.case-chip {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cv-ink);
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
}

/* ── OBJECTIVES ────────────────────────────────────────────────── */
.case-objectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 8px;
}
.case-objective {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.case-objective__n {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terra);
  flex: 0 0 auto;
}
.case-objective__body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--cv-ink);
}
.case-objective__body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cv-muted);
  font-weight: 300;
}

/* ── KPI CARDS ─────────────────────────────────────────────────── */
.case-kpi__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
  margin: 8px 0;
}
.case-kpi {
  border-top: 2px solid var(--cv-ink);
  padding-top: 16px;
}
.case-kpi__value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--terra);
  margin-bottom: 8px;
  font-weight: 400;
}
.case-kpi__label {
  font-size: 0.8rem;
  color: var(--cv-muted);
  line-height: 1.4;
  font-weight: 300;
}

/* ── FEATURES CARDS ────────────────────────────────────────────── */
.case-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
/* 3 cartes → 3 colonnes (évite le bloc isolé) */
.case-features--3 { grid-template-columns: repeat(3, 1fr); }
.case-feature {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.case-feature__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--terra);
  opacity: .25;
  line-height: 1;
  margin-bottom: 12px;
}
.case-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--cv-ink);
  line-height: 1.3;
}
.case-feature p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--cv-muted);
  font-weight: 300;
  margin-bottom: 12px;
}
.case-feature p:last-child { margin-bottom: 0; }
.case-feature strong { color: var(--cv-ink); font-weight: 600; }

/* ── VERBATIMS ─────────────────────────────────────────────────── */
.case-verbatims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.case-verbatim {
  position: relative;
  padding: 4px 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.case-verbatim::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--terra);
  opacity: 0.55;
}
.case-verbatim p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cv-ink);
  font-weight: 400;
  margin: 0;
}

/* ── LEARNINGS (colonnes, sans numéros) ────────────────────────── */
.case-learnings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 40px;
  margin-top: 8px;
}
.case-learning h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--cv-ink);
  line-height: 1.3;
}
.case-learning p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--cv-muted);
  font-weight: 300;
}

/* ── TABLES ────────────────────────────────────────────────────── */
.case-table-wrap { margin: 8px 0 18px; overflow-x: auto; }
.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.case-table th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-muted);
  padding: 10px 16px;
  border-bottom: 2px solid var(--cv-ink);
}
.case-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--cv-ink);
  font-weight: 300;
}
.case-table td strong { color: var(--terra); font-weight: 600; }

/* ── QUOTES (in body) ──────────────────────────────────────────── */
.case-quote {
  margin: 24px 0;
  padding: 20px 26px;
  background: var(--sand);
  border-left: 3px solid var(--terra);
  border-radius: 0 8px 8px 0;
}
.case-quote p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--cv-ink);
  margin: 0;
}

/* ── BANNER (hero image) ───────────────────────────────────────── */
.case-banner-section { margin-top: 8px; margin-bottom: 8px; }
.case-banner .case-shot { margin: 0; }

/* ── IMAGES / PLACEHOLDERS ─────────────────────────────────────── */
.case-shot { margin: 0; }
.case-shot figcaption {
  font-size: 0.75rem;
  color: var(--cv-muted);
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}
.case-imgwrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--border);
  line-height: 0;
}
/* Le container épouse la hauteur réelle de l'image (pas de recadrage) */
.case-imgwrap img {
  width: 100%;
  height: auto;
  display: block;
}
.case-ph {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--terra-light);
  border: 1.5px dashed rgba(200, 97, 58, 0.45);
  border-radius: 12px;
  color: var(--cv-muted);
  text-align: center;
  padding: 16px;
}
.case-ph__icon { color: var(--terra); opacity: 0.75; flex: 0 0 auto; }
.case-ph__label { font-size: 0.78rem; font-weight: 500; color: var(--cv-muted); max-width: 85%; }

/* Aspect ratios — appliqués uniquement aux placeholders (pas d'image réelle) */
.case-ph.ratio-hero    { aspect-ratio: 5 / 2; }
.case-ph.ratio-wide    { aspect-ratio: 21 / 9; }
.case-ph.ratio-phone   { aspect-ratio: 10 / 19; }
.case-ph.ratio-card    { aspect-ratio: 4 / 3; }
.case-ph.ratio-square  { aspect-ratio: 1 / 1; }
.case-ph.ratio-default { aspect-ratio: 16 / 9; }

/* ── APP SHOWCASE (carte : texte gauche / mockup droite) ───────── */
.case-aside {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}
.case-aside__body { flex: 1; min-width: 0; }
.case-aside__body > p:first-child { margin-top: 0; }
.case-app__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--cv-ink);
  margin: 0 0 12px;
}
/* 👉 Taille du texte de présentation des applications — ajuste font-size ici */
.case-aside__body p {
  font-size: 0.95rem;   /* + petit : 0.85rem · + grand : 1.05rem */
  line-height: 1.7;
  font-weight: 300;
  color: var(--cv-ink);
}
.case-aside__media {
  flex: 0 0 auto;
  width: 150px;
}
.case-aside__media .case-shot,
.case-aside__media .case-gallery { margin: 0; }

@media (max-width: 700px) {
  .case-aside { flex-direction: column; gap: 20px; }
  .case-aside__media { width: 150px; }
}

/* ── CLOSING QUOTE (finale) ────────────────────────────────────── */
.case-closing {
  margin-top: 16px;
  padding: 64px 0 8px;
  border-top: 1px solid var(--border);
}
.case-closing__quote {
  text-align: center;
  margin: 0 auto;
  max-width: 42ch;
}
.case-closing__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--cv-ink);
  margin: 0 0 16px;
}
.case-closing__quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--cv-muted);
  letter-spacing: 0.02em;
}

/* ── GALLERY ───────────────────────────────────────────────────── */
.case-gallery {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.case-gallery--1 { grid-template-columns: 1fr; }
.case-gallery--2 { grid-template-columns: 1fr 1fr; }
.case-gallery--multi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.case-gallery--phones {
  grid-template-columns: repeat(auto-fit, minmax(140px, 190px));
  justify-content: start;
}

/* ── MEDIA CARDS (image + titre + texte) ───────────────────────── */
.case-mediacards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 20px;
  margin-top: 8px;
}
.case-mediacard { min-width: 0; }
.case-mediacard .case-shot { margin-bottom: 14px; }
.case-ph__label { overflow-wrap: anywhere; }
.case-mediacard h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cv-ink);
  margin-bottom: 10px;
}
.case-mediacard p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cv-muted);
  font-weight: 300;
  margin-bottom: 10px;
}
.case-mediacard p:last-child { margin-bottom: 0; }
.case-mediacard strong { color: var(--cv-ink); font-weight: 600; }

/* ── Responsive case view ───────────────────────────────────── */
@media (max-width: 900px) {
  .cv-body { padding: 32px 32px 80px; }
  .case-container { padding: 0 32px; }
}

@media (max-width: 700px) {
  /* Header compact */
  .cv-header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cv-case-title { font-size: .85rem; }
  .cv-chat-btn {
    padding: 7px 14px;
    font-size: .75rem;
  }

  /* Body full-width */
  .cv-body { padding: 20px 16px 80px; }

  /* KPIs 2 colonnes */
  .cv-kpis { grid-template-columns: repeat(2, 1fr); }

  /* Grilles images */
  .cv-img-grid--3,
  .cv-img-grid--4 { grid-template-columns: repeat(2, 1fr); }

  /* Steps */
  .cv-step-num { width: 22px; height: 22px; font-size: .65rem; }

  /* Cards grid: 1 col on tablet */
  .cv-cards-grid { grid-template-columns: 1fr; }

  /* Hero */
  .cv-hero-title { font-size: 1.7rem; }

  /* Case view responsive */
  .case-container { padding: 0 20px; }
  .case-hero { padding: 40px 20px 32px; }
  .case-objectives { grid-template-columns: 1fr; }
  .case-features { grid-template-columns: 1fr; }
  .case-verbatims { grid-template-columns: 1fr; }
  .case-learnings { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  /* Header: titre et bouton sur deux lignes */
  .cv-header { padding: 10px 12px; }
  .cv-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cv-case-title { font-size: .8rem; }

  /* Body */
  .cv-body { padding: 16px 12px 80px; }

  /* Tout en 1 colonne sur petit mobile */
  .cv-img-grid--2,
  .cv-img-grid--3,
  .cv-img-grid--4 { grid-template-columns: 1fr; }

  /* KPIs 2 colonnes */
  .cv-kpis { grid-template-columns: repeat(2, 1fr); }

  /* Bouton topbar plus petit */
  .topbar-view-btn { padding: 5px 10px; font-size: .72rem; }

  /* Bouton "Discuter avec Anne" */
  .cv-chat-btn span { display: none; }

  /* Hero mobile */
  .cv-hero-title { font-size: 1.5rem; }
  .cv-hero-sub { font-size: .95rem; }
  .cv-hero-quote { font-size: 1rem; padding: 16px 18px; }
  .cv-hero-section { margin-bottom: 40px; padding-bottom: 28px; }

  /* Case view mobile */
  .case-container { padding: 0 16px; }
  .case-hero { padding: 24px 16px 32px; }
  .case-section { margin-bottom: 40px; padding-top: 32px; }
  .case-section__title { font-size: 0.65rem; }
  .case-hero__description { font-size: 1rem; }
  .case-kpi__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .case-objectives { grid-template-columns: 1fr; gap: 24px; }
  .case-features { grid-template-columns: 1fr; }
  .case-learnings { grid-template-columns: 1fr; gap: 28px; }
  .case-verbatims { grid-template-columns: 1fr; }
  .case-gallery--2,
  .case-gallery--multi { grid-template-columns: 1fr; }
}
