@charset "UTF-8";
/* Typographie reprise de stellarrstudio.com/moon-ai : Plus Jakarta Sans variable (200 à 800), licence SIL OFL dans assets/fonts/OFL.txt */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
    url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}
/* JetBrains Mono, la police du jeu AI DevOps Chaos Simulator (carte du jeu), licence SIL OFL dans assets/fonts/OFL-JetBrains-Mono.txt */
@font-face {
  font-family: "LVT JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
    url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --surface: #fffefb;
  --surface-soft: #efeee8;
  --surface-sage: #edf1ea;
  --surface-neutral: #f1f1ec;
  --header-bg: rgba(255, 254, 251, 0.86);
  --ink: #172c38;
  --muted: #56646b;
  --line: #d9ddda;
  --orange: #b6482c;
  --soft-orange: #f3e8df;
  --badge-ink: #8c3722;
  --green: #236346;
  --green-soft: #e0ebdf;
  --green-dot: #8ea38c;
  --blue-ink: #526c9d;
  --blue-soft: #e9eef8;
  --mint: #dde9e3;
  --control-bg: #172c38;
  --control-ink: #ffffff;
  --control-hover: #2f4855;
  --action-bg: #b6482c;
  --action-hover: #943a23;
  --inverse-bg: #172c38;
  --inverse-ink: #f7f5ef;
  --inverse-muted: #c4d2d5;
  --inverse-accent: #e3ac91;
  --white: #fff;
  --tile-bg: #fffefb;
  --grid-line: rgb(99 102 241 / 7%);
  --ambient-sage: #d5f6e2;
  --ambient-sand: #ffeed3;
  --glow-blue: rgb(92 132 220 / 14%);
  --glow-violet: rgb(139 92 246 / 12%);
  --glow-sage: rgb(167 198 173 / 22%);
  --shadow-sm: 0 9px 30px rgb(23 44 56 / 5%);
  --shadow-md: 0 18px 44px rgb(23 44 56 / 9%);
  --shadow-lg: 0 30px 70px rgb(23 44 56 / 14%);
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: var(--sans);
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --radius: 20px;
  --radius-lg: 28px;
  --control-radius: 12px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #101f28;
    --surface: #192f3a;
    --surface-soft: #142630;
    --surface-sage: #132830;
    --surface-neutral: #142630;
    --header-bg: rgba(20, 38, 48, 0.86);
    --ink: #edf2ef;
    --muted: #b9c9cc;
    --line: #3a525b;
    --orange: #f0ac8c;
    --soft-orange: #3f3029;
    --badge-ink: #ffbd9f;
    --green: #9fd3b4;
    --green-soft: #213c33;
    --green-dot: #6f8f7c;
    --blue-ink: #a9c1ec;
    --blue-soft: #22344a;
    --mint: #254138;
    --control-bg: #dde9e3;
    --control-ink: #172c38;
    --control-hover: #c4d6cd;
    --inverse-bg: #09171e;
    --tile-bg: #f7f5ef;
    --grid-line: rgb(170 190 255 / 6%);
    --ambient-sage: #24463d;
    --ambient-sand: #48362d;
    --glow-blue: rgb(92 132 220 / 12%);
    --glow-violet: rgb(139 92 246 / 11%);
    --glow-sage: rgb(110 160 130 / 12%);
    --shadow-sm: 0 9px 30px rgb(0 0 0 / 18%);
    --shadow-md: 0 18px 44px rgb(0 0 0 / 26%);
    --shadow-lg: 0 30px 70px rgb(0 0 0 / 34%);
  }
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #101f28;
    --surface: #192f3a;
    --surface-soft: #142630;
    --surface-sage: #132830;
    --surface-neutral: #142630;
    --header-bg: rgba(20, 38, 48, 0.86);
    --ink: #edf2ef;
    --muted: #b9c9cc;
    --line: #3a525b;
    --orange: #f0ac8c;
    --soft-orange: #3f3029;
    --badge-ink: #ffbd9f;
    --green: #9fd3b4;
    --green-soft: #213c33;
    --green-dot: #6f8f7c;
    --blue-ink: #a9c1ec;
    --blue-soft: #22344a;
    --mint: #254138;
    --control-bg: #dde9e3;
    --control-ink: #172c38;
    --control-hover: #c4d6cd;
    --inverse-bg: #09171e;
    --tile-bg: #f7f5ef;
    --grid-line: rgb(170 190 255 / 6%);
    --ambient-sage: #24463d;
    --ambient-sand: #48362d;
    --glow-blue: rgb(92 132 220 / 12%);
    --glow-violet: rgb(139 92 246 / 11%);
    --glow-sage: rgb(110 160 130 / 12%);
    --shadow-sm: 0 9px 30px rgb(0 0 0 / 18%);
    --shadow-md: 0 18px 44px rgb(0 0 0 / 26%);
    --shadow-lg: 0 30px 70px rgb(0 0 0 / 34%);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px;
}
button {
  font: inherit;
  cursor: pointer;
}
button[hidden] {
  display: none;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
}
h1,
h2 {
  letter-spacing: -0.045em;
}
em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--orange);
}
ul,
ol {
  margin: 0;
  padding: 0;
}
::selection {
  background: var(--soft-orange);
  color: var(--ink);
}
.container {
  width: min(1184px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 18px;
  z-index: 100;
  background: var(--control-bg);
  color: var(--control-ink);
  padding: 12px 20px;
  border-radius: var(--control-radius);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Fond : grille et halos des decks */
.has-ambient-background {
  isolation: isolate;
}
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.ambient-background::before,
.ambient-background::after,
.ambient-glow {
  content: "";
  position: absolute;
  width: clamp(480px, 78vw, 1120px);
  height: clamp(560px, 95vh, 1000px);
  animation: ambient-sage 14s ease-in-out -4s infinite alternate;
  animation-play-state: paused;
}
.ambient-background::before {
  top: -20%;
  right: -16%;
  background: radial-gradient(ellipse, var(--ambient-sage) 12%, transparent 72%);
}
.ambient-background::after {
  left: -18%;
  bottom: -28%;
  background: radial-gradient(ellipse, var(--ambient-sand) 12%, transparent 72%);
  animation-name: ambient-sand;
  animation-duration: 18s;
  animation-delay: -8s;
}
.ambient-glow {
  top: 18%;
  left: 30%;
  width: clamp(360px, 46vw, 680px);
  height: clamp(360px, 46vw, 680px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-violet), transparent 68%);
  animation-name: glow-drift;
  animation-duration: 11s;
}
.ambient-background.is-running::before,
.ambient-background.is-running::after,
.ambient-background.is-running .ambient-glow {
  animation-play-state: running;
}
@keyframes ambient-sage {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(-42%, 30%, 0) scale(1.12);
  }
}
@keyframes ambient-sand {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(40%, -32%, 0) scale(1.14);
  }
}
@keyframes glow-drift {
  from {
    opacity: 0.7;
    transform: scale(0.9) translate(0, 0);
  }
  to {
    opacity: 1;
    transform: scale(1.2) translate(60px, 40px);
  }
}

/* Barre de progression, comme dans les decks */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--action-bg);
  transform: scaleX(0);
  transform-origin: left center;
}

/* En-tête flottant */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 12px;
}
.header-inner {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 10px 8px 24px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}
.brand-dot {
  color: var(--orange);
}
.brand-dev {
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.05em;
}

/* Logo animé : entrée dans l'en-tête, vague au survol */
.brand-lvt > span,
.brand-dot,
.brand-dev > span {
  display: inline-block;
  animation: var(--brand-in, none), var(--brand-move, none);
}
.brand-lvt > span:nth-child(2),
.brand-dev > span:nth-child(2) {
  --i: 1;
}
.brand-lvt > span:nth-child(3),
.brand-dev > span:nth-child(3) {
  --i: 2;
}
.brand-dot {
  transform-origin: 50% 80%;
}
.site-header .brand-lvt > span {
  --brand-in: brand-rise 0.55s calc(0.1s + var(--i, 0) * 0.07s) var(--ease-out) backwards;
}
.site-header .brand-dot {
  --brand-in: brand-drop 0.75s 0.36s backwards;
}
.site-header .brand-dev > span {
  --brand-in: brand-rise 0.5s calc(0.68s + var(--i, 0) * 0.06s) var(--ease-out) backwards;
}
.brand:is(:hover, :focus-visible) .brand-lvt > span {
  --brand-move: brand-wave 0.5s calc(var(--i, 0) * 0.05s) var(--ease-out);
}
.brand:is(:hover, :focus-visible) .brand-dot {
  --brand-move: brand-hop 0.65s 0.12s;
}
.brand:is(:hover, :focus-visible) .brand-dev > span {
  --brand-move: brand-wave 0.5s calc(0.24s + var(--i, 0) * 0.05s) var(--ease-out);
}
@keyframes brand-rise {
  from {
    opacity: 0;
    translate: 0 0.45em;
  }
}
@keyframes brand-drop {
  0% {
    opacity: 0;
    translate: 0 -1.1em;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  50% {
    opacity: 1;
    translate: 0 0;
    scale: 1.35 0.7;
    animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
  }
  72% {
    translate: 0 -0.22em;
    scale: 0.92 1.1;
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  88% {
    translate: 0 0;
    scale: 1.1 0.9;
  }
  100% {
    translate: 0 0;
    scale: 1;
  }
}
@keyframes brand-wave {
  40% {
    translate: 0 -0.14em;
  }
}
@keyframes brand-hop {
  0%,
  100% {
    translate: 0 0;
    scale: 1;
  }
  15% {
    scale: 1.2 0.8;
  }
  45% {
    translate: 0 -0.5em;
    scale: 0.9 1.15;
  }
  75% {
    translate: 0 0;
    scale: 1.25 0.75;
  }
  88% {
    scale: 0.95 1.05;
  }
}
.header-actions,
.header-contact {
  display: none;
}
.navigation {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.navigation > a {
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.35s;
}
.navigation > a:not(.nav-contact):hover {
  background: var(--soft-orange);
  color: var(--badge-ink);
}
/* rubrique en cours de lecture, allumée pendant le défilement */
.navigation > a[aria-current]:not(.nav-contact) {
  background: var(--soft-orange);
  color: var(--badge-ink);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 45%, transparent),
    0 0 18px -4px color-mix(in srgb, var(--orange) 70%, transparent);
}
.navigation > a[aria-current] .nav-count {
  background: var(--orange);
  color: var(--surface);
}
.navigation .nav-contact[aria-current],
.header-contact[aria-current] {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--orange),
    0 0 24px -2px color-mix(in srgb, var(--orange) 70%, transparent);
}
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--soft-orange);
  color: var(--badge-ink);
  font-size: 10px;
}
.text-link:hover,
.footer-links a:hover {
  color: var(--orange);
}
.navigation .nav-contact {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 11px 18px;
  margin-left: 8px;
  border-radius: var(--control-radius);
  background: var(--control-bg);
  color: var(--control-ink);
}
.navigation .nav-contact:hover {
  background: var(--control-hover);
}
/* Cadre de la rubrique en cours, qui glisse d'un lien à l'autre */
.nav-indicator {
  display: none;
}
@media (min-width: 801px) {
  .navigation.has-indicator,
  .navigation.has-indicator > a {
    position: relative;
  }
  .navigation.has-indicator > a[aria-current]:not(.nav-contact),
  .navigation.has-indicator > a[aria-current]:not(.nav-contact):hover {
    background: transparent;
    box-shadow: none;
  }
  .navigation.has-indicator .nav-contact[aria-current] {
    box-shadow: none;
  }
  .nav-indicator {
    --nav-lead: 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    --nav-tail: 0.58s 0.06s cubic-bezier(0.34, 1.25, 0.64, 1);
    --nav-morph: 0.35s var(--ease-out);
    display: block;
    position: absolute;
    top: var(--nav-t, 0px);
    right: var(--nav-r, 0px);
    bottom: var(--nav-b, 0px);
    left: var(--nav-l, 0px);
    border-radius: 10px;
    background: var(--soft-orange);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--orange) 45%, transparent),
      0 0 18px -4px color-mix(in srgb, var(--orange) 70%, transparent);
    opacity: 0;
    scale: 0.6;
    pointer-events: none;
    transition:
      right var(--nav-lead),
      left var(--nav-tail),
      top var(--nav-lead),
      bottom var(--nav-lead),
      margin var(--nav-lead),
      border-radius var(--nav-morph),
      background-color var(--nav-morph),
      box-shadow var(--nav-morph),
      opacity 0.25s,
      scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .nav-indicator.is-backward {
    transition:
      left var(--nav-lead),
      right var(--nav-tail),
      top var(--nav-lead),
      bottom var(--nav-lead),
      margin var(--nav-lead),
      border-radius var(--nav-morph),
      background-color var(--nav-morph),
      box-shadow var(--nav-morph),
      opacity 0.25s,
      scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .nav-indicator.is-snapping {
    transition:
      opacity 0.25s,
      scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .nav-indicator.is-visible {
    opacity: 1;
    scale: 1;
  }
  .nav-indicator.is-contact {
    margin: -4px;
    border-radius: calc(var(--control-radius) + 4px);
    background: var(--surface);
    box-shadow:
      inset 0 0 0 2px var(--orange),
      0 0 24px -2px color-mix(in srgb, var(--orange) 70%, transparent);
  }
  .nav-indicator::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
  }
  .nav-indicator[data-pulse="a"]::after {
    animation: nav-pulse-a 0.7s 0.3s var(--ease-out);
  }
  .nav-indicator[data-pulse="b"]::after {
    animation: nav-pulse-b 0.7s 0.3s var(--ease-out);
  }
}
@keyframes nav-pulse-a {
  from {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 55%, transparent);
  }
  to {
    opacity: 0;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--orange) 0%, transparent);
  }
}
@keyframes nav-pulse-b {
  from {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 55%, transparent);
  }
  to {
    opacity: 0;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--orange) 0%, transparent);
  }
}
.menu-toggle {
  color: var(--ink);
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: var(--control-radius);
  font-weight: 600;
}
.menu-toggle > [aria-hidden] {
  margin-left: 12px;
}
.theme-toggle {
  --theme-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--ink);
}
.theme-toggle:hover {
  background: var(--soft-orange);
  border-color: var(--orange);
}
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  overflow: visible;
  transition:
    opacity 0.15s,
    rotate 0.6s var(--theme-spring),
    scale 0.6s var(--theme-spring);
}
:root:not([data-theme="dark"]) .theme-toggle .theme-moon,
:root[data-theme="dark"] .theme-toggle .theme-sun {
  transition:
    opacity 0.25s 0.12s,
    rotate 0.6s var(--theme-spring),
    scale 0.6s var(--theme-spring);
}
.theme-toggle .theme-sun circle,
.theme-toggle .theme-sun path {
  transform-origin: 12px 12px;
  transition:
    rotate 0.6s var(--theme-spring),
    scale 0.6s var(--theme-spring);
}
.theme-toggle .theme-sun {
  opacity: 0;
  rotate: -90deg;
  scale: 0.5;
}
.theme-toggle .theme-sun path {
  rotate: -60deg;
  scale: 0.3;
}
.theme-toggle .theme-sun circle {
  scale: 1.5;
}
:root[data-theme="dark"] .theme-toggle .theme-moon {
  opacity: 0;
  rotate: 90deg;
  scale: 0.5;
}
:root[data-theme="dark"] .theme-toggle .theme-sun {
  opacity: 1;
  rotate: 0deg;
  scale: 1;
}
:root[data-theme="dark"] .theme-toggle .theme-sun path {
  rotate: 0deg;
  scale: 1;
  transition-delay: 0.08s;
}
:root[data-theme="dark"] .theme-toggle .theme-sun circle {
  scale: 1;
}
:root.theme-switching::view-transition-old(root),
:root.theme-switching::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
.theme-toggle[aria-disabled="true"] {
  cursor: default;
}
.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.legal-header-actions .theme-toggle {
  margin-left: 0;
}

