/* ═══════════════════════════════════════════════════════════
   Design system Apple, chargé en dernier sur toutes les pages.
   Couleurs : les couleurs système des Human Interface Guidelines
   (fond groupé, labels, séparateurs, bleu système).
   Texte : San Francisco et l'échelle de styles d'Apple
   (Large Title, Title, Headline, Body, Subheadline, Footnote, Caption).
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Fonds */
  --bg: #f2f2f7;                       /* systemGroupedBackground */
  --surface: #ffffff;                  /* secondarySystemGroupedBackground */
  --sunk: rgba(118, 118, 128, 0.12);   /* tertiarySystemFill */
  /* Texte */
  --fg: #000000;                       /* label */
  --muted: rgba(60, 60, 67, 0.6);      /* secondaryLabel */
  --faint: rgba(60, 60, 67, 0.3);      /* tertiaryLabel */
  /* Séparateurs */
  --line: rgba(60, 60, 67, 0.18);      /* separator */
  /* Couleurs système */
  --accent: #447eb6;                   /* votre bleu, à la place du bleu système */
  --accent-text: #3a6e9f;              /* votre bleu un peu plus foncé pour le texte (contraste AA) */
  --on-accent: #ffffff;                /* texte posé sur le bleu */
  --accent-button: #3a6e9f;            /* fond des boutons : votre bleu foncé, contraste AA avec le blanc */
  --ok: #34c759;                       /* systemGreen */

  /* Échelle de texte Apple (taille / interligne) */
  --t-large: 600 clamp(34px, 5vw, 48px)/1.14 var(--sans);  /* Large Title */
  --t-title1: 600 28px/1.21 var(--sans);
  --t-title2: 600 22px/1.27 var(--sans);
  --t-title3: 600 20px/1.25 var(--sans);
  --t-headline: 600 17px/1.29 var(--sans);
  --t-body: 400 17px/1.47 var(--sans);
  --t-callout: 400 16px/1.31 var(--sans);
  --t-subhead: 400 15px/1.33 var(--sans);
  --t-footnote: 400 13px/1.38 var(--sans);
  --t-caption: 400 12px/1.33 var(--sans);

  --radius-card: 18px;
  --radius-control: 12px;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --sunk: rgba(118, 118, 128, 0.24);
    --fg: #ffffff;
    --muted: rgba(235, 235, 245, 0.6);
    --faint: rgba(235, 235, 245, 0.3);
    --line: rgba(84, 84, 88, 0.6);
    --accent: #6fa3d8;
    --accent-text: #8db8e4;
    --on-accent: #000000;
    --accent-button: #6fa3d8;
    --ok: #30d158;
    --shadow-card: none;
    color-scheme: dark;
  }
}

body { font: var(--t-body); letter-spacing: -0.022em; }

/* ---------- Titres de section ---------- */
.block h2 { font: var(--t-title2); letter-spacing: -0.02em; margin-bottom: 16px; }
.block-title { font: var(--t-title3); color: var(--muted); letter-spacing: -0.02em; margin: -8px 0 20px; }
.note, .tile-meta, .foot, .foot-note { font: var(--t-footnote); letter-spacing: -0.006em; }

/* ---------- Présentation ---------- */
.hello { padding-top: clamp(64px, 10vw, 120px); }
.intro-title { font: 600 clamp(30px, 4.6vw, 48px)/1.5 var(--sans); letter-spacing: -0.03em; }
.intro-title .dim { color: var(--muted); font-weight: 500; }
.intro-title .status { vertical-align: middle; position: relative; top: -0.1em; margin-left: .2em; letter-spacing: -0.01em; }
.intro-text { font: var(--t-body); color: var(--muted); max-width: 36rem; }
.status {
  font: 500 15px/1 var(--sans); padding: 8px 14px; gap: 8px;
  border: 0; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card);
}
.status i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }

