/* =========================================================================
   CV - Jérémie Kassianoff
   Charte graphique reprise de cybernetics.fr :
   DM Sans, brand #092f51, blueLight #4d8ec3, hero #061a2e, radius 0,
   boutons pill, titres font-black uppercase, préfixes monospace "//" et ">".
   ========================================================================= */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* Palette Cybernetics */
  --brand: #092f51;
  --brand-50: #eef5fb;
  --brand-600: #072744;

  --blue-300: #9fc3df;
  --blue-400: #75a8d1;
  --blue-500: #4d8ec3;
  --blue-600: #3773a5;

  --hero-bg: #061a2e;
  --brand-rgb: 9, 47, 81;
  --blue-500-rgb: 77, 142, 195;
  --blue-300-rgb: 159, 195, 223;
  --cta-bg: #0d1117;

  /* Thème sombre - c'est le défaut du site, indépendamment du réglage système :
     la préférence `prefers-color-scheme` n'est volontairement pas consultée.
     Seule la bascule du visiteur (mémorisée dans localStorage) peut passer en
     clair, via [data-theme="light"] plus bas. */
  --bg: #171717;
  --bg-soft: #121212;
  --bg-elev: #1c1c1c;
  --text: #f5f5f5;
  --text-strong: #ffffff;
  --muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(159, 195, 223, 0.35);
  --accent: var(--blue-300);
  --chip-bg: rgba(77, 142, 195, 0.12);
  --chip-text: var(--blue-300);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -18px rgba(0, 0, 0, 0.9);

  --maxw: 1120px;
  --nav-h: 68px;
}

/* Thème clair - uniquement sur choix explicite du visiteur. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-elev: #ffffff;
  --text: #0a0a0a;
  --text-strong: var(--brand);
  --muted: #525252;
  --border: rgba(9, 47, 81, 0.14);
  --border-strong: rgba(9, 47, 81, 0.28);
  --accent: var(--brand);
  --chip-bg: var(--brand-50);
  --chip-text: var(--brand-600);
  --shadow: 0 1px 2px rgba(9, 47, 81, 0.06), 0 12px 28px -18px rgba(9, 47, 81, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  border-radius: 0;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(var(--blue-500-rgb), 0.9);
}
.btn--primary:hover {
  box-shadow: 0 12px 30px -12px rgba(var(--blue-500-rgb), 1);
}

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.iconbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.iconbtn svg {
  width: 18px;
  height: 18px;
}
/* Le bouton affiche la CIBLE du clic : soleil en thème sombre (donc par
   défaut), lune une fois passé en clair. */
.iconbtn .icon-moon {
  display: none;
}
.iconbtn .icon-sun {
  display: initial;
}
:root[data-theme="light"] .iconbtn .icon-moon {
  display: initial;
}
:root[data-theme="light"] .iconbtn .icon-sun {
  display: none;
}

/* ------------------------------------------------------------ navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 0.9375rem;
  color: var(--text-strong);
  flex: 0 0 auto;
}
.brand__mark {
  fill-rule: evenodd;
  clip-rule: evenodd;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
}
.brand__name span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.langswitch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
/* Ce sont de vrais liens vers « / » et « /en/ » : indexables et utilisables
   sans JavaScript, mais dessinés comme des boutons. */