/* Typographie commune */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
}
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: none;
  background: var(--orange);
  border-radius: 50%;
}
.micro-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  line-height: 1.6;
}
h1 {
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-top: 24px;
}
h2 {
  font-size: clamp(40px, 4.5vw, 66px);
  line-height: 1.05;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(182 72 44 / 22%);
  transition:
    background 0.2s,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
}
.button span {
  font-size: 22px;
  line-height: 1;
}
.button-primary {
  background: var(--action-bg);
  color: var(--white);
}
.button-primary:hover {
  background: var(--action-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(182 72 44 / 28%);
}
.button-light {
  color: var(--inverse-bg);
  background: var(--inverse-ink);
  box-shadow: none;
}
.button-light:hover {
  background: #e6d5c7;
  transform: translateY(-2px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 10px;
  font-size: 14px;
  font-weight: 700;
}
.text-link span {
  font-size: 19px;
  transition: transform 0.25s var(--ease-out);
}
.text-link:hover span {
  transform: translate(2px, -2px);
}
/* Icône devant un lien qui mène à LinkedIn */
.link-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: -4px;
}

/* Accueil */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 48px;
  align-items: center;
  padding-block: 72px 88px;
}
.hero-copy > * {
  animation: enter 0.8s var(--ease-out) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.22s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.28s;
}
.hero-copy > :nth-child(6) {
  animation-delay: 0.34s;
}
.hero h1 {
  font-weight: 800;
}
.hero-title-lead {
  display: block;
  margin-bottom: 14px;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.hero-values {
  display: flex;
  margin-top: 30px;
}
/* Badge « Conseiller · Former · Construire », style du rotateur de realmoon.ai :
   pastille teintée avec liseré ; quand les animations tournent (main.js ajoute
   .is-rotating), un mot toutes les 4 s, lettres qui montent une à une.
   Sinon, les trois mots restent affichés dans la pastille. */
.value-badge {
  display: inline-grid;
  justify-items: center;
  padding: 0.16em 0.5em;
  border-radius: 0.5em;
  background: var(--green-soft);
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent),
    0 1px 2px color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
  overflow: clip;
  /* légère inclinaison, comme les cartes du site */
  rotate: -3deg;
  transform-origin: left center;
}
.value-badge-center {
  transform-origin: center;
}
.value-list > span {
  white-space: nowrap;
}
@media (max-width: 600px) {
  /* les trois mots tiennent sur une ligne quand le badge ne tourne pas */
  .value-badge {
    font-size: 15px;
  }
}
/* Badge de « Compétences », plus grand sous le titre de section */
.panorama-usecases .value-badge {
  font-size: clamp(20px, 1.9vw, 25px);
}
@media (max-width: 600px) {
  .panorama-usecases .value-badge {
    font-size: 15px;
  }
  .panorama-usecases .value-badge.is-rotating {
    font-size: 21px;
  }
}
/* Badge du hero, agrandi sous le titre */
.hero-values .value-badge {
  font-size: 28px;
}
@media (max-width: 600px) {
  .hero-values .value-badge {
    font-size: min(17px, 4.5vw);
  }
  .hero-values .value-badge.is-rotating {
    font-size: 22px;
  }
}
.value-list span + span::before {
  content: "·";
  content: "·" / "";
  margin-inline: 0.45em;
  opacity: 0.55;
}
.value-rotor {
  display: none;
  justify-items: center;
}
.value-word {
  display: inline-flex;
  grid-area: 1 / 1;
  white-space: pre;
}
.value-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(112%);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) calc(var(--c) * 26ms),
    opacity 0.35s ease calc(var(--c) * 26ms);
}
.value-char::before {
  content: attr(data-char);
}
.value-word[data-state="in"] .value-char {
  opacity: 1;
  transform: none;
}
.value-word[data-state="out"] .value-char {
  opacity: 0;
  transform: translateY(-112%);
}
.value-word[data-state="wait"] .value-char {
  transition: none;
}
.value-badge.is-rotating .value-rotor {
  display: inline-grid;
}
.value-badge.is-rotating .value-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-visual {
  position: relative;
  width: 100%;
  animation: enter 0.9s 0.15s var(--ease-out) both;
}
.motion-toggle {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 9px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.motion-toggle:hover:not([aria-disabled="true"]) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.motion-toggle[aria-disabled="true"] {
  cursor: default;
}

/* Interrupteur des animations */
.motion-switch {
  --switch-w: 38px;
  --thumb: 16px;
  --pad: 3px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex: none;
  width: var(--switch-w);
  height: calc(var(--thumb) + 2 * var(--pad));
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--muted) 38%, transparent);
  background-image: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 34%) 50%, transparent 80%);
  background-position: -48px 0;
  background-size: 48px 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 30%, transparent);
  transition:
    background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.motion-toggle[aria-checked="true"] .motion-switch {
  background-color: var(--action-bg);
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 8%),
    0 4px 12px rgb(182 72 44 / 28%);
}
.motion-toggle[aria-disabled="true"] .motion-switch {
  opacity: 0.55;
}
html.motion-on .motion-toggle[aria-checked="true"] .motion-switch {
  animation: motion-shimmer 3.2s 0.6s ease-in-out infinite;
}
.motion-switch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.motion-toggle[aria-checked="true"] .motion-switch::after {
  --ring: rgb(182 72 44 / 50%);
}
.motion-toggle[aria-checked="false"] .motion-switch::after {
  --ring: color-mix(in srgb, var(--muted) 45%, transparent);
}
.motion-toggle.has-toggled[aria-checked="true"] .motion-switch::after {
  animation: motion-ring-a 0.6s var(--ease-out);
}
.motion-toggle.has-toggled[aria-checked="false"] .motion-switch::after {
  animation: motion-ring-b 0.6s var(--ease-out);
}
.motion-thumb {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  display: grid;
  place-items: center;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 999px;
  background: var(--white);
  color: #56646b;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 22%),
    0 2px 6px rgb(0 0 0 / 12%);
  transition:
    translate 0.5s var(--spring),
    color 0.3s;
}
.motion-toggle[aria-checked="true"] .motion-thumb {
  translate: calc(var(--switch-w) - var(--thumb) - 2 * var(--pad)) 0;
  color: #b6482c;
}
.motion-toggle.has-toggled[aria-checked="true"] .motion-thumb {
  animation: motion-squash-a 0.5s var(--ease-out);
}
.motion-toggle.has-toggled[aria-checked="false"] .motion-thumb {
  animation: motion-squash-b 0.5s var(--ease-out);
}
.motion-glyph {
  width: 10px;
  height: 10px;
  overflow: visible;
}
.motion-glyph path {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.2s,
    scale 0.45s var(--spring),
    rotate 0.45s var(--ease-out);
}
.motion-glyph-play {
  fill: currentColor;
}
.motion-glyph-pause {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.motion-toggle[aria-checked="true"] .motion-glyph-pause,
.motion-toggle:not([aria-checked="true"]) .motion-glyph-play {
  opacity: 0;
  scale: 0.3;
  rotate: -90deg;
}
.motion-state {
  display: inline-grid;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  overflow: hidden;
  font-weight: 650;
}
.motion-word {
  grid-area: 1 / 1;
  white-space: pre;
}
.motion-word[data-word="on"] {
  color: var(--orange);
}
.motion-char {
  display: inline-block;
  transition:
    opacity 0.3s calc(var(--c) * 24ms),
    translate 0.45s calc(var(--c) * 24ms) var(--ease-out);
}
.motion-word[data-state="out"] .motion-char {
  opacity: 0;
  translate: 0 -110%;
}
.motion-word[data-state="wait"] .motion-char {
  opacity: 0;
  translate: 0 110%;
  transition: none;
}
@keyframes motion-squash-a {
  30% {
    scale: 1.4 0.84;
  }
  65% {
    scale: 0.94 1.06;
  }
}
@keyframes motion-squash-b {
  30% {
    scale: 1.4 0.84;
  }
  65% {
    scale: 0.94 1.06;
  }
}
@keyframes motion-ring-a {
  from {
    box-shadow: 0 0 0 0 var(--ring);
  }
  to {
    box-shadow: 0 0 0 9px transparent;
  }
}
@keyframes motion-ring-b {
  from {
    box-shadow: 0 0 0 0 var(--ring);
  }
  to {
    box-shadow: 0 0 0 9px transparent;
  }
}
@keyframes motion-shimmer {
  0% {
    background-position: -48px 0;
  }
  45%,
  100% {
    background-position: calc(var(--switch-w) + 8px) 0;
  }
}

/* Scène animée de l’accueil : portrait, orbite, cartes flottantes */
.hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 520;
  isolation: isolate;
  container-type: inline-size;
}
.scene-orbit,
.scene-halo,
.scene-portrait,
.scene-card,
.scene-network {
  position: absolute;
}
.scene-orbit {
  left: 9.82%;
  top: 6.73%;
  width: 83.93%;
  aspect-ratio: 1;
  border: 1px dashed rgb(182 72 44 / 28%);
  border-radius: 50%;
  animation: spin 80s linear infinite paused;
}
.scene-halo {
  left: 18.75%;
  top: 16.35%;
  width: 66.07%;
  aspect-ratio: 1;
  border: 1px solid rgb(199 215 197 / 62%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 38%,
    #e9f0e1,
    rgb(223 234 215 / 55%) 60%,
    rgb(223 234 215 / 0%) 72%
  );
}
.scene-halo::before,
.scene-halo::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
}
.scene-halo::after {
  inset: -6%;
  border-color: rgb(199 215 197 / 30%);
}
.scene-network {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
.scene-link {
  fill: none;
  stroke: rgb(182 72 44 / 38%);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  animation: dash-flow 3s linear infinite paused;
}
.scene-link.link-blue {
  stroke: rgb(102 129 175 / 55%);
  animation-delay: -0.8s;
}
.scene-link.link-sage {
  stroke: rgb(86 129 99 / 50%);
  animation-delay: -1.6s;
}
.scene-portrait {
  z-index: 2;
  left: 25.89%;
  top: 24.04%;
  width: 51.79%;
  margin: 0;
}
/* Faille glitchée derrière le personnage : vide sombre, bord dédoublé cyan / magenta,
   lignes de balayage. Quand les animations tournent : tourbillon lent, barre de balayage,
   et déchirures horizontales (::after du portrait) qui débordent du cercle par à-coups. */
.scene-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 5%) 0 1px, transparent 1px 4px),
    radial-gradient(circle, transparent 60%, rgb(75 238 219 / 30%) 69%, transparent 72%),
    radial-gradient(circle at 48% 52%, #04050b 0 24%, #120d2c 45%, #2a1760 64%, #0f3f55 84%, #4beedb 100%);
  box-shadow:
    -6px 0 0 -1px rgb(75 238 219 / 80%),
    6px 0 0 -1px rgb(255 79 154 / 75%),
    0 0 36px 2px rgb(110 80 255 / 38%),
    var(--shadow-lg);
  animation: rift-split 3.8s steps(1, end) infinite paused;
}
.scene-photo::before,
.scene-photo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.scene-photo::before {
  inset: -25%;
  background: conic-gradient(
    transparent 0 12%,
    rgb(130 95 255 / 45%) 22%,
    transparent 34% 52%,
    rgb(75 238 219 / 35%) 64%,
    transparent 76%,
    rgb(255 79 154 / 25%) 88%,
    transparent
  );
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: spin 16s linear infinite paused;
}
.scene-photo::after {
  inset: 0;
  background: linear-gradient(
      transparent 46%,
      rgb(75 238 219 / 22%) 48%,
      rgb(255 255 255 / 30%) 50%,
      rgb(255 79 154 / 18%) 52%,
      transparent 54%
    )
    0 0 / 100% 200%;
  animation: rift-scan 3.2s linear infinite paused;
}
.scene-portrait::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(#4beedb, #4beedb),
    linear-gradient(#ff4f9a, #ff4f9a),
    linear-gradient(#8a6bff, #8a6bff),
    linear-gradient(#4beedb, #4beedb),
    linear-gradient(#ff4f9a, #ff4f9a),
    linear-gradient(#4beedb, #4beedb),
    linear-gradient(#ff4f9a, #ff4f9a),
    linear-gradient(#4beedb, #4beedb),
    linear-gradient(#ff4f9a, #ff4f9a),
    linear-gradient(#8a6bff, #8a6bff);
  background-position: 1% 50%, 3.6% 63%, 3.9% 34.7%, 8.8% 26.4%, 98.1% 48.4%, 94.8% 69.2%, 90.9% 74.3%, 92.8% 27.9%, 16.7% 83.9%, 79.4% 87.1%;
  background-size: 5% 1.4%, 3.5% 1.3%, 4.5% 1.2%, 2.2% 1.2%, 3.2% 1.5%, 5% 1.2%, 2.4% 1.2%, 4% 1.3%, 3% 1.2%, 2.6% 1.1%;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
  animation: rift-debris 3.8s steps(1, end) infinite paused;
}
.scene-portrait::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(90deg, #4beedb, #2a1760 18%, #04050b 50%, #2a1760 82%, #ff4f9a);
  opacity: 0;
  pointer-events: none;
  animation: rift-tear 3.8s steps(1, end) infinite paused;
}
/* Personnage 3D en « sortie de cadre » : le haut (tête, main qui salue)
   dépasse du cercle, le bas du corps reste découpé par le cercle.
   Masque = rectangle jusqu’au centre du cercle + disque intérieur du cercle. */
.scene-avatar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(#000, #000),
    radial-gradient(closest-side, #000 calc(100% - 7px), transparent calc(100% - 6px));
  -webkit-mask-position: top, bottom;
  -webkit-mask-size: 100% 60%, 100% 80%;
  -webkit-mask-repeat: no-repeat;
  mask-image:
    linear-gradient(#000, #000),
    radial-gradient(closest-side, #000 calc(100% - 7px), transparent calc(100% - 6px));
  mask-position: top, bottom;
  mask-size: 100% 60%, 100% 80%;
  mask-repeat: no-repeat;
}
.scene-avatar img {
  position: absolute;
  left: 2.5%;
  bottom: 0;
  width: 95%;
  max-width: none;
  height: auto;
}
.scene-name {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 57%;
  translate: -50% 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-ink);
  font-size: clamp(13px, 3cqw, 17px);
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow:
    -3px 0 0 -1px rgb(75 238 219 / 85%),
    3px 0 0 -1px rgb(255 79 154 / 80%),
    var(--shadow-sm);
  text-shadow:
    -1px 0 rgb(75 238 219 / 70%),
    1px 0 rgb(255 79 154 / 70%);
  animation: name-glitch 3.8s steps(1, end) infinite paused;
}
/* copies cyan et magenta du nom, découpées en tranches pendant les rafales */
.scene-name::before,
.scene-name::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  padding: inherit;
  opacity: 0;
  text-shadow: none;
  pointer-events: none;
  animation: name-slice 3.8s steps(1, end) infinite paused;
}
.scene-name::before {
  color: #4beedb;
}
.scene-name::after {
  color: #ff4f9a;
  animation-delay: -0.12s;
  animation-direction: reverse;
}
.scene-cards {
  list-style: none;
}
.scene-card {
  z-index: 4;
  width: 41%;
  animation: arrive 0.8s var(--ease-out) both;
}
.card-conseil {
  left: 0;
  top: 11.5%;
  --angle: -4deg;
  --float-delay: -0.4s;
  animation-delay: 0.45s;
}
.card-ia {
  right: 0;
  top: 42.7%;
  --angle: 3.5deg;
  --float-delay: -2.5s;
  animation-delay: 0.7s;
}
.card-dev {
  left: 1.5%;
  top: 67.3%;
  --angle: -2.5deg;
  --float-delay: -4s;
  animation-delay: 0.95s;
}
.card-formation {
  right: 4%;
  top: 83%;
  --angle: 2.5deg;
  --float-delay: -1.2s;
  animation-delay: 1.2s;
}
.scene-card-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(10px, 2.5cqw, 14px) clamp(10px, 2.4cqw, 14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 30px rgb(23 44 56 / 10%);
  rotate: var(--angle, 0deg);
  animation: float 6s ease-in-out infinite paused;
  animation-delay: var(--float-delay, 0s);
}
.scene-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(26px, 5.6cqw, 32px);
  height: clamp(26px, 5.6cqw, 32px);
  border-radius: 10px;
  background: var(--soft-orange);
  color: var(--orange);
}
.scene-card-icon svg {
  width: 58%;
}
.card-ia .scene-card-icon {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.card-formation .scene-card-icon {
  background: var(--green-soft);
  color: var(--green);
}
.scene-card-text {
  min-width: 0;
}
.scene-card-text strong {
  display: block;
  font-size: clamp(12.5px, 2.75cqw, 15.5px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.scene-card-text > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(10.5px, 2.1cqw, 12px);
  line-height: 1.35;
}
.scene-check {
  position: absolute;
  right: -8px;
  top: -10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #236346;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Cartes du hero : coins continus */
@supports (corner-shape: superellipse(1.8)) {
  .scene-card-inner {
    border-radius: 26px;
    corner-shape: superellipse(1.8);
  }
  .scene-card-icon {
    border-radius: 40%;
    corner-shape: superellipse(1.8);
  }
}
@media (forced-colors: none) {
  @supports (not (corner-shape: superellipse(1.8))) and (clip-path: shape(from 0 0, line to 0 0)) {
    .scene-card-inner::before,
    .scene-card-inner::after,
    .scene-card-icon {
      --squircle: shape(
        from var(--r) 0,
        hline to calc(100% - var(--r)),
        curve to 100% var(--r) with calc(100% - var(--c)) 0 / 100% var(--c),
        vline to calc(100% - var(--r)),
        curve to calc(100% - var(--r)) 100% with 100% calc(100% - var(--c)) / calc(100% - var(--c)) 100%,
        hline to var(--r),
        curve to 0 calc(100% - var(--r)) with var(--c) 100% / 0 calc(100% - var(--c)),
        vline to var(--r),
        curve to var(--r) 0 with 0 var(--c) / var(--c) 0,
        close
      );
    }
    .scene-card-inner {
      border-color: transparent;
      border-radius: 26px;
      background: none;
      box-shadow: none;
      filter: drop-shadow(0 14px 15px rgb(23 44 56 / 10%));
    }
    .scene-card-inner::before,
    .scene-card-inner::after {
      --r: 26px;
      --c: 4px;
      position: absolute;
      z-index: -1;
      inset: -1px;
      background: var(--line);
      clip-path: var(--squircle);
      content: "";
    }
    .scene-card-inner::after {
      --r: 25px;
      inset: 0;
      background: var(--surface);
    }
    .scene-card-icon {
      --r: 40%;
      --c: 6.2%;
      border-radius: 0;
      clip-path: var(--squircle);
    }
  }
}
:root[data-theme="dark"] .scene-halo {
  background: radial-gradient(circle at 42% 38%, #1f3d36, rgb(36 70 61 / 50%) 60%, transparent 72%);
  border-color: rgb(110 150 125 / 35%);
}
:root[data-theme="dark"] .scene-halo::before {
  border-color: rgb(255 255 255 / 10%);
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .scene-halo {
    background: radial-gradient(circle at 42% 38%, #1f3d36, rgb(36 70 61 / 50%) 60%, transparent 72%);
    border-color: rgb(110 150 125 / 35%);
  }
  :root:not([data-theme]) .scene-halo::before {
    border-color: rgb(255 255 255 / 10%);
  }
}

/* Animations décoratives : elles tournent seulement si la page l’autorise */
.motion-on .is-in-view .scene-orbit,
.motion-on .is-in-view .scene-link,
.motion-on .is-in-view .scene-photo,
.motion-on .is-in-view .scene-photo::before,
.motion-on .is-in-view .scene-photo::after,
.motion-on .is-in-view .scene-portrait::before,
.motion-on .is-in-view .scene-portrait::after,
.motion-on .is-in-view .scene-name,
.motion-on .is-in-view .scene-name::before,
.motion-on .is-in-view .scene-name::after,
.motion-on .is-in-view .cloud-photo,
.motion-on .is-in-view .scene-card-inner,
.motion-on .is-in-view .drifter,
.motion-on .is-in-view .panorama-glow {
  animation-play-state: running;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes rift-split {
  0%,
  100% {
    box-shadow:
      -6px 0 0 -1px rgb(75 238 219 / 80%),
      6px 0 0 -1px rgb(255 79 154 / 75%),
      0 0 36px 2px rgb(110 80 255 / 38%),
      var(--shadow-lg);
  }
  8%,
  47% {
    box-shadow:
      9px 0 0 -1px rgb(75 238 219 / 90%),
      -11px 0 0 -1px rgb(255 79 154 / 85%),
      0 0 48px 6px rgb(110 80 255 / 52%),
      var(--shadow-lg);
  }
  11%,
  53% {
    box-shadow:
      -13px 0 0 -1px rgb(75 238 219 / 90%),
      8px 0 0 -1px rgb(255 79 154 / 85%),
      0 0 42px 4px rgb(110 80 255 / 46%),
      var(--shadow-lg);
  }
  14%,
  56% {
    box-shadow:
      -6px 0 0 -1px rgb(75 238 219 / 80%),
      6px 0 0 -1px rgb(255 79 154 / 75%),
      0 0 36px 2px rgb(110 80 255 / 38%),
      var(--shadow-lg);
  }
}
@keyframes rift-tear {
  0%,
  100% {
    opacity: 0;
  }
  8% {
    opacity: 0.9;
    clip-path: inset(18% 0 74%);
    transform: translateX(-18px);
  }
  11% {
    opacity: 0.9;
    clip-path: inset(63% 0 30%);
    transform: translateX(16px);
  }
  14% {
    opacity: 0;
  }
  47% {
    opacity: 0.85;
    clip-path: inset(40% 0 54%);
    transform: translateX(20px);
  }
  50% {
    opacity: 0.85;
    clip-path: inset(80% 0 14%);
    transform: translateX(-14px);
  }
  53% {
    opacity: 0.85;
    clip-path: inset(28% 0 68%);
    transform: translateX(6px);
  }
  56% {
    opacity: 0;
  }
}
@keyframes rift-debris {
  0%,
  14%,
  47%,
  56%,
  100% {
    opacity: 0.85;
    transform: none;
  }
  8%,
  50% {
    opacity: 1;
    transform: translateX(-6px);
  }
  11%,
  53% {
    opacity: 0.5;
    transform: translateX(7px);
  }
  30% {
    opacity: 0.4;
  }
  32% {
    opacity: 0.85;
  }
}
@keyframes name-glitch {
  0%,
  14%,
  56%,
  100% {
    transform: none;
  }
  8% {
    transform: translateX(3px) skewX(-10deg);
  }
  11% {
    transform: translateX(-4px);
  }
  47% {
    transform: translateX(-3px) skewX(12deg);
  }
  50% {
    transform: translateX(4px);
  }
  53% {
    transform: translateX(-2px) skewX(-6deg);
  }
}
@keyframes name-slice {
  0%,
  14%,
  56%,
  100% {
    opacity: 0;
  }
  8% {
    opacity: 0.95;
    clip-path: inset(10% 0 58%);
    transform: translateX(-6px);
  }
  11% {
    opacity: 0.95;
    clip-path: inset(55% 0 15%);
    transform: translateX(6px);
  }
  47% {
    opacity: 0.9;
    clip-path: inset(30% 0 44%);
    transform: translateX(7px);
  }
  50% {
    opacity: 0.9;
    clip-path: inset(68% 0 6%);
    transform: translateX(-5px);
  }
  53% {
    opacity: 0.9;
    clip-path: inset(18% 0 62%);
    transform: translateX(4px);
  }
}
@keyframes rift-scan {
  to {
    background-position: 0 100%;
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -42;
  }
}

/* Apparition au défilement */
.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.75s var(--ease-out),
    translate 0.75s var(--ease-out),
    transform 0.35s var(--ease-out),
    rotate 0.4s var(--ease-out),
    box-shadow 0.35s,
    border-color 0.3s;
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s,
    0s, 0s;
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}
.skills-grid > :nth-child(2),
.education-grid > :nth-child(2),
.talks-grid > :nth-child(2) {
  --reveal-delay: 0.1s;
}
.skills-grid > :nth-child(3) {
  --reveal-delay: 0.2s;
}

/* Compétences : cartes légèrement inclinées, apparition comme le nuage de
   photos (elles arrivent de côté, réduites et plus penchées, puis se posent) */
.skills-grid > .skill-card {
  rotate: var(--card-tilt, 0deg);
  transition: rotate 0.4s var(--ease-out);
}
.skills-grid > .skill-card-biz {
  --card-tilt: -1.2deg;
  --fx: -70px;
  --fy: 50px;
}
.skills-grid > .skill-card-oc {
  --card-tilt: 1deg;
  --fx: 70px;
  --fy: 50px;
  --reveal-delay: 0.12s;
}
.skills-grid > .skill-card-term {
  --card-tilt: -0.5deg;
  --fx: 0px;
  --fy: 90px;
  --reveal-delay: 0.24s;
}
.skills-grid > .skill-card:hover {
  rotate: 0deg;
}
.reveal-ready .skills-grid > .skill-card[data-reveal] {
  opacity: 0;
  translate: var(--fx, 0px) var(--fy, 40px);
  scale: 0.82;
  rotate: calc(var(--card-tilt, 0deg) * 5);
  transition:
    opacity 0.8s var(--ease-out),
    translate 1s var(--ease-out),
    scale 1s var(--ease-out),
    rotate 1s var(--ease-out),
    box-shadow 0.35s;
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s),
    var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s;
}
.reveal-ready .skills-grid > .skill-card[data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  rotate: var(--card-tilt, 0deg);
}
.reveal-ready .skills-grid > .skill-card[data-reveal].is-visible:hover {
  rotate: 0deg;
  transition-delay: 0s;
}
@media (max-width: 860px) {
  .skills-grid > .skill-card {
    --fx: 0px;
    --fy: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .skills-grid > .skill-card[data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
    rotate: var(--card-tilt, 0deg);
  }
}
@media (forced-colors: active), print {
  .skills-grid > .skill-card,
  .reveal-ready .skills-grid > .skill-card[data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
  }
}

/* Sections */
.section {
  position: relative;
  padding-block: 112px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 52px;
}
.section-number {
  margin-bottom: 18px;
}
.section-lead {
  max-width: 360px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.section-heading-center {
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}
.section-heading-center .eyebrow {
  padding: 6px 15px;
  border-radius: 30px;
  background: rgb(247 245 239 / 88%);
}
:root[data-theme="dark"] .section-heading-center .eyebrow {
  background: rgb(16 31 40 / 85%);
}
.section-heading-center h2 {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.99;
}
.section-heading-center .section-lead {
  max-width: 520px;
  margin-top: 18px;
  padding: 0;
}
.panorama-usecases {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* Presse */
.publications-section {
  background: linear-gradient(transparent, rgb(241 241 236 / 75%) 18%, rgb(241 241 236 / 75%) 82%, transparent);
}
:root[data-theme="dark"] .publications-section {
  background: linear-gradient(transparent, rgb(20 38 48 / 70%) 18%, rgb(20 38 48 / 70%) 82%, transparent);
}
.press-grid {
  --per-view: 3;
  --gap: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  margin: -12px -24px -36px;
  padding: 12px 24px 36px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.press-grid:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -6px;
  border-radius: 28px;
}
.press-grid > .press-card {
  scroll-snap-align: start;
}
.press-grid.is-enhanced {
  scrollbar-width: none;
}
.press-grid.is-enhanced::-webkit-scrollbar {
  display: none;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}
.carousel-controls[hidden] {
  display: none;
}
.carousel-status {
  min-width: 64px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.carousel-status [data-carousel-current] {
  color: var(--ink);
}
.carousel-progress {
  position: relative;
  width: 120px;
  height: 3px;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.carousel-progress span {
  position: absolute;
  inset: 0;
  background: var(--action-bg);
  transform: scaleX(0.43);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.carousel-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease-out);
}
.carousel-button:hover:not(:disabled) {
  border-color: var(--action-bg);
  background: var(--action-bg);
  color: var(--white);
  transform: translateY(-2px);
}
.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}
.press-card {
  display: flex;
  flex-direction: column;
  padding: 14px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    opacity 0.75s var(--ease-out),
    translate 0.75s var(--ease-out);
}
.press-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.press-photo {
  margin: 0 -4px 20px;
}
.press-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 14px;
  background: var(--paper);
}
.press-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.press-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  color: var(--orange);
}
.press-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.press-number {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}
.press-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-wrap: pretty;
}
.press-description {
  margin-top: 14px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.press-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.press-card-bottom > span {
  color: var(--muted);
  font-size: 11px;
}
/* Logo du journal : pastille blanche dans tous les thèmes, logo affiché tel quel */
.press-source {
  display: flex;
  align-items: center;
  gap: 12px;
}
.press-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.press-logo img {
  width: auto;
  height: 100%;
  max-width: 110px;
  object-fit: contain;
}
.press-card-featured .press-logo {
  border-color: transparent;
}
@media (max-width: 600px) {
  /* Date sous le logo : « Lire l’article » reste sur la même ligne */
  .press-source {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
.press-card-featured {
  border-color: transparent;
  color: var(--inverse-ink);
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #1d3846, var(--inverse-bg) 70%);
}
.press-card-featured .press-card-top,
.press-card-featured .text-link {
  color: var(--inverse-accent);
}
.press-card-featured .press-description,
.press-card-featured .press-card-bottom > span,
.press-card-featured .press-photo figcaption {
  color: var(--inverse-muted);
}
.press-card-featured .press-card-bottom {
  border-color: #4b6068;
}
.press-card-featured .text-link:hover {
  color: var(--white);
}
.press-card-featured a:focus-visible {
  outline-color: var(--inverse-accent);
}
.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 40px;
}
.publication-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 8px 22px rgb(23 44 56 / 8%);
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
}
.publication-button:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(182 72 44 / 14%);
}
.publication-button img {
  flex: none;
  width: 22px;
  height: 22px;
}
.publication-favicon {
  border-radius: 6px;
}

/* Parcours */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 88px;
  align-items: start;
}
.about-intro {
  position: sticky;
  top: 120px;
}
.about-intro h2 {
  margin-bottom: 28px;
}
.about-intro > p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.about-intro > .text-link {
  margin-top: 6px;
}
.timeline {
  position: relative;
  list-style: none;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--orange), var(--line) 22%, var(--line));
  opacity: 0.8;
}
.timeline > li {
  position: relative;
  padding: 22px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.3s,
    border-color 0.3s,
    opacity 0.75s var(--ease-out),
    translate 0.75s var(--ease-out);
}
.timeline > li + li {
  margin-top: 16px;
}
.timeline > li:hover {
  border-color: rgb(182 72 44 / 35%);
  box-shadow: var(--shadow-md);
}
/* chaque expérience penche un peu, dans un sens puis dans l’autre ; elle se redresse au survol */
.timeline > li {
  rotate: var(--exp-tilt, -1deg);
}
.timeline > li:nth-child(even) {
  --exp-tilt: 0.9deg;
}
.timeline > li:nth-child(3) {
  --exp-tilt: -0.6deg;
}
.timeline > li:nth-child(4) {
  --exp-tilt: 1.1deg;
}
.timeline > li:nth-child(5) {
  --exp-tilt: -0.8deg;
}
.timeline > li:nth-child(6) {
  --exp-tilt: 0.6deg;
}
.timeline > li:nth-child(7) {
  --exp-tilt: -1.1deg;
}
.timeline > li:nth-child(9) {
  --exp-tilt: -0.7deg;
}
.timeline > li:hover {
  rotate: 0deg;
}
@media (forced-colors: active), print {
  .timeline > li {
    rotate: none;
  }
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 28px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.timeline > li:nth-child(-n + 2)::before {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--soft-orange);
}
.timeline > li.has-logo > .timeline-date,
.timeline > li.has-logo > h3,
.timeline > li.has-logo > .timeline-place {
  padding-right: 132px;
}
.timeline-logo {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 46px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.timeline-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.timeline-logo--cci {
  padding: 0;
  border: 0;
  background: none;
}
.timeline-logo--laigle {
  padding: 7px 14px;
  border-color: #0e1e58;
  background: #0e1e58;
}
.timeline-logo--cultura {
  padding: 0;
  border-color: #104274;
  background: #104274;
}
.timeline-logo--bonsmoulins {
  width: 58px;
  padding: 5px;
}
.timeline-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.current-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.timeline h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.timeline-place {
  margin-top: 4px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}
.timeline-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.timeline-list li + li {
  margin-top: 4px;
}
.timeline-list li::marker {
  color: var(--orange);
}

/* Photos : nuage d’images animé */
.photos-section {
  background: linear-gradient(transparent, rgb(239 238 232 / 80%) 15%, rgb(239 238 232 / 80%) 85%, transparent);
}
:root[data-theme="dark"] .photos-section {
  background: linear-gradient(transparent, rgb(20 38 48 / 75%) 15%, rgb(20 38 48 / 75%) 85%, transparent);
}
.photo-cloud {
  position: relative;
  aspect-ratio: 1184 / 780;
  container-type: inline-size;
}
.reveal-ready .photo-cloud[data-reveal] {
  opacity: 1;
  translate: none;
}
.photo-cloud::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1.6;
  border: 1px dashed rgb(182 72 44 / 22%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cloud-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 46%;
  text-align: center;
  transform: translate(-50%, -50%);
}
.cloud-title .eyebrow {
  justify-content: center;
}
.cloud-title h2 {
  font-size: clamp(34px, 5.6cqw, 70px);
}
.cloud-list {
  list-style: none;
}
.cloud-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: var(--w);
  transform: translate(-50%, -50%);
}
.reveal-ready .photo-cloud .cloud-item {
  opacity: 0;
  translate: var(--fx) var(--fy);
  scale: 0.6;
  transition:
    opacity 0.8s var(--ease-out),
    translate 1s var(--ease-out),
    scale 1s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 0.1s);
}
.reveal-ready .photo-cloud.is-visible .cloud-item {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.cloud-item:hover,
.cloud-item:focus-within {
  z-index: 6;
}
.cloud-photo {
  margin: 0;
  padding: 7px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  rotate: var(--tilt, 0deg);
  animation: cloud-float var(--float, 8s) ease-in-out var(--float-delay, 0s) infinite paused;
  transition:
    rotate 0.4s var(--ease-out),
    scale 0.4s var(--ease-out),
    box-shadow 0.4s;
}
.cloud-item:hover .cloud-photo,
.cloud-item:focus-within .cloud-photo {
  rotate: 0deg;
  scale: 1.1;
  box-shadow: var(--shadow-lg);
}
.cloud-link {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #172c38;
}
.cloud-link img {
  width: 100%;
  height: auto;
}
.cloud-link:focus-visible {
  outline-offset: 3px;
}
.cloud-photo figcaption {
  display: -webkit-box;
  margin-top: 7px;
  padding-inline: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(10.5px, 1.08cqw, 13px);
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* Presse : nuage d’articles, même principe que « Mon parcours, en images » */
.press-cloud {
  aspect-ratio: 1184 / 900;
}
.press-cloud::before {
  width: 56%;
  aspect-ratio: 2;
}
.press-cloud .cloud-title {
  width: 60%;
}
.press-cloud .cloud-title h2 {
  font-size: clamp(30px, 4.6cqw, 58px);
}
.press-cloud .cloud-item:hover .cloud-photo,
.press-cloud .cloud-item:focus-within .cloud-photo {
  scale: 1.06;
}
.press-clip {
  padding: 7px 7px 12px;
}
.press-clip-link {
  display: block;
  border-radius: 10px;
  color: inherit;
}
.press-clip-link:focus-visible {
  outline-offset: 5px;
}
.press-clip-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
}
.press-clip-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.press-clip-credit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgb(0 0 0 / 58%);
  color: #fff;
  font-size: clamp(8px, 0.72cqw, 10px);
  line-height: 1.5;
}
.press-clip-cat {
  display: block;
  margin: 9px 4px 4px;
  color: var(--orange);
  font-size: clamp(8.5px, 0.78cqw, 10px);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.press-clip-title {
  display: -webkit-box;
  margin-inline: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(11px, 1.15cqw, 14.5px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.press-clip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: clamp(9px, 0.85cqw, 11px);
  line-height: 1.3;
}
.press-clip-meta .press-logo {
  height: clamp(22px, 2.4cqw, 30px);
  padding: 4px 7px;
  border-radius: 7px;
}
.press-clip-meta .press-logo img {
  max-width: clamp(42px, 5.4cqw, 76px);
}
.press-clip-featured {
  border-color: transparent;
  color: var(--inverse-ink);
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, #1d3846, var(--inverse-bg) 70%);
}
.press-clip-featured .press-clip-title {
  color: var(--inverse-ink);
}
.press-clip-featured .press-clip-cat {
  color: var(--inverse-accent);
}
.press-clip-featured .press-clip-meta {
  color: var(--inverse-muted);
}
.press-clip-featured .press-logo {
  border-color: transparent;
}
.press-clip-featured .press-clip-link:focus-visible {
  outline-color: var(--inverse-accent);
}
@media (max-width: 760px) {
  .press-cloud .cloud-title {
    width: auto;
  }
  .press-cloud .cloud-title h2 {
    font-size: clamp(36px, 10.4vw, 48px);
  }
  .press-cloud .cloud-item {
    margin-bottom: 18px;
  }
  .press-clip-title {
    -webkit-line-clamp: 4;
  }
}
@keyframes cloud-float {
  0%,
  100% {
    translate: 0 0;
  }
  33% {
    translate: 4px -9px;
  }
  66% {
    translate: -4px -3px;
  }
}

/* Compétences : panorama de logos convergents */
.skills-section {
  overflow: hidden;
  isolation: isolate;
}
.skills-panorama {
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Le décor s’efface par transparence (masque) vers le fond animé du site,
     en haut, en bas et derrière le titre, au lieu d’y peindre des bandes
     couleur papier qui laissaient voir une coupure nette. */
  --panorama-fade: linear-gradient(transparent, rgb(0 0 0 / 45%) 7%, #000 17%, #000 72%, rgb(0 0 0 / 45%) 87%, transparent);
  --panorama-hole: radial-gradient(ellipse 36% 30% at 50% 47%, rgb(0 0 0 / 8%) 30%, #000 100%);
  -webkit-mask-image: var(--panorama-fade), var(--panorama-hole);
  -webkit-mask-composite: source-in;
  mask-image: var(--panorama-fade), var(--panorama-hole);
  mask-composite: intersect;
}
.panorama-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 72% 60% at 50% 48%, #000 40%, transparent);
}
.panorama-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-blue), transparent 68%);
  animation: glow-pulse 9s ease-in-out infinite alternate paused;
}
.glow-blue {
  left: calc(50% - 520px);
  top: -18%;
}
.glow-violet {
  left: calc(50% - 40px);
  top: 4%;
  background: radial-gradient(circle, var(--glow-violet), transparent 68%);
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}
.glow-sage {
  left: calc(50% - 420px);
  top: 32%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, var(--glow-sage), transparent 68%);
  animation-duration: 13s;
}
.drifter {
  position: absolute;
  left: calc(50% + var(--ox));
  top: calc(300px + var(--oy));
  width: var(--size);
  height: var(--size);
  max-width: none;
  object-fit: contain;
  opacity: 0.42;
  filter: saturate(0.85);
  transform: translate(-50%, -50%);
  animation: converge var(--duration) linear var(--delay) infinite paused;
}
:root[data-theme="dark"] .drifter {
  filter: saturate(0.85) brightness(1.2);
}
@keyframes converge {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    opacity: 0;
  }
  8% {
    opacity: 0.62;
  }
  56% {
    opacity: 0.32;
  }
  90%,
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.08) rotate(38deg);
    opacity: 0;
  }
}
@keyframes glow-pulse {
  from {
    opacity: 0.7;
    transform: scale(0.9) translate(0, 0);
  }
  to {
    opacity: 1;
    transform: scale(1.2) translate(20px, 15px);
  }
}
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: stretch;
}
.skill-card.skill-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}
.skill-text {
  flex: 0 0 34%;
}
.skill-text p {
  margin-bottom: 0;
}
.skill-logos {
  flex: 1;
  min-width: 0;
}
.skill-logos .logo-grid {
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
}
.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.skill-top .micro-label {
  color: var(--muted);
}
.skill-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--soft-orange);
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}
.icon-code {
  font-family: Consolas, monospace;
  font-size: 15px;
  letter-spacing: -2px;
}
.skill-card h3 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.skill-card p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: auto;
}
.logo-grid + .tags {
  margin-top: 18px;
}
.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 16px 8px;
  margin-top: auto;
  list-style: none;
}
.logo-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
.logo-tile {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgb(217 221 218 / 90%);
  border-radius: 17px;
  background: var(--tile-bg);
  box-shadow: 0 8px 20px rgb(23 44 56 / 8%);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.logo-tile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
/* Carte IA : 6 logos sur une ligne si la place suffit, sinon 2 lignes de 3
   (évite un logo seul sur la deuxième ligne) */
.skill-card-ai {
  container-type: inline-size;
}
.skill-card-ai .logo-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@container (max-width: 519.98px) {
  .skill-card-ai .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.logo-grid li:hover .logo-tile {
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 14px 26px rgb(23 44 56 / 14%);
}
.logo-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.skill-card-ai {
  border-color: transparent;
  color: #edf2ef;
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, #1f3c4b, #13252f 75%);
}
.skill-card-ai p,
.skill-card-ai .logo-name,
.skill-card-ai .skill-top .micro-label {
  color: var(--inverse-muted);
}
.skill-card-ai .skill-icon {
  background: rgb(103 232 249 / 12%);
  color: #67e8f9;
}
.skill-card-ai .tags li {
  border-color: rgb(196 210 213 / 30%);
}
.skill-card-ai .logo-tile {
  border-color: transparent;
  box-shadow: 0 8px 22px rgb(0 0 0 / 28%);
}
.binary-code {
  position: absolute;
  color: rgb(103 232 249 / 22%);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.32em;
  pointer-events: none;
  user-select: none;
}
.skill-card-ai .binary-code {
  top: 18px;
  right: 18px;
  text-align: right;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* Compétences : carte « Développement & infrastructure » en fenêtre de terminal */
.skill-card.skill-card-term {
  --term-bg: #0f1215;
  --term-bar: #171b1f;
  --term-line: #2a3036;
  --term-fg: #e6e9e7;
  --term-dim: #8b949a;
  --term-green: #4eba65;
  --term-green-hi: #8ee39c;
  padding-top: 70px;
  border-color: var(--term-line);
  color: var(--term-fg);
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgb(78 186 101 / 11%), transparent 65%),
    repeating-linear-gradient(transparent 0 3px, rgb(255 255 255 / 1.6%) 3px 4px),
    var(--term-bg);
  box-shadow: 0 24px 50px rgb(0 0 0 / 26%);
}
.term-card-bar {
  position: absolute;
  inset: 0 0 auto;
  gap: 8px;
  padding: 11px 18px;
  font-size: 12px;
}
.term-card-bar i {
  width: 11px;
  height: 11px;
}
.term-card-bar span {
  margin-left: 10px;
}
.skill-card-term .term-cmd {
  margin: 0 0 14px;
  color: var(--term-dim);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-prompt {
  margin-right: 4px;
  color: var(--term-green);
  font-weight: 700;
}
.skill-card-term .term-cmd-last {
  margin: 18px 0 0;
}
.term-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  vertical-align: -0.22em;
  background: var(--term-green-hi);
}
.motion-on .is-in-view .term-caret {
  animation: term-caret 1.1s steps(1) infinite;
}
@keyframes term-caret {
  50% {
    opacity: 0;
  }
}
.skill-card-term .skill-top {
  margin-bottom: 18px;
}
/* Compétences : carte « Conseil & formation » en dossier de création
   (papier quadrillé, feuille de route, prévisionnel, post-it) */
.skill-card.skill-card-biz {
  --biz-grid: color-mix(in srgb, var(--ink) 6%, transparent);
  container-type: inline-size;
  background:
    linear-gradient(var(--biz-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--biz-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--surface);
}
.skill-card-biz .biz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.biz-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.biz-file svg {
  flex: none;
  color: var(--orange);
}
.biz-stamp {
  padding: 3px 9px;
  border: 1.5px solid var(--orange);
  border-radius: 5px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  rotate: -5deg;
  opacity: 0.85;
}
.skill-card-biz > p:not(.biz-head) {
  margin-bottom: 22px;
}
.biz-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  list-style: none;
  counter-reset: biz-step;
}
.biz-steps::before,
.biz-steps::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 10%;
  height: 2px;
  border-radius: 2px;
}
.biz-steps::before {
  right: 10%;
  background: var(--line);
}
.biz-steps::after {
  width: 40%;
  background: var(--orange);
}
.biz-steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}
.biz-steps li::before {
  counter-increment: biz-step;
  content: counter(biz-step);
  content: counter(biz-step) / "";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
}
.biz-steps .is-done {
  color: var(--ink);
}
.biz-steps .is-done::before {
  content: "✓";
  content: "✓" / "";
  border-color: var(--orange);
  background: var(--orange);
  color: var(--surface);
}
.biz-steps .is-current {
  color: var(--orange);
}
.biz-steps .is-current::before {
  border-color: var(--orange);
  background: var(--soft-orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 16%, transparent);
}
.motion-on .is-in-view .biz-steps .is-current::before {
  animation: biz-pulse 2.4s ease-out infinite;
}
@keyframes biz-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 40%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 11px color-mix(in srgb, var(--orange) 0%, transparent);
  }
}
.biz-chart {
  margin: 0 0 22px;
  padding: 14px 18px 30px;
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}
.biz-chart figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.biz-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  height: 78px;
  padding-inline: 6%;
}
.biz-bars i {
  position: relative;
  height: var(--h);
  font-style: normal;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--orange), color-mix(in srgb, var(--orange) 50%, var(--surface)));
  transform-origin: bottom;
}
.biz-bars b {
  position: absolute;
  left: 50%;
  bottom: -21px;
  translate: -50% 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}