/* Boutons : la pilule d'apple.com */
.intro-actions { gap: 12px; margin-top: 28px; }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 980px; font: 400 17px/1 var(--sans); letter-spacing: -0.022em; text-decoration: none;
  background: var(--accent-button); color: var(--on-accent); transition: background .2s;
}
.btn-pill:hover { background: color-mix(in srgb, var(--accent-button) 88%, #000); }
.btn-pill.secondary { background: var(--sunk); color: var(--accent-text); }
.btn-pill.secondary:hover { background: color-mix(in srgb, var(--sunk) 100%, var(--accent) 8%); }
.btn-pill:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Éventail de projets et portrait, entre les boutons et le trait */
.showcase { position: relative; display: grid; justify-items: center; margin-top: clamp(40px, 6vw, 64px); padding-bottom: 150px; }
.me-photo { border-radius: 42px 42px 14px 14px; }
.me-note { font: italic 500 17px/1.1 var(--sans); }
.intro-rule { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Cartes : fond blanc, sans bordure, ombre douce ---------- */
.tile, .act, .card, .clients li, .step-card, .numbered li, .outcomes div, .table-wrap, .next, .compare {
  border-color: transparent; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.tile, .act, .clients li, .step-card, .numbered li, .outcomes div, .table-wrap, .next { background: var(--surface); }
.card { background: var(--surface); }
.hero-card { background: var(--surface); }
.tile-label { font: 600 13px/1 var(--sans); letter-spacing: -0.006em; padding: 7px 12px; background: var(--bg); box-shadow: none; }
.tile-name { font: var(--t-headline); letter-spacing: -0.022em; }
.tile-link { font: var(--t-footnote); color: var(--accent-text); }
.tile-link span { color: var(--accent); }
.timeline b { font: var(--t-subhead); font-weight: 600; letter-spacing: -0.01em; }
.timeline span { font: var(--t-footnote); color: var(--muted); }
.timeline li::before, .timeline li::after { background: var(--faint); opacity: 1; }
.timeline li:first-child::before { background: var(--accent); }

.step-view h4 { font: var(--t-title2); letter-spacing: -0.02em; }
.step-view p { font: var(--t-body); }
/* Contrôle segmenté d'iOS */
.step-tabs { background: var(--sunk); border: 0; padding: 2px; border-radius: 9px; gap: 0; }
.step-tabs button { min-height: 32px; border-radius: 7px; font: 500 13px var(--sans); color: var(--fg); }
.step-tabs button:hover { background: transparent; }
.step-tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }

/* Clients */
.clients li { background: #fff; }

/* Activités */
.act-kind { font: 600 12px/1.33 var(--sans); letter-spacing: .02em; color: var(--muted); }
.act-name { font: var(--t-title3); letter-spacing: -0.02em; }
.act-desc { font: var(--t-callout); color: var(--muted); }
.act-link { font: var(--t-callout); color: var(--accent-text); }
.act:hover { border-color: transparent; transform: translateY(-2px); }
.act { transition: transform .25s; }

/* Projets */
.project-head h3 { font: var(--t-title3); letter-spacing: -0.02em; margin-bottom: 4px; }
.project-head p { font: var(--t-body); color: var(--muted); }
.tags li { border: 0; background: var(--sunk); color: var(--muted); font: 500 13px/1.6 var(--sans); padding: 2px 11px; }
.tags li.ex { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); }
.case-link { font: var(--t-callout); color: var(--accent-text); }
.case-soon { font: var(--t-footnote); color: var(--muted); }
.card-link:hover { border-color: transparent; }

/* Listes Writing / Events : listes groupées iOS */
.rows { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 0 16px; }
.rows li { border-top: 1px solid var(--line); padding: 12px 0; }
.rows li:first-child { border-top: 0; }
.rows li:last-child { border-bottom: 0; }
.row-title { font: var(--t-body); font-weight: 500; letter-spacing: -0.022em; }
.row-meta { font: var(--t-subhead); color: var(--muted); }
.ico.doc, .ico.cal { border: 0; background-color: var(--sunk); }
.badge { font: 600 11px/1 var(--sans); border-radius: 6px; padding: 4px 7px; background: var(--sunk); color: var(--muted); }
.badge.accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }

/* Contact */
.contact .mail { font: 600 clamp(24px, 4vw, 34px)/1.2 var(--sans); letter-spacing: -0.03em; }
.contact .mail a { border-bottom: 0; color: var(--accent-text); }
.contact .btn { min-height: 44px; border: 0; border-radius: 980px; background: var(--sunk); color: var(--accent-text); font: 400 17px/1 var(--sans); padding: 0 22px; }

/* ---------- Étude de cas ---------- */
.crumb, .toc { border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.crumb { font: var(--t-subhead); }
.crumb a { color: var(--accent-text); }
.eyebrow { font: var(--t-subhead); }
.case-head h1 { font: var(--t-large); letter-spacing: -0.03em; }
.h1-name { font-weight: 400; }
.label, .facts dt { font: var(--t-headline); letter-spacing: -0.022em; }
.facts dd, .mission > p { font: var(--t-body); }
.toc a { font: 500 14px var(--sans); }
.toc a[aria-current] { background: var(--sunk); }
.chapter h2 { font: var(--t-title1); letter-spacing: -0.025em; }
.chapter h3 { font: var(--t-title3); letter-spacing: -0.02em; }
.chapter p, .list { font: var(--t-body); }
.numbered h3 { font: var(--t-headline); }
.numbered p { font: var(--t-callout); }
.numbered li > span { color: var(--accent-text); }
.outcomes b { font: 700 32px/1.1 var(--sans); letter-spacing: -0.03em; }
.outcomes span { font: var(--t-footnote); }
.chips li { border: 0; background: var(--sunk); }
.formula { background: var(--sunk); }
th { font: var(--t-footnote); font-weight: 600; }
td { font: var(--t-subhead); }
.next-t { font: var(--t-title3); color: var(--accent-text); }
.compare-tag { border: 0; box-shadow: var(--shadow-card); }

@media (prefers-reduced-motion: reduce) {
  .act, .btn-pill { transition: none; }
  .act:hover { transform: none; }
}
@media (max-width: 560px) {
  .showcase { padding-bottom: 160px; }
}

/* ---------- En-tête : barre translucide d'apple.com ---------- */
html { scroll-padding-top: 72px; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1000px; margin: 0 auto; min-height: 52px;
  display: flex; align-items: center; gap: 20px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.topbar-name { font: var(--t-headline); letter-spacing: -0.022em; text-decoration: none; color: var(--fg); white-space: nowrap; }
.topbar-nav { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-nav a {
  flex: none; padding: 6px 10px; border-radius: 980px; font: 400 13px/1 var(--sans); letter-spacing: -0.01em;
  color: var(--fg); opacity: .8; text-decoration: none; transition: opacity .2s, background .2s;
}
.topbar-nav a:hover { opacity: 1; background: var(--sunk); }
.topbar-nav a[aria-current] { opacity: 1; background: var(--sunk); font-weight: 600; }
.topbar-cv {
  flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 980px;
  background: var(--accent-button); color: var(--on-accent); font: 500 13px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
}
.topbar-cv:hover { background: color-mix(in srgb, var(--accent-button) 88%, #000); }
.topbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hello { padding-top: clamp(48px, 8vw, 96px); }
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: 0 12px; padding-block: 8px 0; }
  .topbar-cv { margin-left: auto; }
  .topbar-nav { order: 3; flex-basis: 100%; margin: 6px -10px 4px; padding: 0 10px; }
  html { scroll-padding-top: 100px; }
}

/* ---------- Projets en bento ---------- */
.block.wide {
  width: min(1000px, calc(100vw - 40px));
  margin-left: calc((100% - min(1000px, calc(100vw - 40px))) / 2);
}
.pbento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "a a a a b b"
    "c c e e f f";
}
.p-a { grid-area: a; } .p-b { grid-area: b; } .p-c { grid-area: c; }
.p-e { grid-area: e; } .p-f { grid-area: f; }
.ptile {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow: hidden;
  padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card);
  color: var(--fg); text-decoration: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1);
}
.ptile-kind { margin: 0 0 4px; font: 600 12px/1.33 var(--sans); letter-spacing: 0; color: var(--muted); }
a.ptile .ptile-kind { color: var(--accent-text); }
.ptile h3 { margin: 0 0 4px; font: var(--t-title3); letter-spacing: -0.02em; }
.ptile-text p:not(.ptile-kind) { margin: 0; font: var(--t-subhead); color: var(--muted); }
.ptile-media {
  flex: none; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg);
  display: grid; place-items: center; position: relative;
}
.ptile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptile-media > *, .ptile-media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ptile-media img { object-position: center top; }
.media-ds .ds { width: 84%; }
.media-ds .ds-scale i:nth-child(n+5) { display: none; }

/* Survol : la carte monte et l'image avance, comme les photos de Noé Chagué */
.ptile:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.12); }
.ptile:hover .ptile-media img { transform: scale(1.06); }
.ptile:hover .ptile-media > :not(img) { transform: scale(1.05) rotate(-1.5deg); }
/* l'image se cale en bas de la carte : jamais de vide sous l'image */
.ptile .tags { order: 1; }
.ptile-media { order: 2; margin-top: auto; }
a.ptile:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }

