/* ==========================================================================
   Kossi Abiwu — Portfolio
   Direction : gris doux, panneaux très arrondis, pastilles, titres gris
   dont les mots-clés passent en noir. Le bleu CogniWis reste réservé à CogniWis
   et aux rares signaux (focus, disponibilité, statut en cours).
   ========================================================================== */

/* Fonts (self-hosted, latin + latin-ext) ----------------------------------- */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------- */
:root {
  --bg: #E4E4E2;
  --surface: #F2F2F0;
  --surface-raised: #FAFAF9;
  --surface-muted: #ECECEA;
  --line: #DADAD6;

  --ink: #141414;
  --ink-soft: #55554F;    /* texte courant : 6,7:1 */
  --ink-muted: #6B6B69;   /* étiquettes : ≥ 4,7:1 sur les surfaces claires */
  --ink-ghost: #8A8A86;   /* grands titres uniquement (≥ 3:1) */

  --dark: #141414;
  --dark-raised: #232322;
  --dark-hover: #2E2E2C;
  --on-dark: #F2F2F0;
  --on-dark-soft: #A3A3A0;
  --on-dark-muted: #9A9A95;

  --brand: #1400FF;

  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-pill: 999px;

  --pad-x: clamp(20px, 4vw, 48px);
  --pad-y: clamp(32px, 5vw, 56px);

  /* Ombres teintées par le gris du fond, une seule source de lumière (haut) */
  --shadow-sm: 0 1px 2px rgba(40, 40, 30, .04), 0 2px 8px rgba(40, 40, 30, .05);
  --shadow-md: 0 2px 4px rgba(40, 40, 30, .04), 0 12px 30px rgba(40, 40, 30, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--dark); color: var(--on-dark); padding: 12px 16px; border-radius: var(--radius-pill);
}
.skip:focus { top: 12px; }