.langswitch a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 13px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.langswitch a:hover {
  color: var(--text);
}
.langswitch a[aria-current="page"] {
  background: var(--blue-600);
  color: #fff;
}
:root[data-theme="light"] .langswitch a[aria-current="page"] {
  background: var(--brand);
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.burger svg {
  width: 18px;
  height: 18px;
}

.noscript {
  padding: 32px 24px;
}

/* ------------------------------------------------------------------ hero */
/* Le hero occupe exactement l'écran restant sous la barre (sticky, donc dans
   le flux) : le bloc titre est aligné en haut, le bandeau de chiffres poussé
   en bas par `margin-top: auto`. Tout le hero est ainsi lisible sans scroll.
   `svh` et non `vh` : sur mobile, `vh` compte la barre d'URL rétractable et
   ferait dépasser le bandeau sous la ligne de flottaison. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #fff;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 3vw, 44px);
  isolation: isolate;
}

.hero > .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__dots,
.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__dots {
  opacity: 0.1;
}
.hero__circuit {
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 26%, transparent 48%);
  mask-image: linear-gradient(to right, black 0%, black 26%, transparent 48%);
}
.hero__glow-brand {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 65%;
  height: 120%;
  background: radial-gradient(ellipse at 40% 45%, rgba(var(--brand-rgb), 0.95) 0%, transparent 68%);
}
.hero__glow-blue {
  position: absolute;
  top: -10%;
  right: -12%;
  width: 62%;
  height: 120%;
  background: radial-gradient(ellipse at 65% 40%, rgba(var(--blue-500-rgb), 0.28) 0%, transparent 66%);
}
.hero__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(var(--blue-300-rgb), 0.45) 38%,
    rgba(var(--blue-300-rgb), 0.45) 62%,
    transparent 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* Marges resserrées : sans elles, le bandeau de chiffres sortait de l'écran. */
.hero h1 {
  margin-bottom: 10px;
}
.hero__role {
  margin-bottom: 12px;
}
.hero__tagline {
  margin-bottom: 18px;
}
.hero__meta {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 14px;
}
.hero h1 .accent {
  color: var(--blue-300);
}

.hero__role {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}
.hero__tagline {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  margin-bottom: 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 28px;
}
.hero__meta > a,
.hero__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.hero__meta a:hover {
  border-color: rgba(var(--blue-300-rgb), 0.6);
  color: #fff;
  background: rgba(var(--blue-500-rgb), 0.16);
}
.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--blue-300);
  flex: 0 0 auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.portrait {
  position: relative;
  width: clamp(170px, 20vw, 220px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(var(--blue-300-rgb), 0.3);
  background: linear-gradient(145deg, rgba(var(--blue-500-rgb), 0.22), rgba(var(--brand-rgb), 0.55));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__mono {
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.9);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* bandeau statistiques */
.stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  /* `auto` : le bandeau absorbe l'espace libre et se cale en bas du hero.
     Le minimum garantit une respiration quand le contenu remplit l'écran. */
  margin-top: auto;
  padding-top: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stats > * + * {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.stat__value {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--blue-300);
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}
/* Un libellé peut contenir un lien (la démo vidéo) : il doit se voir comme
   tel, le bandeau étant par ailleurs du texte non cliquable. */
.stat__label a {
  color: var(--blue-300);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.stat__label a:hover {
  color: #fff;
}

/* -------------------------------------------------------------- sections */
.section {
  padding: clamp(56px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--border);
}
.section--soft {
  background: var(--bg-soft);
}

.section__head {
  max-width: 68ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--blue-500-rgb), 0.22);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section__title::before {
  content: "//";
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  opacity: 0.7;
  font-weight: 500;
}
.section__sub {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 0;
}

/* profil */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.profile-text p {
  font-size: 1.0625rem;
  color: var(--muted);
}
.profile-text p:first-child {
  font-size: 1.1875rem;
  color: var(--text);
  font-weight: 400;
}
.profile-text p:last-child {
  margin-bottom: 0;
}

.factcard {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  padding: 26px;
}
.factcard h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.factlist li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}
.factlist li:first-child {
  border-top: 0;
  padding-top: 0;
}
.factlist svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 auto;
  margin-top: 2px;
}
.factlist span {
  color: var(--muted);
}
.factlist strong {
  color: var(--text);
  font-weight: 600;
}

/* compétences */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.skillcard {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.skillcard:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.skillcard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.skillcard__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: var(--chip-bg);
  color: var(--accent);
}
.skillcard__icon svg {
  width: 20px;
  height: 20px;
}
.skillcard h3 {
  font-size: 1rem;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  display: inline-block;
  padding: 5px 11px;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}

/* expériences */
.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}
.xp {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: clamp(20px, 3vw, 30px);
  padding-left: clamp(24px, 3vw, 34px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.xp::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue-500), rgba(var(--blue-500-rgb), 0.05));
  opacity: 0.65;
}
.xp:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.xp:hover::before {
  opacity: 1;
}