@media (max-width: 760px) {
  .pbento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "e" "f"; }
}
@media (prefers-reduced-motion: reduce) {
  .ptile, .ptile-media > *, .ptile-media img { transition: none; }
  .ptile:hover, .ptile:hover .ptile-media img, .ptile:hover .ptile-media > :not(img) { transform: none; }
}

/* ---------- Visionneuse des photos ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: 100%; height: 100%; display: none; place-items: center; overflow: hidden;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lightbox-fig { margin: 0; display: grid; justify-items: center; gap: 12px; animation: lb-in .35s cubic-bezier(.2,.7,.2,1); }
.lightbox-media {
  --s: min(340px, 70vw);
  width: var(--s); height: calc(var(--s) * 1.25); max-height: 75vh; padding: 6px; background: #fff; border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.lightbox-media > img, .lightbox-media > .fc { display: grid; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; overflow: hidden; }
.lightbox-cap { font: var(--t-subhead); color: var(--muted); }
.lightbox-close {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px));
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); color: var(--fg);
  font: 400 22px/1 var(--sans); cursor: pointer; box-shadow: var(--shadow-card);
}
.lightbox-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@keyframes lb-in { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox-fig { animation: none; } }

/* ---------- Études de cas : visuels et fonctionnalités ---------- */
.hero-img { aspect-ratio: 16 / 10; padding: 0; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.feature-grid .step-card { margin-top: 0; }
.feature-grid .step-card h3 { font: var(--t-headline); margin: 0 0 6px; }
.feature-grid .step-card p { font: var(--t-callout); margin: 0; }
.shot { margin: 18px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.shot figcaption { margin-top: 10px; font: var(--t-footnote); color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 4 / 3; }
}

/* ---------- Rossel : un même composant, trois thèmes (illustration) ---------- */
.media-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 22px; align-items: center; background: var(--bg); }
.theme {
  --th: #1d1d1b; --th-bg: #ffffff;
  display: grid; gap: 7px; padding: 14px 12px 16px; border-radius: 12px; background: var(--th-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.08); min-width: 0;
}
.theme.t1 { --th: #14213d; }
.theme.t2 { --th: #c8102e; }
.theme.t3 { --th: #e8590c; }
.th-name { font: 600 11px/1.2 var(--sans); color: var(--th); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-kicker { display: block; height: 4px; width: 38%; border-radius: 2px; background: var(--th); }
.theme b { display: block; height: 8px; border-radius: 3px; background: #1d1d1b; opacity: .85; }
.theme b.short { width: 70%; }
.th-meta, .th-link { font: 500 9.5px/1.2 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-meta { color: #8a8a8e; display: flex; align-items: center; gap: 5px; }
.th-meta em { width: 12px; height: 12px; border-radius: 50%; background: #d1d1d6; flex: none; }
.th-link { color: var(--th); text-decoration: underline; text-underline-offset: 2px; }
.ptile:hover .media-themes > .theme { transform: none; }
.ptile:hover .media-themes > .t1 { transform: translateY(-4px) rotate(-1.5deg); }
.ptile:hover .media-themes > .t3 { transform: translateY(-4px) rotate(1.5deg); }
.media-themes > .theme { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 760px) { .media-themes { gap: 8px; padding: 14px; } .th-meta, .th-link { font-size: 8.5px; } }
@media (prefers-reduced-motion: reduce) { .media-themes > .theme { transition: none; } .ptile:hover .media-themes > .theme { transform: none; } }

/* Vignette de l'éventail : des pastilles de tokens */
.fc-tokens { background: #14213d; display: grid !important; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 8px; padding: 18% 14%; }
.fc-tokens i { aspect-ratio: 1; border-radius: 50%; }
.fc-tokens i:nth-child(1) { background: #f2f2f7; } .fc-tokens i:nth-child(2) { background: #c8102e; } .fc-tokens i:nth-child(3) { background: #e8590c; }
.fc-tokens b { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #f2f2f7; opacity: .6; }
.fc-tokens b:last-child { width: 60%; opacity: .35; }

/* ---------- Étude de cas Rossel ---------- */
.hero-themes { aspect-ratio: 16 / 10; padding: 0; overflow: hidden; }
.hero-themes .media-themes { width: 100%; height: 100%; padding: clamp(16px, 5vw, 48px); gap: clamp(8px, 2vw, 20px); }
.hero-themes .th-name { font-size: clamp(11px, 1.6vw, 15px); }
.hero-themes .th-meta, .hero-themes .th-link { font-size: clamp(8.5px, 1.2vw, 12px); }
.hero-themes .theme b { height: clamp(8px, 1.4vw, 13px); }
.mission .label { font: var(--t-title3); letter-spacing: -0.02em; margin-bottom: 12px; }
.mission > p + p { margin-top: -12px; }
.chap-num { margin: 0 0 6px !important; font: 600 13px/1 var(--sans) !important; color: var(--accent-text) !important; font-variant-numeric: tabular-nums; }
.outcomes.one { grid-template-columns: 1fr; margin: 6px 0 16px; }
.outcomes.one div { grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
.after-table { margin-top: 14px !important; }
.chips.big { margin: 4px 0 16px; }
.chips.big li { font: 500 14px/1.6 var(--sans); padding: 4px 12px; color: var(--fg); }
.table-wrap code, .chapter code { font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent-text); background: var(--sunk); padding: 2px 6px; border-radius: 6px; }
.takeaway { margin: 28px 0 0; padding: 22px 24px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); font: 600 20px/1.35 var(--sans); letter-spacing: -0.02em; border-left: 4px solid var(--accent); }
@media (max-width: 560px) { .hero-themes { aspect-ratio: 4 / 3; } .outcomes.one div { grid-template-columns: 1fr; } }

/* Les trois cartes de thème remplissent leur case */
.media-themes { justify-items: stretch; align-content: center; }
.p-a .media-themes { padding: clamp(18px, 3vw, 36px); gap: clamp(10px, 1.6vw, 18px); }
.p-a .theme, .hero-themes .theme { padding: clamp(14px, 1.8vw, 22px); gap: clamp(8px, 1vw, 12px); }
.p-a .th-name { font-size: clamp(11px, 1.3vw, 15px); }
.p-a .th-meta, .p-a .th-link { font-size: clamp(8.5px, 1vw, 11.5px); }
.p-a .theme b { height: clamp(8px, 1.1vw, 12px); }
.p-a .theme b + b { margin-top: -2px; }

.th-link { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }

/* « Ma compétence » et « Ce que cela démontre » */
.chapter .skill { margin: -2px 0 16px; font: 600 15px/1.35 var(--sans); color: var(--accent-text); letter-spacing: -0.01em; }
.chapter .proof {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--fg);
  font: var(--t-callout); line-height: 1.45;
}
.chapter .proof strong { display: block; margin-bottom: 4px; font: 600 12px/1.3 var(--sans); letter-spacing: .02em; text-transform: uppercase; color: var(--accent-text); }

/* Ateliers de recherche : objectif, méthode, résultat */
.ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ws { padding: 18px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); display: grid; gap: 6px; align-content: start; min-width: 0; }
.ws-num { margin: 0 !important; font: 600 12px/1.3 var(--sans) !important; color: var(--accent-text) !important; letter-spacing: .02em; text-transform: uppercase; }
.ws h3 { margin: 0 0 6px !important; font: var(--t-headline) !important; }
.ws dl { margin: 0; display: grid; gap: 10px; }
.ws dt { font: 600 12px/1.3 var(--sans); color: var(--muted); }
.ws dd { margin: 2px 0 0; font: var(--t-subhead); }
.ws-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .ws-grid, .ws-grid.two { grid-template-columns: 1fr; } }


/* Clients en pleine largeur */
.block.wide .clients { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 820px) { .block.wide .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .block.wide .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Logo S à la place des initiales */
.ico-logo { background: none; box-shadow: none; overflow: visible; width: 1.3em; height: 1.3em; }
.ico-logo img { width: 100%; height: 100%; object-fit: contain; }
.me-photo.me-logo { background: none; border-radius: 0; filter: none; overflow: visible; }
.me-photo.me-logo::before { content: none; }
.me-photo.me-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Logos aux couleurs claires : plus foncés en gris, couleurs d'origine au survol */
.clients .logo-light { filter: grayscale(1) brightness(.6) contrast(1.6); opacity: 1; }
.clients .logo-noe { filter: grayscale(1) contrast(1.5); opacity: 1; }

/* Cover Rossel : trois écrans découpés dans la même image, qui s'écartent au survol */
.media-cover { background: #f7f8fa; display: flex; align-items: center; }
.cover-stack { position: relative; flex: none; width: 100%; aspect-ratio: 2000 / 1032; }
.ptile-media .cover-stack .cv, .cover-stack .cv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.cv-l { clip-path: polygon(1.5% 28.1%, 30.25% 19.4%, 36% 100%, 8.5% 100%); transform-origin: 20% 60%; }
.cv-c { clip-path: polygon(28.9% 0%, 62.5% 0%, 69.75% 100%, 36% 100%); transform-origin: 50% 50%; }
.cv-r { clip-path: polygon(63.6% 15.5%, 94% 14.5%, 97.5% 93%, 97.5% 100%, 69.75% 100%); transform-origin: 80% 60%; }
.ptile:hover .media-cover > .cover-stack { transform: none; }
.ptile:hover .cover-stack .cv-l, .hero-cover:hover .cover-stack .cv-l { transform: translate(-3%, 2%) rotate(-2deg); }
.ptile:hover .cover-stack .cv-c, .hero-cover:hover .cover-stack .cv-c { transform: translateY(-3%) scale(1.03); }
.ptile:hover .cover-stack .cv-r, .hero-cover:hover .cover-stack .cv-r { transform: translate(3%, 2%) rotate(2deg); }
.hero-cover { display: block; padding: 0; overflow: hidden; aspect-ratio: auto; height: auto; }
.hero-cover .media-cover { width: 100%; }
.ptile .media-cover { align-items: flex-end; justify-content: center; }
/* la cover est plus large que 16:9 : on l'agrandit juste assez pour remplir la hauteur */
.ptile .cover-stack { width: calc(100% * (2000 / 1032) / (16 / 9)); }
.hero-cover .media-cover { padding: clamp(12px, 3vw, 32px) 0; }
/* À l'arrivée sur l'étude de cas, les écrans se posent un par un */
.hero-cover .cv { animation: cover-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-cover .cv-c { animation-delay: .15s; }
.hero-cover .cv-r { animation-delay: .3s; }
@keyframes cover-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .cover-stack .cv { transition: none; animation: none; }
  .ptile:hover .cover-stack .cv, .hero-cover:hover .cover-stack .cv { transform: none; }
}

/* Logo clair sur fond sombre (Menea) : inversé pour s'afficher en sombre sur la carte blanche */
.clients .logo-invert, .clients li:hover .logo-invert { filter: invert(1) grayscale(1) contrast(1.6); opacity: 1; }
.clients .logo-invert { max-height: 50px; }

/* Playlist : vraies pochettes d'album */
.covers img.cover { background: var(--surface); object-fit: cover; }

/* Logo Studio Smalt à la place du nom dans la barre du haut */
.topbar-logo { display: inline-flex; align-items: center; }
.topbar-logo img { display: block; height: 32px; width: auto; }
@media (prefers-color-scheme: dark) {
  /* le texte du logo est noir : on le pose sur une pastille claire pour qu'il reste lisible */
  .topbar-logo { background: #fff; border-radius: 8px; padding: 3px 8px; }
  .topbar-logo img { height: 26px; }
}