/* Utilitaires -------------------------------------------------------------- */
.mono { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.eyebrow { letter-spacing: .06em; }
.ink { color: var(--ink); }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.chip-row--center { justify-content: center; }
.chip-row__label { padding: 7px 4px; }
.chip {
  display: inline-flex; align-items: center;
  background: var(--surface-muted);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}
.chip--raised { background: var(--surface-raised); }
.chip--dark { background: var(--dark); color: var(--on-dark); }
.chip--link { min-height: 36px; transition: background .2s var(--ease), color .2s var(--ease); }
.chip--link:hover, a.chip--dark:hover { background: var(--dark); color: var(--on-dark); }
a.chip--dark:hover { background: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: #2a2a29; box-shadow: var(--shadow-md); }
.btn--light { background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.btn--light:hover { box-shadow: var(--shadow-md); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 13px; }

/* Mise en page ------------------------------------------------------------- */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px clamp(12px, 2.5vw, 28px) 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
main { display: flex; flex-direction: column; gap: 16px; }

.panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + 4px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.panel--raised { background: var(--surface-raised); }
.panel--dark { background: var(--dark); color: var(--on-dark); }

.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--ink-ghost);
  text-wrap: balance;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px 32px;
  align-items: end;
}
.split-between { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.body-text { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }

/* Navigation --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  background: rgba(250, 250, 249, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(40, 40, 30, .06), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.nav__brand { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav__mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center; font-size: 10px;
}
.nav__links { display: flex; gap: 2px; font-size: 13px; margin-left: auto; }
.nav__links a { padding: 11px 13px; border-radius: var(--radius-pill); transition: background .2s var(--ease); }
.nav__links a:hover { background: var(--surface-muted); }
.nav__links a[aria-current="true"] { background: var(--surface-muted); font-weight: 500; }
.nav__cta {
  background: var(--dark); color: var(--on-dark);
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: var(--radius-pill); font-size: 13px;
  transition: background .2s var(--ease);
}
.nav__cta:hover { background: #2a2a29; }

/* Mobile : barre compacte, non collante (ne masque ni le portrait ni les titres) */
@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .nav { position: static; flex-wrap: wrap; border-radius: 26px; padding: 6px 6px 2px 16px; row-gap: 0; }
  .nav__cta { margin-left: auto; }
  .nav__links {
    order: 3; width: calc(100% + 22px); margin: 0 -6px 0 -16px; padding: 0 6px;
    overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; }
}

/* Accueil ------------------------------------------------------------------ */
.hero {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px) var(--pad-x) clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.hero__avatar { position: relative; }
.hero__portrait { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #D6D6D3; box-shadow: 0 0 0 6px var(--surface-raised), var(--shadow-sm); }
.hero__tag {
  position: absolute; left: 88px; top: 14px;
  transform: rotate(-8deg);
  background: var(--surface-raised);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(40, 40, 30, .08);
}
.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.04;
  color: var(--ink-ghost);
  max-width: 900px;
  text-wrap: balance;
}
.hero__lead { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 600px; text-wrap: pretty; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Sélecteur de public (ancien sélecteur, boutons radio) */
.visitor { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 12px; width: 100%; }
.visitor fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.visitor legend { padding: 0; margin-bottom: 12px; }
.visitor__toggle { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; background: var(--bg); padding: 4px; border-radius: 26px; }
.visitor__toggle label { position: relative; cursor: pointer; }
.visitor__toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.visitor__toggle span {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 18px; border-radius: var(--radius-pill); font-size: 13px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.visitor__toggle label:hover span { background: rgba(255, 255, 255, .55); }
.visitor__toggle input:checked + span { background: var(--dark); color: var(--on-dark); }
.visitor__toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.visitor__panel { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.visitor__panel[hidden] { display: none; }
.visitor__hint { font-size: 14px; color: var(--ink-soft); }
.visitor__path { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.visitor__path a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  background: var(--surface-raised); padding: 0 15px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.visitor__path a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.visitor__path .mono { font-size: 10px; }

/* Disponibilité ------------------------------------------------------------ */
.availability {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: 16px 16px 16px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap;
}
.availability__status { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.availability__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(20, 0, 255, .12); }

/* Réalisations ------------------------------------------------------------- */
.projects { display: flex; flex-direction: column; gap: 16px; }
.projects__head { padding-bottom: 28px; }
.projects__hint { font-size: 14px; color: var(--ink-muted); max-width: 32ch; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.project-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-height: 300px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-card:active { transform: translateY(-1px); }
@media (max-width: 640px) { .project-card { min-height: 0; } .project-card__body { margin-top: 8px; } }
.project-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.project-card__top .mono { color: inherit; opacity: .8; }
.project-card__logo { width: 44px; height: 44px; border-radius: 12px; }
.project-card__body { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.project-card__name { font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.project-card__role { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.project-card__facts { font-size: 13px; line-height: 1.5; color: var(--ink-muted); padding-top: 10px; border-top: 1px solid var(--line); }
.project-card__more { font-size: 13px; font-weight: 500; }
.project-card--brand { background: var(--brand); color: #fff; }
.project-card--brand .project-card__role { color: #E6E4FF; }
.project-card--brand .project-card__facts { color: #DCDAFF; border-top-color: rgba(255, 255, 255, .22); }
.project-card--brand:hover { box-shadow: 0 2px 4px rgba(20, 0, 255, .12), 0 14px 32px rgba(20, 0, 255, .25); }
.project-card--brand:focus-visible { outline-color: var(--ink); }

.projects__more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.projects__more > :first-child { grid-column: span 2; }
@media (max-width: 1080px) { .projects__more > :first-child { grid-column: auto; } }
.more, .upcoming { gap: 18px; padding-bottom: var(--pad-y); }
.upcoming { background: transparent; box-shadow: inset 0 0 0 1px #C9C9C4; }
.upcoming__note { font-size: 14px; color: var(--ink-soft); margin-top: -8px; }
.rows li {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr auto;
  gap: 4px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  align-items: baseline;
}
.rows__name { font-weight: 500; }
.rows__text { color: var(--ink-soft); }
.rows__date { text-align: right; white-space: nowrap; }
.upcoming .rows li { grid-template-columns: 1fr auto; }
.upcoming .rows__text { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr; }
  .rows__date { text-align: left; }
  .rows__date:empty { display: none; }
}

/* Parcours ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; counter-reset: none; }
.step {
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
}
.step__title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.step__text { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: auto; text-wrap: pretty; }

.timeline-wrap { display: flex; flex-direction: column; gap: 14px; }
.timeline li {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  align-items: baseline;
}
.timeline b { color: var(--ink); font-weight: 500; }
.timeline a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.skill { display: flex; flex-direction: column; gap: 8px; }
.skill__items { font-size: 14px; line-height: 1.55; text-wrap: pretty; }

/* Interventions ------------------------------------------------------------ */
.module {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(200px, 1.1fr) 1.3fr minmax(170px, .8fr);
  gap: 12px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.module__hours { font-size: clamp(36px, 4vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.module__head { display: flex; flex-direction: column; gap: 4px; }
.module__title { font-size: 18px; font-weight: 500; line-height: 1.3; }
.module__public { font-size: 14px; color: var(--ink-muted); }
.module__desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.module__meta { display: flex; flex-direction: column; gap: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; line-height: 1.35;
  background: var(--surface-raised); padding: 6px 12px; border-radius: 14px;
}
.status::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.status--planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-muted); }
@media (max-width: 960px) {
  .module { grid-template-columns: minmax(90px, 120px) 1fr; }
  .module__desc, .module__meta { grid-column: 2; }
}
@media (max-width: 520px) {
  .module { grid-template-columns: 1fr; }
  .module__desc, .module__meta { grid-column: auto; }
}

/* Réflexions --------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; align-items: start; }
.post { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.post__media { position: relative; aspect-ratio: 880 / 1125; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.post__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post__caption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.post__title { font-size: 15px; font-weight: 500; line-height: 1.35; }

.carousel__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track img { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(250, 250, 249, .94); color: var(--ink); font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.carousel__btn:active { transform: translateY(-50%) scale(.94); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(20, 20, 20, .78); color: var(--on-dark);
  padding: 5px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px;
}

.post-note {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  align-self: stretch;
  aspect-ratio: auto;
}
.post-note__text { font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin-top: auto; text-wrap: balance; }
.post-note__sub { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.post-note__link { font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .post-note { aspect-ratio: 880 / 1125; } }

/* CV ----------------------------------------------------------------------- */
#cv .mono { color: var(--on-dark-muted); }
#cv .section-title { color: var(--ink-ghost); }
#cv .section-title .ink { color: var(--on-dark); }
#cv :focus-visible { outline-color: #B9B4FF; }
.cv-intro { font-size: 15px; line-height: 1.6; color: var(--on-dark-soft); max-width: 60ch; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.cv-card {
  background: var(--dark-raised);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 240px;
  transition: background .2s var(--ease);
}
.cv-card:hover { background: var(--dark-hover); }
.cv-card__top { display: flex; justify-content: space-between; }
.cv-card__body { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cv-card__title { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.cv-card__roles { font-size: 14px; color: var(--on-dark-soft); line-height: 1.45; }
.cv-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; }
.cv-card__actions a { color: var(--on-dark); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.cv-card__actions a:not(.cv-card__dl) { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242, 242, 240, .4); }
.cv-card__dl {
  background: var(--on-dark); color: var(--dark) !important;
  padding: 0 18px; border-radius: var(--radius-pill);
  transition: transform .2s var(--ease);
}
.cv-card__dl .mono { color: var(--ink-muted) !important; font-size: 10px; }
.cv-card__dl:hover { transform: translateY(-1px); }
.cv-updated { font-size: 11px; }

/* Contact ------------------------------------------------------------------ */
.contact {
  background: var(--surface-raised);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 88px) var(--pad-x);
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.contact__title { font-size: clamp(32px, 5vw, 56px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; color: var(--ink-ghost); max-width: 760px; text-wrap: balance; }
.contact .chip { padding: 9px 15px; }

/* Pied de page ------------------------------------------------------------- */
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 24px; font-size: 12px; color: var(--ink-soft); }

/* Fiche de cas (dialog) ---------------------------------------------------- */
.dialog { border: none; padding: 0; background: transparent; width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 32px); }
.dialog::backdrop { background: rgba(20, 20, 20, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog__inner {
  position: relative;
  background: var(--surface);
  border-radius: 36px;
  padding: clamp(24px, 4vw, 44px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog__close {
  position: sticky; top: 0; float: right; margin: -6px -6px 0 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--surface-raised); box-shadow: var(--shadow-sm);
  font-size: 18px; cursor: pointer; color: var(--ink);
  transition: transform .2s var(--ease);
}
.dialog__close:hover { transform: rotate(90deg); }
.dialog__body { display: flex; flex-direction: column; gap: 24px; }
.dialog__titles { display: flex; flex-direction: column; gap: 8px; }
.dialog__title { font-size: clamp(30px, 5vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.dialog__role { font-size: 16px; color: var(--ink-soft); }
.dialog__section { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.dialog__points li { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; }
.dialog__points li::before { content: '→'; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); padding-top: 4px; }
.dialog__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.dialog__foot .mono { padding: 6px 4px; }
.dialog__cta { margin-left: auto; font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.dialog__cta + .dialog__cta { margin-left: 16px; }

/* Apparition au défilement (uniquement si JS actif et mouvements autorisés) */
@media (prefers-reduced-motion: no-preference) {
  /* « translate » (et non « transform ») pour ne pas écraser les effets de survol */
  .js .reveal { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
  .js .reveal.is-visible { opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
