:root {
  color-scheme: light;
  --paper: #edf4f6;
  --paper-deep: #e6eff2;
  --white: #fbfdfd;
  --ink: #12313c;
  --ink-soft: #31505b;
  --muted: #586f79;
  --line: #c8d8dd;
  --accent: #ff6746;
  --accent-dark: #df4a2a;
  /* Corail assez foncé pour du petit texte (≥ 4,5:1 sur les fonds clairs). */
  --accent-text: #b83a1f;
  --blue: #2658ed;
  --mint: #18a999;
  /* Menthe assez foncée pour être lue sur les fonds clairs (≥ 4,5:1, contre 2,5:1 pour --mint). */
  --mint-text: #0c786c;
  --focus: var(--blue);
  --display: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  /* Échelle de lecture, la même que celle des thèmes (en rem : la taille de police choisie dans le navigateur
     est respectée). Plancher absolu : 14 px pour les étiquettes, 16 px pour toute phrase. L’impression garde
     ses propres tailles en points (voir @media print). */
  --fs-label: 0.875rem; /* 14 px : étiquettes, dates, navigation, données courtes en chasse fixe */
  --fs-note: 1rem; /* 16 px : notes, légendes, sources */
  --fs-body-s: 1rem; /* 16 px : lecture secondaire, cartes étroites */
  --fs-body: 1.0625rem; /* 17 px : texte courant */
  --fs-role: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17 → 19 px : intitulés de poste, petits titres */
  --fs-position: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); /* 18 → 20 px : « Senior SRE · Tech Lead transverse » */
  --ls-caps: 0.06em; /* interlettrage des capitales en chasse fixe */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* L’en-tête collant (78 px, 68 px sur mobile) ne masque ni la cible d’une ancre ni l’élément qui reçoit le focus
     au clavier, y compris en Maj+Tab. Ce réglage remplace l’ancien scroll-margin-top des cibles : les deux
     s’additionneraient. */
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

/* Sur les fonds sombres ou bleus, l’anneau de focus passe au blanc pour rester visible. */
.featured-case,
.contact,
.site-footer {
  --focus: #ffffff;
}

.print-contact {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(calc(100% - 104px), 1376px);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(88px, 9vw, 142px);
}

/* Une cible pas encore apparue est décalée de 24 px (translateY) : on compense, en plus du scroll-padding de html. */
.reveal.is-pending[id] {
  scroll-margin-top: 24px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #b9d3da;
}

.section-heading h2,
.journey__intro h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.section-heading h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(48px, 5.3vw, 78px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(18 49 60 / 9%);
  background: rgb(237 244 246 / 94%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.brand__logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 300ms ease;
}

.brand:hover .brand__logo {
  transform: rotate(-8deg);
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(23px, 3vw, 49px);
  font-size: var(--fs-label);
  font-weight: 570;
}

.main-nav > a:not(.main-nav__contact) {
  position: relative;
  padding-block: 8px;
}

.main-nav > a:not(.main-nav__contact)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  content: "";
  transition: transform 230ms ease;
}

.main-nav > a:not(.main-nav__contact):hover::after,
.main-nav > a:not(.main-nav__contact):focus-visible::after {
  transform: scaleX(1);
}

.main-nav__contact {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 20px;
  padding: 8px 14px 8px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}

.main-nav__contact:hover {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  overflow: hidden;
  background: var(--paper);
}

.hero__inner {
  display: flex;
  min-height: clamp(680px, calc(100svh - 78px), 920px);
  flex-direction: column;
}

.hero__main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  align-items: center;
  gap: clamp(8px, 2.1vw, 34px);
  padding-block: 68px 36px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding-bottom: 32px;
}

/* Positionnement en vrai texte, collé au titre : le métier se lit avant la promesse. */
.hero__eyebrow {
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-position);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow-wrap: break-word;
  text-transform: none;
}

.hero__eyebrow span {
  padding-inline: 0.3em;
  color: var(--accent-text);
}

.hero h1 {
  max-width: 770px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(70px, 6.5vw, 109px);
  font-weight: 400;
  letter-spacing: -0.068em;
  line-height: 0.99;
}

.hero__headline-accent {
  color: var(--blue);
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 28px;
}

.hero__status-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.45;
}

.hero__status-link:hover {
  color: var(--blue);
}

.hero__status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
}

.hero__status-dot--file {
  border: 1.5px solid var(--ink-soft);
  background: none;
}

/* Voyant « en service » : un halo lent signale la disponibilité, figé en mouvement réduit. */
.hero__status-dot--open {
  background: var(--mint);
  animation: status-pulse 2.8s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(24 169 153 / 45%);
  }

  70%,
  100% {
    box-shadow: 0 0 0 7px rgb(24 169 153 / 0%);
  }
}

/* Bouton « Mettre l’animation en pause » (script.js) : le halo s’arrête avec l’animation de l’accueil. */
html[data-motion="paused"] .hero__status-dot--open {
  animation: none;
}

.hero__intro {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.57;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 27px;
  margin-top: 39px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding: 15px 23px 15px 27px;
  border-radius: 999px;
  font-size: var(--fs-body-s);
  font-weight: 690;
  line-height: 1.2;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgb(18 49 60 / 12%);
}

.button--accent {
  background: var(--accent);
  color: var(--ink);
}

.button--accent:hover {
  background: #ff795c;
}

.button__arrow {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label);
  font-weight: 650;
  transition: gap 220ms ease;
}

.hero__actions .text-link {
  font-size: var(--fs-body-s);
}

.text-link:hover {
  gap: 18px;
}

.hero__art {
  width: 116%;
  margin-left: -6%;
  align-self: center;
}

.signal-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
}

.signal-scene__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Soften the small background shift introduced by H.264 color conversion. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

.signal-scene__caption {
  position: absolute;
  right: 9%;
  bottom: 3%;
  left: 9%;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
}

.signal-scene__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.motion-toggle {
  position: absolute;
  top: 7%;
  right: 9%;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: var(--fs-label);
  transition: border-color 200ms ease, color 200ms ease;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.motion-toggle__icon {
  width: 1em;
  text-align: center;
}

.hero__teaser {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 22px clamp(28px, 4vw, 64px);
  min-height: 93px;
  border-top: 1px solid var(--line);
}

.hero__teaser-label {
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.hero__teaser a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-body-s);
  font-weight: 580;
  transition: color 200ms ease;
}

.hero__teaser a:hover {
  color: var(--accent-dark);
}

