/* ==========================================================================
   Site CV — Clinical Data Manager
   Palette, typographie et mise en page. Les couleurs se modifient ici.
   ========================================================================== */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f6f8f9;      /* fond, blanc froid */
  --surface: #ffffff;
  --ink: #15232d;        /* texte principal, bleu ardoise profond */
  --muted: #56656f;
  --line: #d5dee3;
  --accent: #1e5a72;     /* bleu pétrole */
  --accent-2: #3f8aa6;   /* pétrole clair, pour les états actifs sur fond sombre */
  --accent-soft: #e3eef2;
  --on-dark: #e9eff2;
  --on-dark-muted: #a9b8c1;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.2vw, 4.75rem);

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }   /* fondu entre FR et EN */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ----- Barre de progression de lecture ---------------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ----- En-tête ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* le flou est porté par un pseudo-élément pour ne pas piéger le menu mobile en position fixe */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  position: relative; color: var(--muted); text-decoration: none; font-size: var(--step--1);
  padding: .4rem 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; font-size: var(--step--1); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang a, .lang span { padding: .2rem .7rem; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); background: var(--accent-soft); }
.lang span { background: var(--ink); color: var(--paper); }

.menu-btn { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span + span { margin-top: 6px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 56rem) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 19;
    flex-direction: column; gap: 0; padding: 2rem var(--gutter);
    background: var(--paper);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
  .nav a { font: 400 var(--step-3)/1.2 var(--serif); color: var(--ink); padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--accent); }
  .menu-open { overflow: hidden; }
  .brand { font-size: var(--step-0); }
}

/* ----- Boutons ----------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.35rem; border-radius: 4px; cursor: pointer;
  font: 500 var(--step--1)/1 var(--sans); text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { border-color: var(--accent); }
.btn svg { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

/* ----- Accueil ----------------------------------------------------------- */
.hero { position: relative; isolation: isolate; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::before {
  /* trame de points discrète, comme une grille de saisie */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); gap: 3rem 5rem; align-items: center; }