.motion-on .is-in-view .biz-bars i {
  animation: biz-grow 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i) * 0.15s);
}
@keyframes biz-grow {
  from {
    transform: scaleY(0.06);
  }
}
.skill-card-biz .biz-notes {
  gap: 10px;
}
.skill-card-biz .biz-notes li {
  padding: 7px 12px;
  border: 0;
  border-radius: 2px;
  background: #fbe7a1;
  color: #2a2a2a;
  font-weight: 650;
  box-shadow: 0 6px 12px rgb(23 44 56 / 13%);
  rotate: -2deg;
  transition: rotate 0.3s var(--ease-out);
}
.skill-card-biz .biz-notes li:nth-child(2) {
  background: #d8ead2;
  rotate: 1.5deg;
}
.skill-card-biz .biz-notes li:nth-child(3) {
  background: #d9e4f6;
  rotate: -1deg;
}
.skill-card-biz .biz-notes li:nth-child(4) {
  background: #f6d8ca;
  rotate: 2deg;
}
.skill-card-biz .biz-notes li:hover {
  rotate: 0deg;
}
@container (max-width: 360px) {
  .biz-steps li {
    font-size: 10px;
  }
}

/* Compétences : carte « IA & automatisation » façon interface OpenCode
   (fond #161616, panneau #1e1e1e, bleu #5c9cf5 relevés sur opencode.ai) */