.xp__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 4px;
}
.xp__company {
  font-size: 1.1875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.xp__period {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.xp__role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2px;
}
.xp__context {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.xp__bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.xp__bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  opacity: 0.7;
  font-size: 0.8125rem;
}
.xp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.xp__tags .chip {
  background: var(--chip-bg);
  color: var(--chip-text);
  border-color: transparent;
  font-size: 0.75rem;
}
.tag-now {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
:root[data-theme="light"] .tag-now {
  color: #059669;
}

/* certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}
.cert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 18px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cert:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Cartes liées à l'article de certification sur cybernetics.fr. */
a.cert {
  position: relative;
  color: inherit;
}
a.cert::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
a.cert:hover::after,
a.cert:focus-visible::after {
  opacity: 1;
}
a.cert:hover .cert__org {
  color: var(--accent);
}
.cert__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--chip-bg);
  color: var(--accent);
}
.cert__icon svg {
  width: 18px;
  height: 18px;
}
.cert__org {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}
.cert__label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}
.cert--pending {
  border-style: dashed;
}
.cert--pending .cert__icon {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}
.cert__pending {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

/* au-delà du CV */
.beyond-intro {
  border-left: 4px solid rgba(var(--blue-500-rgb), 0.45);
  background: var(--chip-bg);
  padding: 18px 22px;
  color: var(--text);
  margin-bottom: 32px;
}
.beyond-intro p {
  margin: 0;
}
.beyond-intro .kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.beyond-list {
  display: grid;
  gap: 0;
}
.beyond-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.beyond-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.beyond-item__year {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-top: 3px;
}
.beyond-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  gap: 9px;
}
.beyond-item h3::before {
  content: ">";
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: var(--accent);
  opacity: 0.6;
  font-weight: 500;
}
.beyond-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.beyond-outro {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.beyond-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.875rem;
}
.beyond-more strong {
  color: var(--text);
  font-weight: 600;
}
.beyond-more a {
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--blue-500-rgb), 0.4);
}
.beyond-more a:hover {
  border-bottom-color: currentColor;
}