.hero h1 { font: 400 var(--step-4)/1.02 var(--serif); letter-spacing: -0.025em; margin: 0 0 1rem; }
.hero .role { font-size: var(--step-1); color: var(--accent); font-weight: 500; margin: 0 0 1.5rem; }
.hero .lede { font: 400 var(--step-2)/1.35 var(--serif); max-width: 32ch; margin: 0 0 2rem; }
.hero .facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--muted); font-size: var(--step--1); margin: 0 0 2.5rem; padding: 0; list-style: none; }
.hero .facts strong { color: var(--ink); font-weight: 600; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Photo */
.portrait { position: relative; z-index: 0; margin: 0; justify-self: end; width: 100%; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, var(--accent) 0%, var(--ink) 100%);
  display: grid; place-items: center;
}
.portrait-frame .initials { font: 400 clamp(3rem, 7vw, 5rem)/1 var(--serif); color: var(--on-dark); letter-spacing: .02em; }
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  /* cadre décalé qui glisse au défilement */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px;
  border: 1px solid var(--accent); transform: translate(14px, 14px);
}
@supports (animation-timeline: scroll()) {
  .portrait::after { animation: frame linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  .portrait-frame img, .portrait-frame .initials { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes frame { from { transform: translate(14px, 14px); } to { transform: translate(-14px, 30px); } }
  @keyframes drift { from { transform: none; } to { transform: scale(1.08) translateY(4%); } }
}

/* Entrée du haut de page : une seule séquence orchestrée */
.js .hero .intro-seq > * { opacity: 0; transform: translateY(14px); }
.js .hero.is-in .intro-seq > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero.is-in .intro-seq > :nth-child(2) { transition-delay: .08s; }
.js .hero.is-in .intro-seq > :nth-child(3) { transition-delay: .16s; }
.js .hero.is-in .intro-seq > :nth-child(4) { transition-delay: .24s; }
.js .hero.is-in .intro-seq > :nth-child(5) { transition-delay: .32s; }
.js .hero .portrait-frame { clip-path: inset(100% 0 0 0); }
.js .hero.is-in .portrait-frame { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .2s; }

/* Cycle de vie des données */
.lifecycle { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.lifecycle h2 { font: 500 var(--step--1)/1.4 var(--sans); color: var(--muted); margin: 0 0 1.75rem; }
.lifecycle ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  position: relative; counter-reset: stage;
}
.lifecycle ol::before {
  content: ""; position: absolute; left: 0; right: 0; top: .45rem;
  height: 1px; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--draw, 1));
}
.lifecycle li { position: relative; padding-top: 2rem; counter-increment: stage; }
.lifecycle li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  transition: background .3s, transform .3s var(--ease);
}
.lifecycle li:hover::before { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.lifecycle li:last-child::before { background: var(--accent); border-color: var(--accent); }
.lifecycle h3 { font: 500 var(--step-1)/1.25 var(--serif); margin: 0 0 .4rem; }
.lifecycle h3::before { content: counter(stage) ". "; color: var(--muted); }
.lifecycle p { margin: 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }

.js .lifecycle ol { --draw: 0; }
.js .lifecycle li { opacity: 0; transform: translateY(6px); }
.js .lifecycle.is-in ol { --draw: 1; }
.js .lifecycle.is-in ol::before { transition: transform 1.2s cubic-bezier(.6,.05,.2,1) .4s; }
.js .lifecycle.is-in li { opacity: 1; transform: none; transition: opacity .5s, transform .5s; }
.js .lifecycle.is-in li:nth-child(1) { transition-delay: .55s; }
.js .lifecycle.is-in li:nth-child(2) { transition-delay: .85s; }
.js .lifecycle.is-in li:nth-child(3) { transition-delay: 1.15s; }
.js .lifecycle.is-in li:nth-child(4) { transition-delay: 1.45s; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; justify-self: start; width: min(10rem, 42vw); }
  .lifecycle ol { grid-template-columns: 1fr; gap: 1.5rem; padding-left: 2rem; }
  .lifecycle ol::before { left: .45rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--draw, 1)); }
  .lifecycle li { padding-top: 0; }
  .lifecycle li::before { left: -2rem; top: .35rem; }
}

/* ----- Sections ---------------------------------------------------------- */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section-rule { border-top: 1px solid var(--line); }
.section .wrap { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem 4rem; }
.section-title-col { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.section-title { font: 400 var(--step-3)/1.1 var(--serif); margin: 0; letter-spacing: -0.015em; }
.section-title::after {
  content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 1.1rem;
  background: var(--accent); transform-origin: left;
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.1em; }
.prose .intro { font: 400 var(--step-2)/1.4 var(--serif); }
@media (max-width: 56rem) {
  .section .wrap { grid-template-columns: minmax(0, 1fr); }
  .section-title-col { position: static; }
}

/* Apparition au défilement, pilotée par la position de scroll quand le navigateur le permet */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .section-title::after { animation: line linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  @keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@supports not (animation-timeline: view()) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Expérience : rail vertical qui se remplit au fil de la lecture */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.25rem; max-width: 46rem; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: .3rem; top: .6rem; bottom: .6rem; width: 1px;
}
.timeline::before { background: var(--line); }
.timeline::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.job { position: relative; padding: 0 0 2.75rem; margin: 0 0 2.75rem; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -2.25rem; top: .55rem; z-index: 1;
  width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.job.is-passed::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: baseline; }
.job h3 { font: 500 var(--step-2)/1.2 var(--serif); margin: 0; }
.job .when { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.job .where { margin: .3rem 0 1rem; color: var(--accent); font-weight: 500; }
.job .roles { margin: -.5rem 0 1rem; color: var(--muted); font-size: var(--step--1); }
.job ul { margin: 0; padding-left: 1.1rem; }
.job li { margin-bottom: .4rem; }
.job li::marker { color: var(--accent); }
.job .result {
  margin-top: 1.25rem; padding: 1rem 1.2rem; border-left: 2px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 4px 4px 0; font-size: var(--step--1);
}

/* Compétences */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 2.5rem 3rem; max-width: 48rem; }
.skills h3 { font: 500 var(--step-1)/1.3 var(--serif); margin: 0 0 .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--ink); }
.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li {
  position: relative; padding: .4rem 0; border-bottom: 1px solid var(--line);
  font-size: var(--step--1); transition: padding .3s var(--ease), color .3s;
}
.skills li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: .5rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.skills li:hover { padding-left: .9rem; color: var(--accent); }
.skills li:hover::before { transform: scaleX(1); }
.skills + .skills-block { margin-top: 3rem; }
.skills-block > h3 { font: 500 var(--step-1)/1.3 var(--serif); margin: 0 0 1rem; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; max-width: 48rem; }
.tools li {
  border: 1px solid var(--line); background: var(--surface); padding: .35rem .85rem; border-radius: 999px;
  font-size: var(--step--1); transition: transform .3s var(--ease), border-color .3s, background .3s, color .3s;
}
.tools li:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent); color: #fff; }