.skill-card.skill-card-oc {
  --oc-bg: #161616;
  --oc-panel: #1e1e1e;
  --oc-line: #2b2b2b;
  --oc-fg: #ededed;
  --oc-dim: #808080;
  --oc-blue: #5c9cf5;
  --oc-peach: #fab283;
  border-color: var(--oc-line);
  color: var(--oc-fg);
  background: var(--oc-bg);
  box-shadow: 0 24px 50px rgb(0 0 0 / 26%);
}
.skill-card-oc .oc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--oc-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.skill-card-oc h3 {
  margin-bottom: 14px;
  color: var(--oc-fg);
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: -0.02em;
}
.skill-card-oc h3::before {
  content: "# ";
  content: "# " / "";
  color: var(--oc-dim);
}
.oc-msg {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--oc-peach);
  background: var(--oc-panel);
}
.skill-card-oc .oc-msg p {
  margin: 0;
  color: #c9c9c9;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.skill-card-oc .oc-tool {
  margin: 0 0 16px;
  color: var(--oc-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.oc-tool b {
  color: var(--oc-fg);
  font-weight: 600;
}
.oc-tool-icon {
  color: var(--oc-blue);
}
.skill-card-oc .logo-tile {
  border-color: transparent;
  border-radius: 9px;
  box-shadow:
    0 0 0 1px var(--oc-line),
    0 8px 18px rgb(0 0 0 / 38%);
}
.skill-card-oc .logo-name {
  color: var(--oc-dim);
  font-family: var(--mono);
  font-weight: 500;
}
.skill-card-oc .tags li {
  border-color: var(--oc-line);
  border-radius: 4px;
  background: var(--oc-panel);
  color: var(--oc-fg);
  font-family: var(--mono);
  font-weight: 500;
}
.oc-input {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 2px solid var(--oc-blue);
  background: var(--oc-panel);
  font-family: var(--mono);
}
.oc-cursor {
  width: 0.62em;
  height: 1.25em;
  background: var(--oc-fg);
}
.oc-model {
  color: var(--oc-fg);
  font-size: 13px;
}
.oc-agent {
  color: var(--oc-blue);
}
.oc-sep {
  margin-inline: 8px;
  color: var(--oc-dim);
}
.skill-card-oc .oc-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--oc-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.oc-status b {
  margin-right: -4px;
  color: var(--oc-fg);
  font-weight: 500;
}
.oc-blocks {
  display: inline-flex;
  gap: 2px;
}
.oc-blocks i {
  width: 9px;
  height: 9px;
  background: var(--oc-blue);
  opacity: calc(1 - var(--i) * 0.16);
}
.motion-on .is-in-view .oc-cursor {
  animation: term-caret 1.1s steps(1) infinite;
}
.motion-on .is-in-view .oc-blocks i {
  animation: oc-blocks 1.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.18s);
}
@keyframes oc-blocks {
  0%,
  100% {
    opacity: 0.18;
  }
  35% {
    opacity: 1;
  }
}
/* 10 logos : deux lignes de cinq quand la place suffit */
.skill-card-term .skill-logos {
  container-type: inline-size;
}
.skill-card-term .skill-logos .logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@container (max-width: 400px) {
  .skill-card-term .skill-logos .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  }
}
.skill-card-term .skill-icon {
  border-radius: 9px;
  background: rgb(78 186 101 / 13%);
  color: var(--term-green-hi);
}
.skill-card-term .skill-top .micro-label {
  color: var(--term-dim);
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.skill-card-term h3 {
  color: var(--term-fg);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.skill-card-term .skill-text p:not(.term-cmd) {
  color: #b4bcc0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
}
.skill-card-term .logo-tile {
  border-color: transparent;
  border-radius: 11px;
  box-shadow:
    0 0 0 1px var(--term-line),
    0 8px 18px rgb(0 0 0 / 38%);
}
.skill-card-term .logo-name {
  color: var(--term-dim);
  font-family: var(--mono);
  font-weight: 500;
}
.skill-card-term .tags li {
  border: 1px dashed rgb(78 186 101 / 45%);
  border-radius: 6px;
  color: var(--term-green-hi);
  font-family: var(--mono);
  font-weight: 500;
}
.skill-card-term .tags li::before {
  content: "#";
  content: "#" / "";
  margin-right: 6px;
  opacity: 0.7;
}

/* Formations */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.education-column {
  padding: 30px 32px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.education-column > h3 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.education-list {
  list-style: none;
}
.education-list > li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.education-date {
  align-self: start;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft-orange);
  color: var(--badge-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.education-list h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.education-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--tile-bg);
}
.education-logo img {
  width: 18px;
  height: 18px;
}
.education-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
/* Logo de l’école, dans une tuile blanche à droite (comme les logos du parcours) */
.education-list > li.has-school {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas: "date body school";
}
.has-school > .education-date {
  grid-area: date;
}
.has-school > div {
  grid-area: body;
}
.education-school {
  grid-area: school;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 96px;
  height: 46px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.education-school img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.education-school--round {
  width: 54px;
  height: 54px;
  padding: 4px;
  border-radius: 50%;
}
@media (max-width: 600px) {
  .education-list > li.has-school {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date school"
      "body body";
  }
}

/* Projets */
.projects-section {
  background: linear-gradient(transparent, rgb(237 241 234 / 85%) 10%, rgb(237 241 234 / 85%) 92%, transparent);
}
:root[data-theme="dark"] .projects-section {
  background: linear-gradient(transparent, rgb(19 40 48 / 80%) 10%, rgb(19 40 48 / 80%) 92%, transparent);
}
.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.featured-project + .featured-project {
  margin-top: 26px;
}
.project-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 34px;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--mint);
}
.browser-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  rotate: -1.2deg;
  transition:
    rotate 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.featured-project:nth-of-type(even) .browser-frame {
  rotate: 1.2deg;
}
.featured-project:hover .browser-frame {
  rotate: 0deg;
  transform: scale(1.015);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-neutral);
}
.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0a594;
}
.browser-bar i:nth-child(2) {
  background: #e6cf8f;
}
.browser-bar i:nth-child(3) {
  background: #9cc3a8;
}
.browser-frame img {
  width: 100%;
  height: auto;
}
.project-preview figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 44px;
}
.project-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-copy h3 {
  margin-block: 16px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.project-description {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.7;
}
.project-detail {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}
.project-link:hover,
.talk-card:hover .project-link {
  text-decoration-color: currentColor;
}

/* Carte Repère Expertise, aux couleurs du site présenté */
.repere-card {
  --rp-ink: #0c202e;
  --rp-text: #354659;
  --rp-muted: #56616c;
  --rp-eyebrow: #354659;
  --rp-taupe: #96887d;
  --rp-paper: #f7f5f2;
  --rp-surface: #fff;
  --rp-line: #dcd8d2;
  --rp-line-strong: #c8c2ba;
  --rp-sand: #c1b09e;
  --rp-grid: rgb(12 32 46 / 5.5%);
  --rp-halo: #efe8df;
  --rp-fill: #0c202e;
  --rp-fill-hover: #354659;
  --rp-on-fill: #fff;
  --rp-focus: #956b36;
  --rp-shadow: 0 16px 34px -10px rgb(12 32 46 / 16%);
  --rp-button-shadow: 0 12px 26px -12px rgb(12 32 46 / 60%);
  --rp-light: block;
  --rp-dark: none;
  border-color: var(--rp-line);
  background: var(--rp-surface);
  color: var(--rp-ink);
  box-shadow: var(--rp-shadow);
}
:root[data-theme="dark"] .repere-card {
  --rp-ink: #f2eee8;
  --rp-text: #c3cbd2;
  --rp-muted: #97a3ad;
  --rp-eyebrow: #a9b4be;
  --rp-paper: #0e1c27;
  --rp-surface: #15283a;
  --rp-line: #283b4b;
  --rp-line-strong: #394e60;
  --rp-grid: rgb(255 255 255 / 4%);
  --rp-halo: #1d3144;
  --rp-fill: #c1b09e;
  --rp-fill-hover: #d9cdbf;
  --rp-on-fill: #0c202e;
  --rp-focus: #c1b09e;
  --rp-shadow: 0 16px 34px -10px rgb(0 0 0 / 55%);
  --rp-button-shadow: 0 12px 26px -12px rgb(0 0 0 / 70%);
  --rp-light: none;
  --rp-dark: block;
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .repere-card {
    --rp-ink: #f2eee8;
    --rp-text: #c3cbd2;
    --rp-muted: #97a3ad;
    --rp-eyebrow: #a9b4be;
    --rp-paper: #0e1c27;
    --rp-surface: #15283a;
    --rp-line: #283b4b;
    --rp-line-strong: #394e60;
    --rp-grid: rgb(255 255 255 / 4%);
    --rp-halo: #1d3144;
    --rp-fill: #c1b09e;
    --rp-fill-hover: #d9cdbf;
    --rp-on-fill: #0c202e;
    --rp-focus: #c1b09e;
    --rp-shadow: 0 16px 34px -10px rgb(0 0 0 / 55%);
    --rp-button-shadow: 0 12px 26px -12px rgb(0 0 0 / 70%);
    --rp-light: none;
    --rp-dark: block;
  }
}
.repere-card .project-preview {
  background:
    radial-gradient(circle at 50% 46%, var(--rp-halo), transparent 68%),
    linear-gradient(var(--rp-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--rp-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--rp-paper);
}
.repere-card .browser-frame {
  border-color: var(--rp-line);
  border-radius: 16px;
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow);
}
.repere-card .browser-bar {
  align-items: center;
  border-bottom-color: var(--rp-line);
  background: var(--rp-surface);
}
.repere-card .browser-bar i {
  background: var(--rp-sand);
}
.repere-card .browser-bar i:nth-child(2) {
  background: var(--rp-taupe);
}
.repere-card .browser-bar i:nth-child(3) {
  background: var(--rp-line-strong);
}
.repere-card .browser-url {
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--rp-paper);
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.repere-shot-light,
.repere-logo-light {
  display: var(--rp-light);
}
.repere-shot-dark,
.repere-logo-dark {
  display: var(--rp-dark);
}
.repere-card .project-preview figcaption {
  color: var(--rp-muted);
}
.repere-card .project-copy {
  background: var(--rp-surface);
}
.repere-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rp-eyebrow);
  font-size: 11.2px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.repere-eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--rp-taupe);
}
.repere-card .project-copy h3 {
  margin-block: 22px 20px;
}
.repere-logo {
  width: auto;
  height: clamp(54px, 5vw, 68px);
}
.repere-card .project-description {
  color: var(--rp-text);
}
.repere-card .project-detail {
  color: var(--rp-muted);
}
.repere-card .project-link {
  justify-content: center;
  width: auto;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--rp-fill);
  color: var(--rp-on-fill);
  box-shadow: var(--rp-button-shadow);
  font-size: 14.4px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 0.2s,
    box-shadow 0.25s;
}
.repere-card .project-link:hover {
  background: var(--rp-fill-hover);
}
.repere-card .project-link:focus-visible {
  outline-color: var(--rp-focus);
  outline-offset: 4px;
}