.hero__teaser a span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

/* Expertise */
.expertise {
  background: var(--white);
}

.expertise__heading {
  margin-bottom: 67px;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.expertise__item {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: 30px 28px;
  border-top: 3px solid var(--blue);
  background: #eff2ff;
  --item-accent: var(--blue);
}

.expertise__item + .expertise__item {
  border-color: var(--mint);
  background: #e9f5f0;
  --item-accent: var(--mint);
}

.expertise__item:nth-child(3) {
  border-color: var(--accent);
  background: #fff0e8;
  --item-accent: var(--accent);
}

.expertise__rule {
  position: relative;
  display: block;
  width: 58px;
  height: 1px;
  margin-bottom: 42px;
  background: var(--item-accent);
  transition: width 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise__rule::after {
  position: absolute;
  top: -3px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--item-accent);
  content: "";
}

.expertise__item:hover .expertise__rule {
  width: 100px;
}

.expertise__item h3 {
  margin-bottom: 13px;
  font-family: var(--display);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.expertise__item p {
  max-width: 320px;
  margin-bottom: 21px;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.57;
}

/* Preuves « En mission » : une phrase, donc en texte courant (la chasse fixe reste aux données courtes). */
.expertise__detail {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgb(18 49 60 / 12%);
  color: var(--muted);
  font-size: var(--fs-body-s);
  line-height: 1.5;
}

.expertise__item .expertise__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  max-width: none;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgb(18 49 60 / 10%);
  color: var(--ink);
  font-size: var(--fs-body-s);
  line-height: 1.5;
}

.expertise__proof span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.expertise__proof a {
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}

.expertise__proof a:hover {
  color: var(--item-accent);
}

/* Méthode : cinq étapes, de l'alerte (corail) à l'état sain (turquoise). */
ol.expertise__grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.expertise__grid--steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.expertise__grid--steps .expertise__item {
  min-height: 0;
  padding: 26px 22px 24px;
  border-color: var(--blue);
  background: #eff2ff;
  --item-accent: var(--blue);
}

.expertise__grid--steps .expertise__item:first-child {
  border-color: var(--accent);
  background: #fff0e8;
  --item-accent: var(--accent);
}

.expertise__grid--steps .expertise__item:last-child {
  border-color: var(--mint);
  background: #e9f5f0;
  --item-accent: var(--mint);
}

.expertise__grid--steps .expertise__rule {
  margin-bottom: 26px;
}

.expertise__step {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.expertise__grid--steps .expertise__item h3 {
  font-size: clamp(24px, 2vw, 30px);
}

.expertise__grid--steps .expertise__item p {
  font-size: var(--fs-body-s);
}

.expertise__detail a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 600;
}

/* Cartes alignées : là où le navigateur sait partager les rangées d’une grille (subgrid), les titres, les phrases
   et les preuves « En mission » des étapes tombent à la même hauteur, quelle que soit la longueur du texte.
   Ailleurs, et à l’impression, les cartes gardent la mise en page ci-dessus. */
@supports (grid-template-rows: subgrid) {
  @media screen and (min-width: 601px) {
    /* L’espace entre deux rangées de cartes passe par la marge basse des cartes : les rangées partagées n’ont pas de gouttière. */
    .expertise__grid.expertise__grid--steps {
      row-gap: 0;
    }

    .expertise__grid--steps .expertise__item {
      display: grid;
      grid-row: span 5;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: subgrid;
      margin-bottom: 14px;
    }

    .expertise__grid--steps .expertise__detail {
      margin-top: 0;
    }
  }

  @media screen and (min-width: 601px) and (max-width: 820px) {
    .expertise__grid--steps .expertise__item {
      margin-bottom: 10px;
    }
  }
}

@media (max-width: 1100px) {
  .expertise__grid--steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .expertise__grid--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hackathons et CTF : une ligne sobre sous les expertises, sans cartes. */
.distinctions {
  margin-top: clamp(56px, 6vw, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.distinctions__title {
  margin-bottom: 26px;
}

.distinctions__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.distinctions__list li {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
}

.distinctions__year {
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
}

.distinctions__list strong {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.distinctions__result {
  padding: 3px 11px;
  border-radius: 999px;
  background: #e1f3ef;
  color: #0e5d55;
  font-size: var(--fs-label);
  font-weight: 650;
}

.distinctions__detail {
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.55;
}

.distinctions__detail a {
  display: inline-block;
  margin-top: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 650;
}

.distinctions__detail a:hover {
  color: var(--blue);
}

/* Work */
.work {
  background: var(--paper-deep);
}

.work__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: end;
  column-gap: 60px;
  margin-bottom: 56px;
}

.work__heading .eyebrow {
  grid-column: 1 / -1;
}

.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 445px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}

.featured-case__content {
  padding: clamp(35px, 4.2vw, 66px);
}

/* Étiquette de 47 caractères : les capitales espacées restent aux libellés courts (1 à 4 mots), celle-ci se lit en bas de casse. */
.featured-case__content .eyebrow {
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.featured-case__content .eyebrow span {
  color: var(--accent);
}

.featured-case h3 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(50px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.067em;
  line-height: 0.96;
}

.featured-case__period {
  color: var(--accent);
}

.featured-case__lead {
  max-width: 570px;
  margin-bottom: 0;
  color: #e3eef1;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.45;
}

.featured-case__facts {
  display: grid;
  margin-top: 40px;
}

.featured-case__facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding-block: 15px;
  border-top: 1px solid #41616b;
}

.featured-case__facts span,
.project-row__fact span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.featured-case__facts span {
  margin: 3px 0 0;
  color: #afcbd2;
}

.featured-case__facts p {
  max-width: 470px;
  margin-bottom: 0;
  color: #e3eef1;
  font-size: var(--fs-body-s);
  line-height: 1.52;
}

.featured-case__footer {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px clamp(35px, 4.2vw, 66px);
  padding: 24px clamp(35px, 4.2vw, 66px) 30px;
  border-top: 1px solid #41616b;
}

.featured-case__footer p {
  margin: 0;
  color: #cfdee2;
  font-size: var(--fs-body-s);
  line-height: 1.55;
}

.featured-case__footer span {
  display: block;
  margin-bottom: 6px;
  color: #afcbd2;
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.featured-case__workflow {
  align-self: center;
  padding: clamp(35px, 4.2vw, 66px) clamp(35px, 4.2vw, 66px) clamp(35px, 4.2vw, 66px) 18px;
}

.featured-case__workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-case__workflow li {
  position: relative;
  margin-left: 6px;
  padding: 0 0 31px 29px;
  border-left: 1px solid #41616b;
}

.featured-case__workflow li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}

.featured-case__workflow li::before {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.featured-case__workflow h4 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.featured-case__workflow p {
  max-width: 400px;
  margin: 0;
  color: #cfdee2;
  font-size: var(--fs-body-s);
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Vidéo du copilote : une rangée entière du cas, entre le fonctionnement et le statut. Jamais de lecture
   automatique, rien n’est chargé avant le clic (preload="none"), sous-titres français affichés par défaut. */
.video-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0 clamp(35px, 4.2vw, 66px) clamp(34px, 3.6vw, 52px);
}

/* La vidéo et le grand bouton de lecture (script.js) partagent la même case : le bouton couvre l’image. */
.video-card > video,
.video-card > .video-card__play {
  grid-area: 1 / 1;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid #41616b;
  border-radius: 10px;
  background: #0b2229;
  box-shadow: 0 28px 54px -34px rgb(0 0 0 / 75%);
}

.video-card video:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Sous-titres : taille du navigateur (5 % de la hauteur de l’image), jamais sous 14 px sur une vidéo étroite.
   Le plancher est en px, pas en rem : une réplique plus haute que l’image est supprimée par le navigateur, et une
   préférence de taille de police élevée ferait disparaître les répliques longues sur un téléphone. */
.video-card video::cue {
  font-family: var(--body);
  font-size: max(14px, 100%);
  line-height: 1.3;
}

.video-card figcaption {
  display: grid;
  align-content: end;
  gap: 6px;
  max-width: 62ch;
  color: #cfdee2;
  font-size: var(--fs-note);
  line-height: 1.5;
}

.video-card__title {
  color: var(--white);
  font-size: var(--fs-role);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* Grand bouton de lecture, posé par script.js (absent sans JavaScript, où les commandes natives suffisent) :
   Chrome sur ordinateur ne propose qu’un petit bouton en bas à gauche de l’affiche. */
.video-card__play {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.video-card__play::before,
.video-card__play::after {
  grid-area: 1 / 1;
  content: "";
}

.video-card__play::before {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgb(18 49 60 / 18%), 0 18px 40px -12px rgb(18 49 60 / 55%);
  transition: box-shadow 200ms ease, background 200ms ease;
}

.video-card__play::after {
  width: 26px;
  height: 30px;
  margin-left: 6px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.video-card__play:hover::before {
  background: #ff795c;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 35%), 0 18px 40px -12px rgb(18 49 60 / 55%);
}

.video-card__play:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.video-card__play[hidden] {
  display: none;
}

/* Lien de repli : visible sous l’image si la vidéo ne peut pas être lue (script.js). */
.video-card__fallback {
  margin: 0;
  font-size: var(--fs-body-s);
}

.video-card__fallback a {
  border-bottom: 1px solid currentColor;
  color: var(--white);
  font-weight: 650;
}

/* Sur grand écran, la légende se pose à droite de l’image, comme un cartel. */
@media (min-width: 1101px) {
  .video-card {
    grid-template-columns: minmax(0, 2.4fr) minmax(220px, 0.9fr);
    column-gap: clamp(28px, 3vw, 48px);
  }

  .video-card figcaption {
    grid-area: 1 / 2;
    padding-bottom: 6px;
  }

  .video-card__fallback {
    grid-column: 1;
  }
}

/* EventFlow : la société exploitée en production */
.product-case {
  margin-top: clamp(64px, 7vw, 104px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.product-case__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(32px, 4.4vw, 70px);
}

.product-case__body h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(46px, 4.6vw, 66px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.product-case__period {
  color: var(--mint-text);
}

.product-case__lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.product-case__facts > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.product-case__facts span {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.product-case__facts p {
  max-width: 470px;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.55;
}

/* Indicateurs : valeur en sans-serif semi-grasse, libellé à l’encre, un seul filet de couleur. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px clamp(18px, 2.4vw, 36px);
  margin: clamp(40px, 4.6vw, 64px) 0 0;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--mint);
}

.stat dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat dt {
  color: var(--ink-soft);
  font-size: var(--fs-label);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-case__ops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(18px, 2.4vw, 36px);
  margin-top: clamp(36px, 4vw, 52px);
}

.product-case__ops h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.product-case__ops p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.6;
}

.product-case__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.product-case__source {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-note);
  line-height: 1.5;
}

.product-case__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.product-case__links .text-link {
  font-size: var(--fs-label);
}

/* Project screenshots and case studies */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px clamp(28px, 3vw, 44px);
  margin-top: clamp(56px, 6vw, 80px);
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.project-preview {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1440 / 1000;
  border: 1px solid rgb(18 49 60 / 12%);
  border-radius: 4px;
  background: var(--paper-deep);
  transition: box-shadow 300ms ease;
}

.project-preview:hover {
  box-shadow: 0 12px 30px rgb(38 88 237 / 12%);
}

.project-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 300ms ease;
}

.project-preview:hover img {
  transform: scale(1.025);
}

.project-preview__label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 12px;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--utility);
  font-size: var(--fs-label);
  line-height: 1.4;
}

.project-preview__label > span {
  font-size: 1rem;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 27px;
}

.project-card__body h3 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(37px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  transition: color 250ms ease;
}

.project-card:hover h3,
.project-card:focus-within h3 {
  color: var(--blue);
}

.project-card__body > p:not(.project-row__category),
.project-card__features {
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.65;
}

.project-card__features {
  display: grid;
  gap: 7px;
  margin: 2px 0 25px;
  padding: 0;
  list-style: none;
}

.project-card__features li {
  position: relative;
  padding-left: 17px;
}

.project-card__features li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-dark);
  content: "";
}

.project-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 7px;
}

.tech-line {
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  line-height: 1.65;
}

.project-card__footer .text-link {
  font-size: var(--fs-label);
}

.image-viewer {
  width: min(1320px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
}

.image-viewer::backdrop {
  background: rgb(10 30 40 / 85%);
}

.image-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
}

.image-viewer__bar p {
  margin: 0;
  font-size: var(--fs-note);
  line-height: 1.4;
}

.image-viewer__bar button {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-label);
}

.image-viewer__bar button span {
  font-size: 23px;
  line-height: 1;
}

/* L’image tient dans la hauteur de l’écran : pas de défilement interne du dialogue. */
.image-viewer__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 140px);
  margin-inline: auto;
}

body.image-viewer-open {
  overflow: hidden;
}

.project-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.08fr) minmax(160px, 0.95fr) minmax(220px, 1.2fr) minmax(100px, 0.55fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  min-height: 161px;
  padding: 29px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease, padding 200ms ease;
}