/* Formation */
.edu { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.edu li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.edu .year { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--step--1); padding-top: .25rem; }
.edu strong { display: block; font: 500 var(--step-1)/1.3 var(--serif); margin-bottom: .2rem; }
.edu span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 30rem) { .edu li { grid-template-columns: 1fr; gap: .25rem; } }

/* ----- Contact ----------------------------------------------------------- */
.contact { background: var(--ink); color: var(--on-dark); }
.contact .section-title { color: #fff; }
.contact .section-title::after { background: var(--accent-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; }
.contact .intro { font: 400 var(--step-2)/1.4 var(--serif); color: #fff; margin: 0 0 1.5rem; }
.contact p { color: var(--on-dark-muted); }
.social { display: flex; gap: .75rem; margin: 2rem 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid #3a4d59; color: var(--on-dark);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.social a:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-3px); }
.social svg { width: 1.15rem; height: 1.15rem; }
.contact .btn { border-color: #3a4d59; color: var(--on-dark); }
.contact .btn::before { background: var(--on-dark); }
.contact .btn:hover { color: var(--ink); }

/* Formulaire : libellés flottants */
.form { display: grid; gap: 1.5rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.35rem 0 .55rem; background: transparent; color: #fff;
  font: 400 var(--step-0)/1.4 var(--sans); border: 0; border-bottom: 1px solid #3a4d59; border-radius: 0;
  outline: none; resize: vertical;
}
.field textarea { min-height: 8rem; }
.field label {
  position: absolute; left: 0; top: 1.3rem; color: var(--on-dark-muted); pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.15rem) scale(.78); color: var(--accent-2); }
.field input:user-invalid { border-bottom-color: #d98c8c; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.contact .form .btn { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.contact .form .btn::before { background: var(--accent-2); }
.contact .form .btn:hover { color: #fff; border-color: var(--accent-2); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: var(--step--1); min-height: 1.5em; }
.contact .form-status.ok { color: #9fd3b0; }
.contact .form-status.err { color: #f0b3b3; }
.cf-turnstile { min-height: 65px; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: var(--step--1); padding: 1.5rem 0 2.5rem; border-top: 1px solid #2b3c47; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--on-dark-muted); }

/* Retour en haut */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 15;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: 1px solid #3a4d59; text-decoration: none;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 1rem; height: 1rem; }

/* Suggestion de langue */
.lang-hint { background: var(--accent-soft); font-size: var(--step--1); }
.lang-hint .wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-top: .6rem; padding-bottom: .6rem; }
.lang-hint button { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: .25rem .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .lifecycle ol { --draw: 1; }
  .js .lifecycle li, .js .reveal, .js .hero .intro-seq > * { opacity: 1; transform: none; }
  .js .hero .portrait-frame { clip-path: none; }
  .timeline::after { transform: scaleY(1); }
}

@media print {
  .site-header, .progress, .lang-hint, .actions, .site-footer, .to-top, .form { display: none; }
  .contact { background: none; color: var(--ink); }
  .contact .section-title, .contact .intro { color: var(--ink); }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