/* Présentations */
.talks {
  margin-top: 88px;
}
.talks-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: end;
  gap: 18px 56px;
  margin-bottom: 36px;
}
.talks-heading .eyebrow {
  grid-column: 1 / -1;
}
.talks-heading h3 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.talks-heading > p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.talks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.talk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    opacity 0.75s var(--ease-out),
    translate 0.75s var(--ease-out);
}
.talk-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.talk-preview {
  margin: 0;
  padding: 26px 26px 6px;
}
.talk-preview img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  rotate: -1.5deg;
  transition: rotate 0.45s var(--ease-out);
}
.talk-card:nth-child(even) .talk-preview img {
  rotate: 1.5deg;
}
.talk-card:hover .talk-preview img {
  rotate: 0deg;
}
.talk-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 30px 28px;
}
.talk-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.talk-meta time {
  color: var(--orange);
}
.talk-copy h4 {
  margin-top: 12px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.talk-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.talk-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  list-style: none;
}
.talk-chapters li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-neutral);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.talk-chapters li:first-child {
  border-color: transparent;
  background: var(--soft-orange);
  color: var(--badge-ink);
}
.talk-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.talk-link:focus-visible {
  outline: none;
}
.talk-link:focus-visible::after {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* Faux terminaux (FAKE-CLI) */
.labs {
  margin-top: 88px;
}

/* Titre en police ASCII « ANSI Shadow », comme l'écran titre du jeu */
.labs .talks-heading h3 {
  grid-column: 1 / -1;
  container-type: inline-size;
}
.lab-ascii {
  --cw: min(6px, (100vw - 48px) / 117);
  --ascii-ink: var(--ink);
  --ascii-chaos: #c23350;
  --ascii-simulator: var(--orange);
  --ascii-shadow: color-mix(in srgb, var(--muted) 55%, transparent);
  display: grid;
  row-gap: calc(var(--cw) * 5 / 3);
}
@supports (width: 1cqi) {
  .lab-ascii {
    --cw: min(6px, 100cqi / 117);
  }
  @container (max-width: 540px) {
    .lab-ascii {
      --cw: min(4.6px, 100cqi / 74);
    }
  }
}
.lab-ascii-line {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--cw) * 5 / 3) calc(var(--cw) * 2);
}
.lab-ascii svg {
  display: block;
  flex: none;
  width: calc(var(--cols) * var(--cw));
  height: calc(var(--cw) * 10);
  overflow: visible;
  fill: currentColor;
}
.lab-ascii .lab-ascii-shadow {
  fill: none;
  stroke: var(--ascii-shadow);
  stroke-width: 1.5;
}
.lab-ascii-ai {
  --cols: 63;
  color: var(--ascii-ink);
}
.lab-ascii-chaos {
  --cols: 41;
  color: var(--ascii-chaos);
}
.lab-ascii-simulator {
  --cols: 73;
  color: var(--ascii-simulator);
}
@media screen {
  :root[data-theme="dark"] .lab-ascii {
    --ascii-chaos: #ff7a8c;
  }
}
.motion-on .is-in-view .lab-ascii-chaos {
  animation: lab-glitch 3.1s steps(1) infinite;
}
@keyframes lab-glitch {
  0%,
  8%,
  59%,
  100% {
    transform: none;
    filter: none;
  }
  6% {
    transform: translateX(-3px);
    filter: drop-shadow(-2px 0 #13b6c9) drop-shadow(2px 0 #e040c8);
  }
  57% {
    transform: translateX(3px) skewX(-8deg);
    filter: drop-shadow(2px 0 #13b6c9) drop-shadow(-2px 0 #e040c8);
  }
}

.lab-card {
  --term-bg: #130c00;
  --term-bar: #1d1300;
  --term-line: #3a2700;
  --term-rule: #5c3d00;
  --term-fg: #ffb641;
  --term-dim: #b97e20;
  --term-orange: #ffcf6b;
  --term-orange-hi: #ffe2a6;
  --term-red: #ff6b80;
  --game-mono: "LVT JetBrains Mono", var(--mono);
  border-color: var(--term-line);
  background: var(--term-bg);
  color: var(--term-fg);
  font-family: var(--game-mono);
  font-variant-ligatures: none;
  text-shadow: 0 0 0.3em color-mix(in srgb, currentColor 45%, transparent);
}
.lab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  corner-shape: inherit;
  background: repeating-linear-gradient(
    to bottom,
    rgb(0 0 0 / 22%) 0 1px,
    transparent 1px 3px
  );
  box-shadow: inset 0 0 90px rgb(0 0 0 / 55%);
  pointer-events: none;
}
.motion-on .lab-card.is-in-view::before {
  animation: lab-crt 5s steps(50) infinite;
}
@keyframes lab-crt {
  50% {
    opacity: 0.82;
  }
}
.lab-preview {
  margin: 0;
  padding: 26px 26px 6px;
}
.terminal-window {
  display: block;
  overflow: hidden;
  border: 1px solid var(--term-rule);
  border-radius: 10px;
  background: var(--term-bg);
  box-shadow:
    0 24px 50px rgb(0 0 0 / 55%),
    0 0 44px rgb(255 182 65 / 10%);
  rotate: var(--tilt, -1.5deg);
  transition: rotate 0.45s var(--ease-out);
}
.lab-card:hover .terminal-window {
  rotate: 0deg;
}
.terminal-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1ch;
  padding: 5px 1.2ch;
  border-bottom: 1px solid var(--term-line);
  background: var(--term-bar);
  color: var(--term-dim);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.terminal-glyph {
  color: var(--term-orange);
}
.terminal-title {
  overflow: hidden;
  color: var(--term-fg);
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
}
.terminal-controls {
  letter-spacing: 0.5ch;
}
.lab-card .talk-meta {
  align-items: center;
  color: var(--term-dim);
  letter-spacing: 0;
  text-transform: none;
}
.lab-card .lab-tag {
  padding: 0 0.6ch;
  border-radius: 2px;
  background: var(--term-orange);
  color: var(--term-bg);
  text-shadow: none;
}
.lab-card h4 {
  color: var(--term-orange);
  font-size: clamp(22px, 2.2vw, 27px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.lab-card .talk-description {
  color: var(--term-fg);
  font-size: 14px;
  line-height: 1.75;
}
.lab-card .talk-link:focus-visible::after {
  outline-color: var(--term-orange);
}
.lab-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 3ch;
  margin-top: auto;
}
.lab-links .project-link {
  width: auto;
  margin-top: 0;
}
.lab-card .lab-links .talk-link {
  justify-content: flex-start;
  gap: 1ch;
  min-height: 0;
  padding: 6px 1.6ch 6px 1.2ch;
  border-radius: 2px;
  background: var(--term-orange);
  color: var(--term-bg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.2s;
}
.lab-card .lab-links .talk-link::before {
  content: "\25B6\FE0E";
}
.lab-card:hover .lab-links .talk-link {
  background: var(--term-orange-hi);
}
.lab-card:has(.lab-repo:hover) .lab-links .talk-link {
  background: var(--term-orange);
}
.lab-repo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--term-dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.lab-repo:hover {
  color: var(--term-fg);
  text-decoration-color: currentColor;
}
.lab-repo:focus-visible {
  outline-color: var(--term-orange);
  outline-offset: 2px;
  border-radius: 2px;
}
.labs-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  text-align: center;
}
.labs-note a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.labs-note a:hover {
  color: var(--orange);
}
kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85em;
}

/* Carte mise en avant : captures du jeu en diaporama */
.lab-card-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  --tilt: -1deg;
}
.lab-card-feature .lab-preview {
  padding: 30px 4px 28px 30px;
}
.lab-card-feature .talk-copy {
  padding: 34px 38px 34px 30px;
}
.lab-card code {
  padding: 0 0.5ch;
  border: 1px solid var(--term-line);
  border-radius: 2px;
  background: var(--term-bar);
  color: var(--term-orange-hi);
  font-family: inherit;
  font-size: 1em;
  white-space: nowrap;
}
.lab-keys {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 8px 3ch;
  margin: 22px 0 26px;
  padding: 0;
  color: var(--term-dim);
  font-size: 12.5px;
  list-style: none;
}
.lab-keys li {
  display: flex;
  align-items: baseline;
  gap: 1ch;
}
.lab-card kbd {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--term-orange);
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
}
.lab-keys .lab-key-ship {
  justify-self: start;
  padding: 0 0.8ch;
  border-radius: 2px;
  background: var(--term-orange);
  color: var(--term-bg);
  font-weight: 700;
  text-shadow: none;
}
.lab-keys .lab-key-ship kbd {
  color: inherit;
}