/* contact */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--cta-bg);
  color: #fff;
  padding: clamp(56px, 7vw, 90px) 0;
  border-bottom: 0;
}
.contact .section__title {
  color: var(--blue-300);
  border-bottom-color: rgba(var(--blue-300-rgb), 0.25);
}
.contact .section__sub {
  color: rgba(255, 255, 255, 0.7);
}
.contact__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 85% 20%, rgba(var(--blue-500-rgb), 0.22) 0%, transparent 65%);
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact__list li:first-child {
  border-top: 0;
}
.contact__list svg {
  width: 19px;
  height: 19px;
  color: var(--blue-300);
  flex: 0 0 auto;
}
.contact__list .k {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}
.contact__list .v {
  font-size: 0.9375rem;
  color: #fff;
}
.contact__list a.v:hover {
  color: var(--blue-300);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* pied de page */
.footer {
  background: var(--hero-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 30px 0;
  font-size: 0.8125rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand img {
  height: 26px;
  width: auto;
  opacity: 0.9;
}
/* ------------------------------------------------------- bloc de confiance */
/* Discret par construction : ce sont des faits vérifiables, pas un argument
   commercial. Chaque ligne n'apparaît que si le build l'a mesurée. */
.trust {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.trust__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.trust__links a {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.trust__links a:hover {
  color: #fff;
}
.trust__date {
  color: rgba(255, 255, 255, 0.45);
}
.footer strong {
  color: #fff;
  font-weight: 600;
}
.footer a {
  color: var(--blue-300);
}
.footer a:hover {
  color: #fff;
}

/* ------------------------------------------------- lanceur de chat */
/* Intercom n'est chargé qu'au clic : ce bouton est le seul élément présent
   tant que le visiteur n'a rien demandé. Il s'efface ensuite, le messenger
   installant son propre lanceur au même endroit. */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(var(--blue-300-rgb), 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--blue-600) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(var(--brand-rgb), 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(var(--brand-rgb), 0.95);
}
.chat-launcher svg {
  width: 24px;
  height: 24px;
}
.chat-launcher.is-loading {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 560px) {
  .chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
  .chat-launcher svg {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher:hover {
    transform: none;
  }
}

/* apparition au scroll */
/* Le HTML est pré-rendu au build : sans JavaScript, la page est complète et
   doit rester visible. L'animation est donc conditionnée à `html.js`, posé
   par theme.js avant le premier rendu - pas de texte masqué à un visiteur
   sans JS, ni aux yeux d'un moteur de recherche. */
.js .reveal {
  /* cv.js ne pose que le rang (--reveal-index) ; la durée d'un pas
     et le calcul du retard restent ici. */
  --reveal-index: 0;
  --reveal-step: 45ms;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--reveal-index) * var(--reveal-step));
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
  .btn:hover,
  .skillcard:hover,
  .cert:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
  }
  .nav__links a.is-active {
    border-bottom-color: var(--accent);
  }
  .burger {
    display: inline-flex;
    order: 3;
  }
  .nav__actions {
    margin-left: auto;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__aside {
    order: -1;
    align-items: flex-start;
  }
  .profile-grid,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  /* Le monogramme mangerait tout l'espace au-dessus de la ligne de flottaison. */
  .hero__aside {
    display: none;
  }
  /* Quatre colonnes seraient illisibles ici : deux lignes de deux, toujours
     dans l'écran puisque le monogramme est masqué au-dessus. */
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }
  .stats > :nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .beyond-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .nav__actions .btn--primary span {
    display: none;
  }
  .nav__actions .btn--primary {
    padding: 11px 14px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }
  .brand__name {
    display: none;
  }
  .hero__meta a,
  .hero__meta span {
    width: 100%;
  }
}

/* ================================================================ IMPRESSION
   Rendu A4 propre : décor, navigation et interactions retirés, couleurs
   ramenées au noir sur blanc, blocs insécables. Seule la langue affichée
   est imprimée puisque le rendu est mono-langue côté DOM.
   ========================================================================= */
@page {
  size: A4;
  margin: 14mm 14mm 12mm;
}

@media print {
  /* `:root[data-theme]` en plus de `:root` : sans lui, une page imprimée après
     bascule manuelle gardait les tokens de l'écran, le sélecteur d'attribut
     étant plus spécifique. */
  :root,
  :root[data-theme] {
    --bg: #fff;
    --bg-soft: #fff;
    --bg-elev: #fff;
    --text: #111;
    --text-strong: #092f51;
    --muted: #333;
    --border: #d8d8d8;
    --border-strong: #b8b8b8;
    --accent: #092f51;
    --chip-bg: #fff;
    --chip-text: #333;
    --shadow: none;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10pt;
    line-height: 1.42;
  }

  /* Un seul mécanisme : les blocs à masquer portent `no-print` dans le HTML. */
  .no-print {
    display: none !important;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* en-tête du document */
  .hero {
    min-height: 0;
    display: block;
    background: #fff !important;
    color: #111 !important;
    padding: 0 0 10px;
    border-bottom: 2px solid #092f51;
    break-inside: avoid;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: flex-start;
  }
  .hero h1 {
    color: #092f51 !important;
    font-size: 22pt;
    text-shadow: none;
    margin-bottom: 3px;
  }
  .hero h1 .accent {
    color: #092f51 !important;
  }
  .hero__role {
    font-size: 11.5pt;
    color: #333 !important;
    margin-bottom: 6px;
  }
  .hero__tagline {
    font-size: 9pt;
    color: #444 !important;
    max-width: none;
    margin-bottom: 8px;
  }
  .hero__meta {
    gap: 2px 14px;
    margin-bottom: 0;
  }
  .hero__meta > a,
  .hero__meta > span {
    border: 0 !important;
    background: none !important;
    color: #333 !important;
    padding: 0;
    font-size: 8.5pt;
  }
  .hero__meta svg {
    color: #092f51 !important;
    width: 11px;
    height: 11px;
  }
  .hero__aside {
    display: flex;
    order: 0;
  }
  .portrait {
    width: 78px;
    border-color: #d8d8d8;
    background: #f2f5f9 !important;
  }
  .portrait__mono {
    color: #092f51 !important;
    font-size: 22pt;
  }
  .portrait::after {
    display: none;
  }

  .stats {
    border-top: 1px solid #d8d8d8;
    margin-top: 10px;
    padding-top: 8px;
    gap: 10px;
    break-inside: avoid;
  }
  .stats > * + * {
    padding-left: 0;
    border-left: 0;
  }
  .stat__value {
    color: #092f51 !important;
    font-size: 13pt;
  }
  .stat__label {
    color: #555 !important;
    font-size: 7.5pt;
    margin-top: 2px;
  }
  .stat__label a {
    color: #555 !important;
    font-weight: 400;
    text-decoration: none !important;
  }

  .section {
    padding: 12px 0 4px;
    border-bottom: 0;
    break-inside: auto;
  }
  .section__head {
    margin-bottom: 10px;
    break-after: avoid;
  }
  .section__title {
    font-size: 11pt;
    color: #092f51 !important;
    border-bottom: 1px solid #c9d6e3;
    padding-bottom: 4px;
    letter-spacing: 0.06em;
  }
  .section__sub {
    font-size: 8.5pt;
    margin-top: 5px;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
  }
  .profile-text p,
  .profile-text p:first-child {
    font-size: 9pt;
    color: #333 !important;
    margin-bottom: 6px;
  }
  .factcard {
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    box-shadow: none;
  }
  .factlist li {
    padding: 5px 0;
    font-size: 8.5pt;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .skillcard {
    padding: 10px 12px;
    break-inside: avoid;
    border-color: #e0e0e0;
  }
  .skillcard__head {
    margin-bottom: 7px;
    gap: 8px;
  }
  .skillcard__icon {
    width: 22px;
    height: 22px;
    background: #eef5fb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .skillcard__icon svg {
    width: 13px;
    height: 13px;
  }
  .skillcard h3 {
    font-size: 9pt;
  }
  .chip {
    font-size: 7.5pt;
    padding: 1px 6px;
    border-color: #dcdcdc;
  }

  .timeline {
    gap: 8px;
  }
  .xp {
    padding: 8px 10px 8px 12px;
    border-color: #e2e2e2;
    break-inside: avoid;
  }
  .xp::before {
    width: 2px;
    background: #092f51 !important;
    opacity: 1;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .xp__company {
    font-size: 10.5pt;
  }
  .xp__period,
  .xp__context {
    font-size: 8pt;
    color: #555 !important;
  }
  .xp__role {
    font-size: 9.5pt;
    color: #092f51 !important;
  }
  .xp__context {
    margin-bottom: 5px;
  }
  .xp__bullets li {
    font-size: 8.5pt;
    margin-bottom: 2px;
    padding-left: 12px;
    color: #333 !important;
  }
  .xp__tags {
    margin-top: 6px;
  }
  .tag-now {
    display: none;
  }

  .certs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .cert {
    padding: 7px 9px;
    gap: 8px;
    break-inside: avoid;
    border-color: #e2e2e2;
  }
  .cert__icon,
  a.cert::after {
    display: none;
  }
  .cert__org {
    font-size: 8.5pt;
  }
  .cert__label {
    font-size: 8pt;
  }

  #au-dela {
    break-before: page;
  }
  .beyond-intro {
    background: #f4f8fb !important;
    border-left-color: #092f51;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 9pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .beyond-item {
    padding: 10px 0;
    gap: 14px;
    grid-template-columns: 110px minmax(0, 1fr);
    break-inside: avoid;
  }
  .beyond-item h3 {
    font-size: 9.5pt;
    margin-bottom: 3px;
  }
  .beyond-item p,
  .beyond-outro {
    font-size: 8.5pt;
  }
  .beyond-item__year {
    font-size: 8.5pt;
  }

  .contact {
    background: #fff !important;
    color: #111 !important;
    padding: 12px 0 0;
    break-inside: avoid;
  }
  .contact__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .contact .section__sub {
    color: #444 !important;
  }
  .contact__list li {
    padding: 4px 0;
    border-top-color: #e2e2e2;
  }
  .contact__list .k {
    color: #777 !important;
  }
  .contact__list .v {
    color: #111 !important;
    font-size: 8.5pt;
  }
  .contact__list svg {
    color: #092f51 !important;
    width: 13px;
    height: 13px;
  }

  a {
    text-decoration: none !important;
  }
}