.project-row:hover,
.project-row:focus-within {
  padding-inline: 22px;
  background: rgb(251 253 253 / 72%);
}

.project-row__category {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.project-row__category span {
  color: var(--accent-text);
}

.project-row h3 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.project-row__fact span {
  color: var(--muted);
}

.project-row__fact p {
  max-width: 320px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.52;
}

.project-row__link,
.project-row__status {
  justify-self: end;
  max-width: 190px;
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-align: right;
}

.project-row__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.project-row__link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.project-row__link span {
  font-size: 18px;
  font-weight: 400;
}

.project-row__status {
  color: var(--muted);
}

/* Expanded portfolio */
.archive {
  margin-top: clamp(70px, 8vw, 116px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.archive summary {
  display: flex;
  min-height: 152px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  list-style: none;
  cursor: pointer;
}

.archive summary::-webkit-details-marker {
  display: none;
}

.archive summary > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.archive summary .eyebrow {
  margin-bottom: 9px;
}

.archive summary strong {
  font-family: var(--display);
  font-size: clamp(37px, 4vw, 57px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.archive__icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: none;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  transition: transform 250ms ease, background 250ms ease, color 250ms ease;
}

.archive summary:hover .archive__icon {
  background: var(--ink);
  color: var(--white);
}

.archive[open] .archive__icon {
  transform: rotate(45deg);
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(25px, 4vw, 66px);
  padding: 7px 0 65px;
}

.archive__group h3 {
  margin-bottom: 20px;
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.archive__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive__group li {
  display: grid;
  gap: 5px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.archive__group li strong {
  font-size: 1rem;
  font-weight: 670;
  letter-spacing: -0.025em;
}

.archive__group li strong a {
  border-bottom: 1px solid currentColor;
}

.archive__group li strong a:hover {
  color: var(--blue);
}

.archive__group li strong a span[aria-hidden] {
  font-weight: 400;
}

.archive__group li span {
  color: var(--muted);
  font-size: var(--fs-body-s);
  line-height: 1.5;
}

/* Professional path */
.journey {
  background: var(--white);
}

.journey__layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px clamp(48px, 7vw, 110px);
}

.journey__intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* Sur les écrans peu hauts (1366 × 768, 1280 × 720…), la colonne dépasserait l’écran : elle défile normalement. */
@media (max-height: 879px) {
  .journey__intro {
    position: static;
  }
}

.journey__intro h2 {
  max-width: 430px;
  margin-bottom: 25px;
  font-size: clamp(52px, 5.1vw, 74px);
}

.journey__story {
  max-width: 400px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.journey__nav {
  display: grid;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.journey__nav a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body-s);
  font-weight: 650;
}

.journey__nav a:hover {
  color: var(--accent-dark);
}

.journey__nav a > span:first-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 400;
}

.journey__timeline {
  margin: 3px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.journey__timeline > li {
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
}

.journey__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 650;
  line-height: 1.5;
}

.experience h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(34px, 3.5vw, 47px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.experience__current {
  color: var(--accent-text);
  font-size: var(--fs-label);
}

.experience__role {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: var(--fs-role);
  font-weight: 650;
  line-height: 1.4;
}

.experience__context {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.experience__contributions {
  display: grid;
  gap: 15px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.experience__contributions li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.65;
}

.experience__contributions li::before {
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-dark);
  content: "";
}

.experience__contributions strong {
  color: var(--ink);
  font-weight: 650;
}

.experience__stack {
  margin-bottom: 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--utility);
  font-size: var(--fs-label);
  line-height: 1.75;
}

.experience__stack > span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: 650;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.experience__link {
  margin-top: 20px;
  font-size: var(--fs-label);
}

.journey__complements {
  margin-top: 64px;
  padding-top: 20px;
}

.journey__complements-heading {
  margin-bottom: 34px;
}

.journey__complements-heading h3 {
  max-width: 700px;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.journey__complements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}

.journey__complements-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.journey__complements-grid h4 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.journey__complements-grid .experience__role {
  min-height: 3em;
  margin-bottom: 12px;
  font-size: var(--fs-body-s);
  line-height: 1.5;
}

.journey__complements-grid p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--fs-body-s);
  line-height: 1.65;
}

/* Compétences, formation et langues */
.skills {
  margin-top: clamp(56px, 6vw, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.skills__title {
  margin-bottom: 24px;
  /* 33 caractères : les capitales espacées restent aux libellés courts (moins de 30 caractères). */
  letter-spacing: 0.02em;
  text-transform: none;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 44px);
  margin: 0;
}

.skills__grid div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.skills__grid dt {
  margin-bottom: 6px;
  font-size: var(--fs-body-s);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.skills__grid dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.6;
}

/* Contact and footer */
.contact {
  background: var(--ink);
  color: var(--white);
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.65fr);
  align-items: end;
  gap: clamp(50px, 7vw, 120px);
}

.contact h2 {
  margin-bottom: 0;
  font-size: clamp(55px, 5.2vw, 76px);
}

.contact__action p {
  max-width: 345px;
  margin-bottom: 25px;
  color: #cfdee2;
  font-size: var(--fs-body);
  line-height: 1.6;
}

.contact__action .button {
  width: min(100%, 260px);
}

.button--light {
  background: var(--accent);
  color: var(--ink);
}

.button--light:hover {
  background: #ff795c;
  box-shadow: 0 6px 0 rgb(255 255 255 / 18%);
}

.contact__email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid #a7c5cc;
  color: white;
  font-size: var(--fs-body-s);
  overflow-wrap: anywhere;
}

.contact__email:hover {
  color: white;
  border-color: white;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 16px;
  font-size: var(--fs-body-s);
}

.contact__links a {
  padding-bottom: 4px;
  border-bottom: 1px solid #a7c5cc;
  color: #cfe0e4;
}

.contact__links a:hover {
  border-color: white;
  color: white;
}

/* Offre : missions possibles et modalités, dans la continuité du contact. */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.65fr);
  gap: 40px clamp(50px, 7vw, 120px);
  margin-top: clamp(64px, 7vw, 100px);
  padding-top: 34px;
  border-top: 1px solid #41616b;
}