/* Étapes : la barre tmux du jeu, l'onglet allumé suit la capture affichée */
.cli-steps-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 1ch;
  margin-top: 16px;
  padding: 3px 1ch;
  border: 1px solid var(--term-line);
  border-radius: 4px;
  background: var(--term-bar);
  color: var(--term-dim);
  font-size: 11.5px;
  line-height: 1.7;
}
.cli-session {
  color: var(--term-fg);
}
.cli-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0.4ch;
  margin: 0;
  padding: 0;
  counter-reset: cli-step;
  list-style: none;
}
.cli-steps li {
  padding: 0 0.6ch;
  border-radius: 2px;
  counter-increment: cli-step;
  transition:
    color 0.3s,
    background-color 0.3s;
}
.cli-steps li::before {
  content: counter(cli-step) ":";
}
.cli-steps li.is-active {
  background: var(--term-orange);
  color: var(--term-bg);
  font-weight: 700;
  text-shadow: none;
}
.cli-steps li.is-active::after {
  content: "*";
}
.cli-steps li[data-cli-shot="game-over"].is-active {
  background: var(--term-red);
}

/* L'écran : une capture par étape, en fondu, avec l'allumage du tube */
.cli-stage {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1440 / 900;
  background: var(--term-bg);
}
.cli-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.cli-stage.is-slideshow img {
  opacity: 0;
  transition: opacity 0.45s;
}
.cli-stage.is-slideshow img.is-current {
  opacity: 1;
}
.motion-on .cli-stage.is-slideshow img.is-current {
  animation: cli-crt-on 0.5s var(--ease-out);
}
@keyframes cli-crt-on {
  from {
    filter: brightness(1.7) saturate(0.6);
    scale: 1 0.96;
  }
  to {
    filter: none;
    scale: 1;
  }
}

/* Expérimentations */
.explorations {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 24px;
  margin-top: 56px;
}
.exploration-label {
  grid-row: span 4;
  align-self: center;
}
.exploration-label .micro-label {
  color: var(--muted);
}
.exploration-label h3 {
  margin-top: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.exploration-card {
  display: grid;
  grid-row: span 4;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-rows: subgrid;
  align-items: center;
  gap: 0 12px;
  padding: 14px 14px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 22px 44px -32px rgb(23 44 56 / 55%);
}
.exploration-card > p,
.exploration-card > .tags {
  grid-column: 1 / -1;
  margin-inline: 12px;
}
.exploration-card > p {
  align-self: start;
}
.exploration-card > .tags {
  margin-top: 18px;
}
.exploration-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 12px;
  border-radius: 50%;
  background: var(--action-bg);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.explorations h4 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.explorations p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Expérimentations : fenêtre d'IA locale et baie de serveurs */
.explo-chat,
.explo-rack {
  grid-column: 1 / -1;
  align-self: stretch;
  margin-bottom: 20px;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.explo-chat {
  display: grid;
  align-content: space-between;
  gap: 9px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft-orange) 55%, var(--surface));
}
.explo-chat-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.explo-live {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.explo-local {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}
.explo-ask {
  justify-self: end;
  max-width: 88%;
  padding: 6px 11px;
  border-radius: 12px 12px 3px 12px;
  background: var(--action-bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.explo-answer {
  display: grid;
  gap: 6px;
  width: 80%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  background: var(--surface);
}
.explo-answer i {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  transform-origin: left center;
}
.explo-answer i:nth-child(2) {
  width: 86%;
}
.explo-answer i:nth-child(3) {
  width: 58%;
}
.explo-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.explo-gauge {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
}
.explo-gauge i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--action-bg), var(--orange));
  transform-origin: left center;
  scale: 0.68 1;
}
.explo-rack {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 5px;
  padding: 8px;
  background: #15232b;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    0 16px 30px -20px rgb(0 0 0 / 70%);
  color: #c4d2d6;
  font-weight: 600;
}
:root[data-theme="dark"] .explo-rack {
  background: #0c161b;
}
.explo-unit {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: linear-gradient(180deg, #24363f, #1c2b33);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 8%),
    0 1px 0 rgb(0 0 0 / 35%);
}
.explo-unit b {
  color: #fff;
  font-weight: 700;
}
.explo-unit > span:not([class]) {
  overflow: hidden;
  color: #8ea2a8;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.explo-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgb(74 222 128 / 70%);
}
.explo-load {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
}
.explo-load i {
  width: 4px;
  height: 100%;
  border-radius: 1px;
  background: #f0ac8c;
  transform-origin: center bottom;
  scale: 1 0.45;
}
.explo-load i:nth-child(2) {
  scale: 1 0.8;
}
.explo-load i:nth-child(3) {
  scale: 1 0.6;
}
.explo-load i:nth-child(4) {
  scale: 1 0.95;
}
.explo-load i:nth-child(5) {
  scale: 1 0.5;
}
.explo-disks {
  display: flex;
  gap: 3px;
}
.explo-disks i {
  position: relative;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: #304650;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}
.explo-disks i::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4ade80;
}
.explo-pods {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 2px;
}
.explo-pods i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #4ade80;
}
.explo-pods i:nth-child(2),
.explo-pods i:nth-child(6) {
  background: #f0ac8c;
}
.explo-pods i:nth-child(4) {
  opacity: 0.35;
}
.motion-on .is-in-view .explo-pods i {
  animation: explo-disk 2.6s linear infinite;
}
.motion-on .is-in-view .explo-pods i:nth-child(2n) {
  animation-duration: 3.4s;
  animation-delay: -1.2s;
}
.motion-on .is-in-view .explo-pods i:nth-child(3n) {
  animation-duration: 1.9s;
  animation-delay: -0.5s;
}
.motion-on .is-in-view .explo-live {
  animation: explo-live 2s ease-out infinite;
}
.motion-on .is-in-view .explo-answer i {
  animation: explo-line-1 5s var(--ease-out) infinite;
}
.motion-on .is-in-view .explo-answer i:nth-child(2) {
  animation-name: explo-line-2;
}
.motion-on .is-in-view .explo-answer i:nth-child(3) {
  animation-name: explo-line-3;
}
.motion-on .is-in-view .explo-gauge i {
  animation: explo-gauge 5s ease-in-out infinite;
}
.motion-on .is-in-view .explo-led {
  animation: explo-blink 2.4s linear infinite;
}
.motion-on .is-in-view .explo-unit:nth-child(2) .explo-led {
  animation-duration: 3.1s;
  animation-delay: -0.8s;
}
.motion-on .is-in-view .explo-unit:nth-child(3) .explo-led {
  animation-duration: 4.3s;
  animation-delay: -2s;
}
.motion-on .is-in-view .explo-load i {
  animation: explo-load 1.3s ease-in-out infinite alternate;
}
.motion-on .is-in-view .explo-load i:nth-child(2n) {
  animation-duration: 0.9s;
}
.motion-on .is-in-view .explo-load i:nth-child(3n) {
  animation-delay: -0.6s;
}
.motion-on .is-in-view .explo-load i:nth-child(5) {
  animation-duration: 1.7s;
  animation-delay: -1.1s;
}
.motion-on .is-in-view .explo-unit:nth-child(4) .explo-load i {
  animation-direction: alternate-reverse;
}
.motion-on .is-in-view .explo-disks i::after {
  animation: explo-disk 0.9s linear infinite;
}
.motion-on .is-in-view .explo-disks i:nth-child(2)::after {
  animation-duration: 1.3s;
  animation-delay: -0.3s;
}
.motion-on .is-in-view .explo-disks i:nth-child(3)::after {
  animation-duration: 0.7s;
}
.motion-on .is-in-view .explo-disks i:nth-child(4)::after {
  animation-duration: 1.6s;
  animation-delay: -0.9s;
}
@keyframes explo-live {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent);
  }
  70%,
  to {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 0%, transparent);
  }
}
@keyframes explo-line-1 {
  0%,
  6% {
    scale: 0 1;
  }
  18%,
  90% {
    scale: 1 1;
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes explo-line-2 {
  0%,
  18% {
    scale: 0 1;
  }
  30%,
  90% {
    scale: 1 1;
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes explo-line-3 {
  0%,
  30% {
    scale: 0 1;
  }
  40%,
  90% {
    scale: 1 1;
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes explo-gauge {
  0%,
  5% {
    scale: 0.12 1;
  }
  12% {
    scale: 0.92 1;
  }
  24% {
    scale: 0.78 1;
  }
  36% {
    scale: 0.88 1;
  }
  48%,
  to {
    scale: 0.12 1;
  }
}
@keyframes explo-blink {
  0%,
  7%,
  11%,
  15%,
  to {
    opacity: 1;
  }
  8%,
  12% {
    opacity: 0.3;
  }
}
@keyframes explo-load {
  from {
    scale: 1 0.25;
  }
  to {
    scale: 1 1;
  }
}
@keyframes explo-disk {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  to {
    opacity: 0.2;
  }
}

/* Contact : panneau sombre des cartes « agents » */
.contact-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 112px;
  color: var(--inverse-ink);
  background:
    radial-gradient(circle at 12% 18%, rgb(182 72 44 / 22%), transparent 42%),
    radial-gradient(circle at 88% 85%, rgb(92 132 220 / 20%), transparent 45%),
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--inverse-bg);
}
.contact-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.contact-decor .binary-left {
  right: 4%;
  top: 6%;
  text-align: right;
  mask-image: linear-gradient(transparent, #000 40%, transparent);
}
.contact-decor .binary-right {
  left: 2%;
  bottom: -14px;
  mask-image: linear-gradient(transparent, #000 50%, transparent);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}
.contact-section .eyebrow {
  margin-bottom: 22px;
  color: var(--inverse-accent);
}
.contact-section h2 {
  font-size: clamp(42px, 4.6vw, 66px);
}
.contact-section h2 em {
  color: var(--inverse-accent);
}
.contact-card {
  min-width: 0;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 70px rgb(0 0 0 / 30%);
}
.contact-card > .micro-label {
  color: var(--muted);
}
.contact-email-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.contact-email {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  min-height: 52px;
  margin-top: 0;
  padding-block: 8px;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.contact-email:hover {
  color: var(--orange);
}
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.copy-email {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--muted);
  transition: color 0.2s;
}
.copy-email:hover {
  color: var(--orange);
}
.copy-email svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition:
    opacity 0.2s,
    scale 0.25s var(--ease-out);
}
.copy-email .copy-done,
.copy-email[data-state="done"] .copy-idle {
  opacity: 0;
  scale: 0.6;
}
.copy-email[data-state="done"] .copy-done {
  opacity: 1;
  scale: 1;
}
.copy-email[data-state="done"] {
  color: var(--green);
}
.copy-email[aria-disabled="true"] {
  cursor: wait;
}
.copy-status {
  min-height: 1.7em;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
}
.contact-section a:focus-visible {
  outline-color: var(--inverse-accent);
}
.contact-card a:focus-visible,
.contact-card button:focus-visible {
  outline-color: var(--orange);
  outline-offset: 4px;
}
.contact-card .copy-email:focus-visible {
  outline-offset: -3px;
}

/* Pied de page */
.site-footer {
  padding-block: 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .brand {
  font-size: 25px;
}
.site-footer .brand-dev {
  font-size: 21px;
}
.site-footer p,
.footer-links {
  color: var(--muted);
  font-size: 12px;
}
.site-footer p {
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 27px;
}
.footer-links a {
  padding-block: 10px;
}

/* Mentions légales */
.legal-main {
  max-width: 800px;
  min-height: 70vh;
  padding-block: 64px 85px;
}
.legal-main h1 {
  margin-bottom: 35px;
  font-size: clamp(40px, 5.4vw, 64px);
}
.legal-main h2 {
  margin: 34px 0 14px;
  font-size: 25px;
  letter-spacing: -0.03em;
}
.legal-main p,
.legal-main li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.legal-main ul {
  margin-bottom: 12px;
  padding-left: 22px;
}
.legal-main li {
  margin-bottom: 4px;
}
.legal-main a:not(.text-link) {
  color: var(--ink);
  text-decoration: underline;
}
.legal-notice {
  padding: 17px 21px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft-orange);
}

/* Écrans intermédiaires */
@media (max-width: 1100px) {
  .lab-keys {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-block: 60px 72px;
  }
  .hero-copy {
    max-width: 720px;
  }
  .hero-visual {
    max-width: 560px;
    justify-self: center;
  }
  .about-section {
    gap: 56px;
  }
}
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 64px);
  }
  .explorations {
    grid-template-columns: 1fr 1fr;
  }
  .exploration-label {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-bottom: 24px;
  }
  .exploration-label br {
    display: none;
  }
  .navigation {
    gap: 2px;
    font-size: 12px;
  }
  .navigation > a {
    padding-inline: 9px;
  }
  .navigation .nav-contact {
    gap: 12px;
    padding-inline: 13px;
    margin-left: 4px;
  }
  .press-grid {
    --per-view: 2;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill-card.skill-card-wide {
    gap: 36px;
  }
  .project-copy {
    padding: 32px;
  }
  .project-preview {
    padding: 26px;
  }
  .contact-inner {
    gap: 40px;
  }
  .contact-card {
    padding: 28px;
  }
}
@media (max-width: 860px) {
  .talks-grid {
    grid-template-columns: 1fr;
  }
  .lab-card-feature {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .lab-card-feature .lab-preview {
    order: -1;
    padding: 26px 26px 6px;
  }
  .lab-card-feature .talk-copy {
    padding: 24px 30px 28px;
  }
  .lab-keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .talks-heading {
    grid-template-columns: 1fr;
  }
  .about-section {
    grid-template-columns: 1fr;
  }
  .about-intro {
    position: static;
  }
  .skill-card.skill-card-wide {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .skill-text {
    flex: none;
  }
  .featured-project {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 96px;
  }
  .container {
    width: calc(100% - 48px);
  }
  .site-header {
    padding-top: 8px;
  }
  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 8px 8px 18px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .header-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 13px;
    border-radius: var(--control-radius);
    background: var(--control-bg);
    color: var(--control-ink);
    font-size: 13px;
    font-weight: 600;
    transition:
      background 0.2s,
      box-shadow 0.35s;
  }
  .header-contact:hover {
    background: var(--control-hover);
  }
  .header-actions .theme-toggle {
    margin-left: 0;
  }
  .menu-toggle {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 13px;
  }
  .menu-toggle > [aria-hidden] {
    margin-left: 8px;
  }
  html:not(.js-enabled) .site-header {
    position: static;
  }
  .navigation {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px;
  }
  .navigation .nav-contact {
    margin-left: 0;
  }
  .js-enabled .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .js-enabled .navigation {
    display: none;
  }
  .js-enabled .navigation.is-open {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - 100px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
  .js-enabled .navigation a {
    padding: 13px 12px;
  }
  .js-enabled .navigation .nav-contact {
    justify-content: space-between;
    margin-top: 8px;
    padding: 13px 15px;
  }
  .section {
    padding-block: 84px;
  }
  .section-heading {
    gap: 30px;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-card {
    max-width: 600px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-links {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .photo-cloud {
    aspect-ratio: auto;
    container-type: normal;
  }
  .photo-cloud::before {
    display: none;
  }
  .cloud-title {
    position: static;
    width: auto;
    margin-bottom: 30px;
    text-align: left;
    transform: none;
  }
  .cloud-title .eyebrow {
    justify-content: flex-start;
  }
  .cloud-title h2 {
    font-size: clamp(36px, 10.4vw, 48px);
  }
  .cloud-list {
    columns: 2;
    column-gap: 14px;
  }
  .cloud-item {
    position: static;
    width: auto;
    margin-bottom: 16px;
    break-inside: avoid;
    transform: none;
  }
  .reveal-ready .photo-cloud .cloud-item {
    translate: 0 24px;
    scale: 1;
    transition-delay: calc(var(--i) * 50ms);
  }
  .cloud-photo {
    rotate: calc(var(--tilt) * 0.35);
    animation: none;
  }
  .cloud-photo figcaption {
    font-size: 12px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid > :nth-child(n) {
    --reveal-delay: 0s;
  }
  .drifter,
  .panorama-glow {
    animation: none;
  }
  .drifter {
    opacity: 0.16;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }
  .brand {
    font-size: 27px;
  }
  .brand-dev {
    font-size: 23px;
  }
  .hero {
    gap: 56px;
    padding-block: 36px 48px;
  }
  .hero h1 {
    font-size: clamp(46px, 13.5vw, 72px);
    margin-top: 18px;
  }
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .button {
    gap: 18px;
    padding: 13px 18px;
    font-size: 14px;
  }
  .motion-toggle {
    top: -50px;
  }
  .hero-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    aspect-ratio: auto;
    padding-top: 12px;
  }
  .scene-orbit,
  .scene-network {
    display: none;
  }
  .scene-halo {
    left: 7%;
    top: calc(12px - 7cqw);
    width: 86%;
  }
  .scene-portrait {
    position: relative;
    left: auto;
    top: auto;
    width: 72%;
    margin-top: 18%;
  }
  .scene-name {
    top: auto;
    bottom: -12px;
    left: 50%;
  }
  .scene-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .scene-card {
    position: static;
    width: auto;
  }
  .scene-card-inner {
    height: 100%;
    rotate: none;
    animation: none;
  }
  .scene-card-text strong {
    font-size: 14px;
  }
  .scene-card-text > span {
    font-size: 12px;
  }
  .section {
    padding-block: 68px;
  }
  .section-heading {
    display: block;
    margin-bottom: 32px;
  }
  .section-heading-center {
    display: flex;
  }
  .section-lead {
    max-width: none;
    margin-top: 18px;
    font-size: 15px;
  }
  h2 {
    font-size: clamp(36px, 10.4vw, 48px);
  }
  .section-heading-center h2 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .press-grid {
    --gap: 16px;
    grid-auto-columns: 84%;
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .publications-section .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .carousel-progress {
    width: 80px;
  }
  .carousel-button {
    width: 46px;
    height: 46px;
  }
  .press-card h3 {
    font-size: 20px;
  }
  .publication-links {
    flex-direction: column;
    align-items: stretch;
    margin-top: 32px;
  }
  .timeline {
    padding-left: 26px;
  }
  .timeline::before {
    left: 5px;
  }
  .timeline > li {
    padding: 18px 18px 20px;
  }
  .timeline > li::before {
    left: -27px;
    top: 24px;
  }
  .timeline > li.has-logo > .timeline-date,
  .timeline > li.has-logo > h3,
  .timeline > li.has-logo > .timeline-place {
    padding-right: 0;
  }
  .timeline-logo {
    position: static;
    width: fit-content;
    height: 40px;
    margin-bottom: 12px;
  }
  .timeline-logo img {
    height: 100%;
    max-width: 150px;
  }
  .lab-preview,
  .lab-card-feature .lab-preview {
    padding: 18px 18px 4px;
  }
  .lab-keys {
    grid-template-columns: 1fr;
  }
  .cli-steps-caption {
    font-size: 10.5px;
  }
  .labs {
    margin-top: 64px;
  }
  .timeline h3 {
    font-size: 18px;
  }
  .cloud-list {
    column-gap: 10px;
  }
  .skills-panorama {
    height: 520px;
  }
  .drifter {
    top: calc(250px + var(--oy) * 0.8);
    left: calc(50% + var(--ox) * 0.45);
  }
  .skill-card {
    padding: 24px;
  }
  .education-column {
    padding: 24px 22px 8px;
  }
  .education-list > li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-preview {
    padding: 20px;
  }
  .project-copy {
    padding: 24px;
  }
  .talks {
    margin-top: 64px;
  }
  .talk-preview {
    padding: 18px 18px 4px;
  }
  .talk-copy {
    padding: 20px 22px 24px;
  }
  .explorations {
    grid-template-columns: 1fr;
  }
  .exploration-card + .exploration-card {
    margin-top: 20px;
  }
  .exploration-label h3 {
    font-size: 26px;
  }
  .contact-section {
    padding-block: 72px;
  }
  .contact-section h2 {
    font-size: clamp(36px, 10.4vw, 46px);
  }
  .contact-card {
    padding: 24px;
  }
  .contact-email {
    font-size: clamp(18px, 5vw, 24px);
  }
  .footer-inner {
    row-gap: 14px;
  }
  .footer-links {
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    gap: 15px;
  }
  .legal-main {
    padding-block: 42px 65px;
  }
  .legal-main h2 {
    font-size: 23px;
  }
}
@media (max-width: 420px) {
  .header-actions {
    gap: 6px;
  }
  .header-contact {
    padding-inline: 10px;
    font-size: 12px;
  }
  .menu-toggle {
    width: 44px;
    justify-content: center;
    padding-inline: 8px;
  }
  .menu-toggle .menu-label {
    display: none;
  }
  .menu-toggle > [aria-hidden] {
    margin-left: 0;
  }
  .legal-header-actions {
    gap: 8px;
  }
  .legal-header-actions .text-link {
    gap: 7px;
    font-size: 12px;
  }
  .scene-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }
  .header-inner {
    padding-left: 14px;
  }
  .header-contact {
    padding-inline: 8px;
    font-size: 11px;
  }
  .contact-card {
    padding: 20px;
  }
  .contact-email {
    font-size: 16px;
  }
}

/* Préférences et impression */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
@media (forced-colors: active) {
  .navigation > a[aria-current],
  .header-contact[aria-current] {
    text-decoration: underline 2px;
    text-underline-offset: 5px;
  }
  .nav-indicator {
    display: none;
  }
  .lab-ascii svg {
    color: CanvasText;
  }
  .lab-ascii .lab-ascii-shadow {
    stroke: GrayText;
  }
  .lab-card::before {
    display: none;
  }
  :root .repere-card,
  :root[data-theme] .repere-card {
    --rp-light: block;
    --rp-dark: none;
  }
  .repere-card .project-copy h3 {
    forced-color-adjust: none;
    width: fit-content;
    padding: 6px 10px;
    background: #fff;
  }
  .ambient-background,
  .skills-panorama,
  .scene-orbit,
  .scene-halo,
  .scene-network,
  .scroll-progress,
  .binary-code {
    display: none;
  }
  .motion-switch {
    outline: 1px solid ButtonText;
  }
  .motion-thumb {
    forced-color-adjust: none;
    background: ButtonText;
    color: ButtonFace;
    box-shadow: none;
  }
}
@media print {
  .ambient-background,
  .scroll-progress,
  .motion-toggle,
  #motion-description,
  .theme-toggle,
  #theme-description,
  .skills-panorama,
  .scene-orbit,
  .scene-network,
  .binary-code,
  .carousel-controls,
  .scene-portrait::after {
    display: none !important;
  }
  .press-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .photo-cloud {
    aspect-ratio: auto;
  }
  .photo-cloud::before {
    display: none;
  }
  .cloud-title {
    position: static;
    width: auto;
    margin-bottom: 20px;
    text-align: left;
    transform: none;
  }
  .cloud-list {
    columns: 3;
  }
  .cloud-item {
    position: static;
    width: auto;
    margin-bottom: 14px;
    break-inside: avoid;
    transform: none;
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
  }
  body {
    background: white;
  }
  .site-header {
    position: static;
    padding-top: 0;
  }
  .header-inner {
    box-shadow: none;
    backdrop-filter: none;
  }
  .navigation,
  .header-actions,
  .menu-toggle,
  .skip-link,
  .copy-email,
  .copy-status,
  .footer-links a:last-child {
    display: none !important;
  }
  .container {
    width: 100%;
  }
  .hero,
  .section {
    padding-block: 24px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  h1 {
    font-size: 45px !important;
  }
  h2 {
    font-size: 32px !important;
  }
  .scene-card-inner,
  .cloud-photo,
  .browser-frame,
  .talk-preview img {
    rotate: none !important;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .publications-section,
  .photos-section,
  .projects-section {
    background: white;
  }
  .press-card,
  .cloud-photo,
  .skill-card,
  .featured-project,
  .talk-card,
  .timeline > li,
  .education-column,
  .education-list > li,
  .contact-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .press-card-featured,
  .skill-card-ai,
  .skill-card-term,
  .lab-card {
    background: white;
    color: black;
    border-color: #777;
  }
  .lab-card .talk-description,
  .lab-card .talk-meta {
    color: #333;
    background: white;
  }
  .terminal-window {
    rotate: none !important;
  }
  .lab-card,
  .lab-card * {
    text-shadow: none !important;
  }
  .lab-card::before {
    display: none;
  }
  .lab-card kbd,
  .lab-card code,
  .lab-card h4,
  .lab-card .lab-tag,
  .lab-card .lab-key-ship,
  .lab-card .lab-links .talk-link,
  .lab-card .lab-repo,
  .cli-steps-caption,
  .cli-steps li.is-active {
    border-color: #777;
    background: white;
    color: black;
  }
  .lab-keys,
  .terminal-bar,
  .terminal-title,
  .terminal-glyph {
    color: #333;
  }
  :root .repere-card,
  :root[data-theme] .repere-card {
    --rp-ink: black;
    --rp-text: #333;
    --rp-muted: #333;
    --rp-eyebrow: #333;
    --rp-paper: white;
    --rp-surface: white;
    --rp-halo: white;
    --rp-grid: transparent;
    --rp-fill: white;
    --rp-on-fill: black;
    --rp-light: block;
    --rp-dark: none;
  }
  .repere-card .project-link {
    border: 1px solid #777;
    box-shadow: none;
  }
  .press-card-featured .press-card-top,
  .press-card-featured .press-description,
  .press-card-featured .press-photo figcaption,
  .press-card-featured .press-card-bottom > span,
  .press-card-featured .text-link,
  .skill-card-ai p,
  .skill-card-ai .logo-name,
  .skill-card-ai .micro-label {
    color: #333;
  }
  .contact-section {
    padding-block: 24px;
    background: white;
    color: black;
  }
  .contact-section .eyebrow,
  .contact-actions .text-link {
    color: #333;
  }
  .contact-section h2 em {
    color: #8c3722;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card {
    border: 1px solid #777;
    background: white;
  }
}

/* Coins continus sur les autres cadres arrondis */
@supports (corner-shape: superellipse(1.8)) {
  :root {
    --control-radius: 19px;
    --radius: 32px;
    --radius-lg: 45px;
  }
  .skip-link,
  .header-inner,
  .navigation > a,
  .nav-indicator,
  .nav-indicator::after,
  .menu-toggle,
  .theme-toggle,
  .header-contact,
  .button,
  .value-badge,
  .motion-toggle,
  .press-grid,
  .publication-button,
  .publication-favicon,
  .timeline > li,
  .timeline-logo,
  .cloud-photo,
  .cloud-link,
  .press-clip-link,
  .press-clip-photo,
  .press-logo,
  .skill-card,
  .biz-chart,
  .logo-tile,
  .education-column,
  .education-logo,
  .education-school:not(.education-school--round),
  .featured-project,
  .browser-frame,
  .talk-card,
  .talk-preview img,
  .talk-link::after,
  .terminal-window,
  .exploration-card,
  .explo-chat,
  .explo-rack,
  .contact-card,
  .copy-email,
  .legal-notice,
  .error-visual,
  .case-hero-preview,
  .case-hero-preview a,
  .case-hero-preview img,
  .case-capture-link,
  .case-screen-window,
  .case-screen-window img,
  .case-technical-note {
    corner-shape: superellipse(1.8);
  }
  .header-inner {
    border-radius: 32px;
  }
  .navigation > a,
  .nav-indicator,
  .cloud-link,
  .press-clip-link,
  .press-clip-photo {
    border-radius: 16px;
  }
  .value-badge {
    border-radius: 0.8em;
  }
  .press-grid:focus-visible {
    border-radius: 45px;
  }
  .publication-favicon {
    border-radius: 10px;
  }
  .timeline > li,
  .exploration-card {
    border-radius: 35px;
  }
  .explo-chat,
  .explo-rack {
    border-radius: 22px;
  }
  .timeline-logo,
  .education-school:not(.education-school--round) {
    border-radius: 19px;
  }
  .cloud-photo {
    border-radius: 26px;
  }
  .press-clip-meta .press-logo {
    border-radius: 11px;
  }
  .biz-chart,
  .browser-frame,
  .talk-preview img {
    border-radius: 22px;
  }
  .skill-card-oc .logo-tile,
  .education-logo {
    border-radius: 14px;
  }
  .skill-card-term .logo-tile {
    border-radius: 18px;
  }
  .terminal-window {
    border-radius: 19px;
  }
}
@supports (corner-shape: superellipse(1.8)) {
  @media (max-width: 800px) {
    .js-enabled .navigation.is-open {
      border-radius: 32px;
    }
  }
}