.offer__missions ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(28px, 3.4vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer__missions li {
  position: relative;
  padding-left: 18px;
  color: #cfdee2;
  font-size: var(--fs-body-s);
  line-height: 1.6;
}

.offer__missions li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

/* Intitulé sans point final : il passe sur sa propre ligne, au-dessus de sa description. */
.offer__missions strong {
  display: block;
  margin-bottom: 4px;
  color: white;
  font-size: var(--fs-body);
  font-weight: 650;
}

.offer__terms {
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
}

.offer__terms div {
  padding-bottom: 16px;
  border-bottom: 1px solid #41616b;
}

.offer__terms dt {
  margin-bottom: 6px;
  color: #afcbd2;
  font-family: var(--utility);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.offer__terms dd {
  margin: 0;
  color: white;
  font-size: var(--fs-body-s);
  line-height: 1.5;
}

.site-footer {
  background: var(--ink);
  color: #bcd0d5;
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 30px 38px;
  border-top: 1px solid #41616b;
}

.site-footer__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__identity > img {
  padding: 5px;
  border-radius: 10px;
  background: var(--paper);
}

.site-footer__identity > div {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  color: white;
  font-size: var(--fs-body);
  font-weight: 650;
}

.site-footer__identity span {
  font-size: var(--fs-note);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 31px;
  font-size: var(--fs-body-s);
}

.site-footer__links a:hover {
  color: white;
}

/* Zone cliquable portée à 24 px de haut au moins, sans toucher à la mise en page ni au soulignement (WCAG 2.5.8). */
.site-footer__links a,
.archive__group li strong a {
  position: relative;
}

.site-footer__links a::after,
.archive__group li strong a::after {
  position: absolute;
  inset: -4px 0;
  content: "";
}

/* Reveals are added only after the observer is ready; content works without JS. */
.reveal {
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(24px);
}

/* Laptop and tablet */
@media (max-width: 1100px) {
  .container {
    width: min(calc(100% - 72px), 1376px);
  }

  .hero__main {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .hero h1 {
    font-size: clamp(68px, 7.4vw, 86px);
  }

  .main-nav {
    gap: 20px;
  }

  .site-header__inner {
    gap: 18px;
  }

  .expertise__item {
    padding-inline: 22px;
  }

  .featured-case__facts {
    margin-top: 30px;
  }

  .project-row {
    grid-template-columns: minmax(175px, 0.85fr) repeat(2, minmax(170px, 1fr));
  }

  .project-row__link,
  .project-row__status {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }

  .distinctions__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Tablette : les fiches restantes passent à l’horizontale, capture à gauche. */
@media (min-width: 601px) and (max-width: 1100px) {
  .project-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 32px;
  }

  .project-card__body {
    padding-top: 0;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  .project-card {
    align-items: center;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 48px), 1376px);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: transparent;
  }

  .menu-toggle span {
    width: 17px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 220ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 9px 24px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgb(18 49 60 / 8%);
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .main-nav > a:not(.main-nav__contact) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.045em;
  }

  .main-nav > a:not(.main-nav__contact)::after {
    display: none;
  }

  .main-nav__contact {
    width: fit-content;
    margin-top: 20px;
    font-size: 0.9375rem;
  }

  .hero__inner {
    min-height: auto;
  }

  .hero__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 75px 20px;
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 790px;
    font-size: clamp(70px, 10vw, 94px);
  }

  .hero__art {
    width: min(100%, 510px);
    margin: 12px 0 0 auto;
  }

  .signal-scene {
    aspect-ratio: 1.6;
  }

  .motion-toggle {
    top: 0;
  }

  .signal-scene__caption {
    bottom: 0;
  }

  .hero__teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    min-height: 82px;
  }

  .hero__teaser-label {
    display: none;
  }

  .expertise__grid {
    gap: 10px;
  }

  .expertise__item {
    min-height: 310px;
  }

  .expertise__item + .expertise__item {
    padding-left: 22px;
  }

  .work__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work__heading .eyebrow {
    grid-column: 1;
  }

  .featured-case {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-case__workflow {
    padding: 0 35px 40px;
  }

  .featured-case__footer {
    grid-template-columns: 1fr;
    padding: 24px 35px 30px;
  }

  .video-card {
    padding: 0 35px 36px;
  }

  .product-case__top {
    grid-template-columns: 1fr;
  }

  .product-case__preview {
    max-width: 640px;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-case__ops {
    grid-template-columns: 1fr;
  }

  .product-case__ops p {
    max-width: 560px;
  }

  .offer {
    grid-template-columns: 1fr;
  }

  .skills__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 19px 24px;
  }

  .project-row__identity {
    grid-column: 1 / -1;
  }

  .project-row__link,
  .project-row__status {
    grid-column: 1 / -1;
  }

  .archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .journey__intro {
    position: static;
  }

  .journey__complements {
    margin-top: 48px;
  }

  .journey__story {
    max-width: 650px;
  }

  .journey__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .project-showcase {
    gap: 48px 28px;
  }

  .journey__complements-grid {
    gap: 24px;
  }

  .journey__intro h2 {
    max-width: 650px;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 40px), 1376px);
  }

  .section-pad {
    padding-block: 76px;
  }

  .brand {
    gap: 9px;
    font-size: 1rem;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .hero__main {
    padding-block: 78px 12px;
  }

  .hero__eyebrow {
    margin-bottom: 23px;
  }

  .hero h1 {
    max-width: 430px;
    margin-bottom: 24px;
    font-size: clamp(48px, 13vw, 78px);
    letter-spacing: -0.067em;
    line-height: 0.98;
  }

  .hero__intro {
    max-width: 450px;
    line-height: 1.56;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .hero__actions .button {
    width: min(100%, 255px);
  }

  .hero__art {
    width: 100%;
    max-width: 520px;
    margin: 35px 0 22px;
  }

  .signal-scene {
    aspect-ratio: 1.35;
  }

  .signal-scene__caption {
    right: 3%;
    left: 3%;
  }

  .motion-toggle {
    right: 3%;
  }

  .hero__status {
    flex-direction: column;
    margin-top: 23px;
  }

  .hero__status-link {
    display: block;
    text-wrap: balance;
  }

  .hero__status-dot {
    display: inline-block;
    margin-right: 10px;
    vertical-align: 0.1em;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .distinctions__list {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .featured-case__facts > div,
  .product-case__facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .featured-case__footer {
    padding: 22px 25px 28px;
  }

  .product-case__body h3 {
    font-size: clamp(40px, 11vw, 48px);
  }

  .stat-row {
    gap: 24px 20px;
  }

  .stat dd {
    font-size: 34px;
  }

  .offer__missions ul {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero__teaser {
    gap: 10px;
    min-height: 69px;
  }

  .hero__teaser a {
    white-space: nowrap;
  }

  .hero__teaser a span {
    display: none;
  }

  .section-heading h2 {
    font-size: clamp(44px, 11vw, 60px);
  }

  .expertise__heading {
    margin-bottom: 42px;
  }

  .expertise__grid {
    grid-template-columns: 1fr;
  }

  .expertise__item,
  .expertise__item + .expertise__item {
    min-height: 0;
    padding: 25px 24px 28px;
    border-left: 0;
  }

  .expertise__rule {
    margin-bottom: 25px;
  }

  .expertise__item h3 {
    font-size: 42px;
  }

  .expertise__item p {
    max-width: 440px;
  }

  .expertise__detail {
    margin-top: 4px;
  }

  .work__heading {
    margin-bottom: 34px;
  }

  .featured-case {
    border-radius: 10px;
  }

  .featured-case__content {
    padding: 30px 25px 12px;
  }

  .featured-case h3 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .featured-case__lead {
    font-size: 1.125rem;
  }

  .featured-case__facts {
    margin-top: 26px;
  }

  .featured-case__workflow {
    padding: 26px 25px 34px;
  }

  .video-card {
    padding: 0 25px 30px;
  }

  .project-list {
    margin-top: 30px;
  }

  .project-row,
  .project-row:hover,
  .project-row:focus-within {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 26px 4px;
  }

  .project-row__identity,
  .project-row__link,
  .project-row__status {
    grid-column: 1;
  }

  .project-row__category {
    margin-bottom: 7px;
  }

  .project-row h3 {
    font-size: 39px;
  }

  .project-row__fact span {
    margin-bottom: 4px;
  }

  .project-row__fact p {
    max-width: 450px;
  }

  .project-row__status {
    justify-self: start;
    max-width: none;
    margin-top: 1px;
    text-align: left;
  }

  .archive {
    margin-top: 67px;
  }

  .archive summary {
    min-height: 117px;
  }

  .archive summary strong {
    max-width: 260px;
    font-size: 40px;
  }

  .archive__icon {
    width: 43px;
    height: 43px;
  }

  .archive__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
  }

  .journey__intro h2 {
    font-size: clamp(53px, 11vw, 70px);
  }

  .journey__timeline > li {
    padding-block: 28px 36px;
  }

  .project-showcase {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 38px;
  }

  .project-card__body {
    padding-top: 23px;
  }

  .project-preview__label {
    right: 8px;
    bottom: 8px;
    padding: 6px 9px;
  }

  .journey__complements-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .journey__complements-grid .experience__role {
    min-height: 0;
  }

  .image-viewer {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 12px;
  }

  .image-viewer__bar {
    align-items: flex-start;
    gap: 12px;
  }

  .contact h2 {
    font-size: clamp(49px, 10.4vw, 65px);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 29px 41px;
  }
}

/* Très petits téléphones (320 à 380 px) : la vidéo du copilote ne garde que 4 px de marge de chaque côté de la carte.
   Avec 25 px, elle ne ferait que 230 px de large à 320 px : les sous-titres (14 px au minimum) y seraient plus hauts
   que l’image et le navigateur supprimerait six répliques sur vingt-cinq. À 272 px, les vingt-cinq s’affichent.
   La légende garde sa marge de 25 px, et l’anneau de focus tient dans les 4 px restants. */
@media (max-width: 380px) {
  .video-card {
    padding-inline: 4px;
  }

  .video-card video:focus-visible,
  .video-card__play:focus-visible {
    outline-offset: 1px;
  }

  .video-card figcaption,
  .video-card__fallback {
    padding-inline: 21px;
  }
}

/* Fenêtre basse (un portable 1366 × 768 n’offre qu’environ 650 px utiles) : l’accueil se resserre pour que le bouton
   de contact reste dans le premier écran. Les tailles de texte ne changent pas. */
@media (min-width: 821px) and (max-height: 700px) {
  .hero__main {
    padding-block: 40px 28px;
  }

  .hero__eyebrow {
    margin-bottom: 18px;
  }

  .hero h1 {
    margin-bottom: 26px;
  }

  .hero__actions {
    margin-top: 30px;
  }
}

/* Téléphone très court (320 × 568) : mêmes économies d’espace, sans toucher aux tailles de texte. */
@media (max-width: 820px) and (max-height: 600px) {
  .hero__main {
    padding-block: 28px 12px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    margin-bottom: 14px;
  }

  .hero__intro {
    line-height: 1.45;
  }

  .hero__actions {
    margin-top: 18px;
  }
}

/* À 320 px, « Senior SRE · Tech Lead transverse » dépasse la colonne de 1,5 px et le point resterait seul en bout de
   ligne : un point un peu moins espacé suffit à la tenir sur une seule ligne. */
@media (max-width: 340px) {
  .hero__eyebrow span {
    padding-inline: 0.15em;
  }
}

/* Préférence de taille de police élevée. L’unité em d’une requête de média suit la taille de police choisie dans le
   navigateur (1 em = 16 px par défaut, 24 px à 150 %) : ces seuils ne changent rien à la mise en page par défaut. */
@media (max-width: 19.5em) {
  /* La ligne de positionnement passe sur deux lignes : le point, qui resterait seul en bout de ligne, disparaît. */
  .hero__eyebrow span {
    display: none;
  }
}

@media (max-width: 19em) {
  /* 19 em = 304 px par défaut (aucun téléphone), 456 px à 150 % : les grilles à deux colonnes passent en une colonne
     avant que « développement » ou « Webdealauto » ne débordent, et les liens de l’accueil peuvent passer à la ligne. */
  .journey__nav,
  .stat-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__teaser a {
    white-space: normal;
  }
}

@media screen and (max-width: 60em) {
  /* 60 em = 960 px par défaut, 1 440 px à 150 %, 1 920 px à 200 % : le lien « Voir le projet » passe à la ligne
     au lieu de déborder de sa colonne. */
  .project-row__link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}

/* Sans JavaScript, le menu mobile reste lisible sous le nom au lieu d’être masqué. */
@media (max-width: 820px) {
  .no-js .site-header {
    position: relative;
  }

  .no-js .site-header__inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .no-js .main-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 6px 18px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .no-js .main-nav > a:not(.main-nav__contact) {
    padding: 6px 0;
    border: 0;
    font-family: var(--body);
    font-size: var(--fs-label);
    letter-spacing: 0;
  }

  .no-js .main-nav__contact {
    margin-top: 0;
    font-size: var(--fs-label);
  }
}

/* Impression et export PDF : la page devient un dossier de compétences lisible. */
@media print {
  @page {
    size: A4;
    margin: 13mm 14mm 15mm;
  }

  :root {
    --paper: #ffffff;
    --paper-deep: #ffffff;
    --white: #ffffff;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #ffffff;
    font-size: 9.5pt;
  }

  /* Ordre du dossier : identité, offre, expertises, réalisations, parcours. */
  main {
    display: flex;
    flex-direction: column;
  }

  .hero {
    order: 0;
  }

  .contact {
    order: 1;
  }

  .expertise {
    order: 2;
  }

  /* Pour une ESN, le parcours passe avant les projets. */
  .journey {
    order: 3;
  }

  .work {
    order: 4;
  }

  .featured-case {
    break-inside: avoid;
  }

  .section-heading {
    break-inside: avoid;
    break-after: avoid;
  }

  .journey__intro,
  .journey__complements-heading {
    break-inside: avoid;
  }

  .journey__complements-heading {
    break-after: avoid;
  }

  .skip-link,
  .menu-toggle,
  .main-nav,
  .reading-progress,
  .hero__art,
  .hero__actions,
  .hero__teaser,
  .expertise__proof,
  .project-preview,
  .project-card__footer a[data-preview],
  .video-card,
  .hero__status-link--file,
  .project-row--secondary,
  .archive,
  .journey__nav,
  .experience__link,
  .contact__layout,
  .image-viewer,
  .site-footer,
  a span[aria-hidden="true"] {
    display: none !important;
  }

  .reveal,
  .reveal.is-pending {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__status-dot--open {
    animation: none;
  }

  .site-header {
    position: static;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header__inner {
    min-height: 0;
    padding-bottom: 3mm;
    border-bottom: 1px solid var(--ink);
  }

  .print-contact {
    display: block;
    margin: 0;
    color: var(--ink-soft);
    font-size: 8.5pt;
  }

  .print-contact a {
    color: var(--ink);
  }

  .brand__logo {
    width: 30px;
    height: 30px;
  }

  .container {
    width: 100%;
  }

  .section-pad {
    padding-block: 6mm 2mm;
  }

  .eyebrow {
    margin-bottom: 2.5mm;
    font-size: 8.5pt;
  }

  /* Le positionnement reste la première ligne lue du dossier. */
  .hero__eyebrow {
    margin-bottom: 2mm;
    font-size: 11pt;
  }

  .hero__inner {
    min-height: 0;
  }

  .hero__main {
    display: block;
    padding: 5mm 0 0;
  }

  .hero__copy {
    padding: 0;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 2.5mm;
    font-size: 24pt;
  }

  .hero__intro {
    max-width: none;
    font-size: 10.5pt;
  }

  .hero__status {
    flex-direction: row;
    margin-top: 2mm;
  }

  .hero__status-link {
    padding-block: 1mm;
    font-size: 9pt;
  }

  .section-heading h2,
  .journey__intro h2 {
    max-width: none;
    font-size: 17pt;
    letter-spacing: -0.03em;
  }

  /* Offre de mission, sans fond sombre. */
  .contact {
    border: 0;
    background: #ffffff !important;
    color: var(--ink) !important;
  }

  .contact * {
    color: var(--ink) !important;
  }

  .offer {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
    gap: 7mm;
    margin-top: 0;
    padding-top: 4mm;
    border-color: var(--line);
  }

  .offer__missions ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm 6mm;
  }

  .offer__missions li,
  .offer__terms dd {
    font-size: 9pt;
    line-height: 1.45;
  }

  .offer__missions strong {
    margin-bottom: 0.5mm;
    font-size: 9.5pt;
  }

  .offer__terms {
    gap: 2.5mm;
  }

  .offer__terms div {
    padding-bottom: 2.5mm;
    border-color: var(--line);
  }

  .offer__terms dt {
    color: var(--muted) !important;
    font-size: 8.5pt;
  }

  .expertise__heading,
  .work__heading {
    margin-bottom: 4mm;
  }

  .work__heading {
    display: block;
  }

  .expertise__item {
    min-height: 0;
    padding: 3mm 4mm;
    background: none;
  }

  .expertise__item h3 {
    margin-bottom: 1.5mm;
    font-size: 14pt;
  }

  .expertise__rule {
    display: none;
  }

  .expertise__item p {
    margin-bottom: 1.5mm;
    font-size: 9pt;
  }

  .expertise__grid--steps {
    grid-template-columns: 1fr;
    gap: 1.5mm;
  }

  .expertise__grid--steps .expertise__item {
    display: grid;
    grid-template-columns: 15mm 46mm minmax(0, 1fr);
    column-gap: 4mm;
    align-items: baseline;
    padding: 2mm 3mm;
    background: none !important;
  }

  .expertise__grid--steps .expertise__item h3 {
    margin: 0;
    font-size: 11pt;
  }

  /* Numéro et titre couvrent les deux rangées : la preuve « En mission » suit sa phrase sans trou. */
  .expertise__grid--steps .expertise__step,
  .expertise__grid--steps .expertise__item h3 {
    grid-row: span 2;
  }

  .expertise__grid--steps .expertise__item p {
    max-width: none;
    margin: 0;
    font-size: 10pt;
  }

  .expertise__step {
    margin: 0;
    font-size: 8.5pt;
  }

  .expertise__grid--steps .expertise__detail {
    grid-column: 3;
    margin-top: 1mm;
    padding-top: 0;
    border-top: 0;
    font-size: 8.5pt;
  }

  .distinctions {
    margin-top: 5mm;
    padding-top: 3mm;
  }

  .distinctions__title {
    margin-bottom: 3mm;
  }

  .distinctions__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4mm;
  }

  .distinctions__list strong {
    font-size: 9.5pt;
  }

  .distinctions__year,
  .distinctions__detail,
  .distinctions__result {
    font-size: 8.5pt;
  }

  .featured-case {
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff !important;
    color: var(--ink) !important;
  }

  .featured-case * {
    color: var(--ink) !important;
  }

  .featured-case {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 0;
  }

  .featured-case__content,
  .featured-case__workflow {
    padding: 4mm 5mm;
  }

  .featured-case h3,
  .product-case__body h3 {
    margin-bottom: 2mm;
    font-size: 19pt;
  }

  .featured-case__lead,
  .product-case__lead {
    margin-bottom: 2mm;
    font-size: 10pt;
  }

  .featured-case__facts {
    margin-top: 3mm;
  }

  .featured-case__facts > div,
  .product-case__facts > div {
    grid-template-columns: 24mm minmax(0, 1fr);
    gap: 3mm;
    padding-block: 2mm;
  }

  /* Étiquettes en chasse fixe : 8,5 pt au moins, comme le reste du dossier. */
  .featured-case__facts span,
  .featured-case__footer span,
  .product-case__facts span,
  .project-row__category,
  .project-row__fact span,
  .project-row__link,
  .project-row__status,
  .tech-line {
    font-size: 8.5pt;
  }

  .featured-case__facts p,
  .product-case__facts p,
  .featured-case__workflow p,
  .product-case__ops p {
    font-size: 8.5pt;
    line-height: 1.45;
  }

  .featured-case__workflow li {
    padding-bottom: 3mm;
  }

  .featured-case__workflow li::before {
    background: var(--ink);
  }

  .featured-case__workflow h4 {
    margin-bottom: 1mm;
    font-size: 9.5pt;
  }

  .featured-case__footer {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    padding: 3mm 5mm;
  }

  .featured-case__footer p {
    font-size: 8.5pt;
  }

  .product-case {
    margin-top: 6mm;
    padding-bottom: 3mm;
  }

  .product-case__top {
    display: block;
  }

  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4mm;
    margin-top: 4mm;
  }

  .stat {
    padding-top: 2mm;
  }

  .stat dd {
    font-size: 17pt;
  }

  .stat dt {
    font-size: 8.5pt;
  }

  .product-case__ops {
    gap: 5mm;
    margin-top: 4mm;
  }

  .product-case__ops h4 {
    margin-bottom: 1mm;
    font-size: 9.5pt;
  }

  .product-case__footer {
    margin-top: 3mm;
    padding-top: 2mm;
  }

  .product-case__source,
  .product-case__links .text-link,
  .project-card__footer .text-link {
    font-size: 8.5pt;
  }

  .project-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5mm;
    margin-top: 6mm;
  }

  .project-card {
    display: block;
    padding-bottom: 2mm;
  }

  .project-card__body {
    padding-top: 0;
  }

  .project-card__body h3 {
    margin-bottom: 1.5mm;
    font-size: 13pt;
  }

  .project-card__body > p:not(.project-row__category),
  .project-card__features {
    margin-bottom: 2mm;
    font-size: 8.5pt;
    line-height: 1.45;
  }

  .project-list {
    margin-top: 4mm;
  }

  .project-row {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 4mm;
    min-height: 0;
    padding: 3mm 0;
  }

  .project-row h3 {
    font-size: 13pt;
  }

  .project-row__fact p {
    font-size: 8.5pt;
  }

  .project-row__link,
  .project-row__status {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .journey__layout {
    display: block;
  }

  .journey__intro {
    position: static;
    margin-bottom: 3mm;
  }

  .journey__story {
    max-width: none;
    margin-bottom: 1.5mm;
    font-size: 9.5pt;
  }

  /* Une mission reste d’un seul tenant : elle passe en entier à la page suivante plutôt que d’être coupée. */
  .journey__timeline > li {
    padding: 4mm 0;
    break-inside: avoid;
  }

  .journey__date,
  .experience__current {
    margin-bottom: 1.5mm;
    font-size: 8.5pt;
  }

  .experience h3 {
    margin-bottom: 1mm;
    font-size: 15pt;
  }

  .experience__role {
    margin-bottom: 1.5mm;
    font-size: 9.5pt;
  }

  .experience__context {
    margin-bottom: 2mm;
    font-size: 9.5pt;
  }

  .experience__contributions {
    gap: 1.5mm;
    margin-bottom: 2.5mm;
  }

  .experience__contributions li {
    font-size: 9pt;
    line-height: 1.45;
  }

  .experience__stack {
    padding-top: 2mm;
    font-size: 8.5pt;
  }

  .experience__stack > span {
    font-size: 8.5pt;
  }

  .journey__complements {
    margin-top: 5mm;
    padding-top: 0;
  }

  .journey__complements-heading {
    margin-bottom: 3mm;
  }

  .journey__complements-heading h3 {
    font-size: 15pt;
  }

  .journey__complements-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5mm;
  }

  .journey__complements-grid article {
    padding-top: 2.5mm;
  }

  .journey__complements-grid .experience__role {
    min-height: 0;
    margin-bottom: 1.5mm;
    font-size: 9.5pt;
  }

  .journey__complements-grid p:last-child {
    font-size: 8.5pt;
  }

  /* Puces recalées sur l’interligne de l’impression (plus serré qu’à l’écran) : elles tombent au milieu de la première ligne. */
  .experience__contributions li::before {
    top: 0.45em;
  }

  .offer__missions li::before {
    top: 0.4em;
  }

  .project-card__features li::before {
    top: 0.5em;
  }

  /* Liens : texte simple, avec l’adresse des sites publics. */
  .text-link,
  .project-row__link {
    display: inline;
    padding: 0;
    border: 0;
  }

  .product-case__links a::after,
  .project-card__footer a[href^="http"]::after,
  .project-row__link::after {
    font-weight: 400;
    content: " : " attr(href);
  }

  .skills {
    margin-top: 5mm;
    padding-top: 3mm;
  }

  .skills__title {
    margin-bottom: 2mm;
  }

  .skills__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm 5mm;
  }

  .skills__grid div {
    padding-top: 2mm;
  }

  .skills__grid dt {
    margin-bottom: 1mm;
    font-size: 9pt;
  }

  .skills__grid dd {
    font-size: 8.5pt;
    line-height: 1.45;
  }

  /* Les quatre chiffres restent avec le titre d’EventFlow (bas de la page 5) ; le bloc d’exploitation, plus bas, peut
     ouvrir la page suivante. Relire les six pages du PDF après toute modification de texte. */
  .product-case__ops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  .stat,
  .distinctions__list li,
  .offer__missions li,
  .featured-case__facts > div,
  .featured-case__workflow li,
  .product-case__facts > div,
  .product-case__ops > div,
  .project-card,
  .project-row,
  .experience__contributions li,
  .journey__complements-grid article {
    break-inside: avoid;
  }
}
