/* michaelcouzinet.fr
   Palette : papier, encre de pin, aiguille, résine des Landes.
   Typo : Literata (titres, lecture) et Atkinson Hyperlegible (texte, interface). */

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/literata-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/literata-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Couleurs ---------- */
:root {
  --paper: #F2F4F1;
  --paper-2: #E5EAE3;
  --paper-3: #FFFFFF;
  --ink: #14302A;
  --ink-2: #2B4740;
  --pine: #2E5B4F;
  --mist: #52625C;
  --line: #CBD5CE;
  --line-strong: #95A79F;
  --resin: #B5741A;
  --resin-text: #87520B;
  --resin-wash: #F3E1BC;
  --danger: #A3312A;
  --ok: #2E6B45;
  --focus: #B5741A;
  --logo-bg: #14302A;
  --logo-m: #F2F4F1;
  --logo-c: #B5741A;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1D19;
    --paper-2: #16302A;
    --paper-3: #12251F;
    --ink: #E6ECE8;
    --ink-2: #C4D2CC;
    --pine: #93C7B3;
    --mist: #9EB1A9;
    --line: #2A443D;
    --line-strong: #4D6A61;
    --resin: #E5A443;
    --resin-text: #F0BC6A;
    --resin-wash: #3D2E12;
    --danger: #F08A80;
    --ok: #8FD3A8;
    --focus: #E5A443;
    --logo-bg: #E6ECE8;
    --logo-m: #0E1D19;
    --logo-c: #B5741A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1D19;
  --paper-2: #16302A;
  --paper-3: #12251F;
  --ink: #E6ECE8;
  --ink-2: #C4D2CC;
  --pine: #93C7B3;
  --mist: #9EB1A9;
  --line: #2A443D;
  --line-strong: #4D6A61;
  --resin: #E5A443;
  --resin-text: #F0BC6A;
  --resin-wash: #3D2E12;
  --danger: #F08A80;
  --ok: #8FD3A8;
  --focus: #E5A443;
  --logo-bg: #E6ECE8;
  --logo-m: #0E1D19;
  --logo-c: #B5741A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: 'Literata', Georgia, serif;
  font-weight: 560;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--resin); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--pine); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--resin-wash); color: var(--ink); }
svg { display: block; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
@media (min-width: 48rem) { .wrap { width: min(100% - 4rem, 72rem); } }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }
.print-only { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.logo { width: 2.1rem; height: 2.1rem; flex: none; }
.logo-bg { fill: var(--logo-bg); }
.logo-m { fill: var(--logo-m); }
.logo-c { fill: var(--logo-c); stroke: var(--logo-bg); stroke-width: 70; stroke-linejoin: round; paint-order: stroke; }
.mark span { font-family: 'Literata', Georgia, serif; font-weight: 600; font-size: 1.05rem; }
.menu-toggle {
  margin-left: auto; padding: .45rem .9rem; min-height: 2.5rem; border-radius: 6px;
  border: 1px solid var(--line-strong); background: transparent; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: var(--paper-2); border-color: var(--ink); }
.nav { display: none; margin-left: auto; gap: .25rem; }
.nav.is-open {
  display: grid; position: absolute; top: 100%; left: 0; right: 0; gap: 0;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem;
}
.nav.is-open a { padding: .8rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.nav.is-open a:last-child { border-bottom: 0; }
.nav a { text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-size: 1rem; color: var(--ink-2); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.theme-toggle {
  margin-left: .5rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
}
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle:hover { border-color: var(--ink); }
@media (min-width: 56rem) {
  .menu-toggle { display: none; }
  .nav, .nav.is-open { display: flex; position: static; padding: 0; border: 0; background: none; gap: .25rem; }
  .nav.is-open a { padding: .45rem .7rem; font-size: 1rem; border: 0; border-radius: 6px; }
}

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.2rem; min-height: 2.9rem;
  border: 1.5px solid var(--ink); border-radius: 8px;
  background: transparent; color: var(--ink);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--paper-2); color: var(--ink); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.btn--quiet { border-color: var(--line-strong); font-weight: 400; }
.btn--small { padding: .35rem .8rem; min-height: 2.2rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--resin); }

/* ---------- Accueil : forêt animée et nom ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 4rem);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(1.5rem, 5svh, 6rem) clamp(4rem, 11svh, 7rem);
}
.forest { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 45%, color-mix(in srgb, var(--paper) 20%, transparent) 100%);
}
@media (min-width: 60rem) {
  .hero-veil {
    background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 34%, color-mix(in srgb, var(--paper) 88%, transparent) 44%, color-mix(in srgb, var(--paper) 55%, transparent) 56%, color-mix(in srgb, var(--paper) 15%, transparent) 70%, transparent 82%);
  }
}
.hero-inner { position: relative; }

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .95rem; color: var(--ink-2); margin-bottom: clamp(1rem, 3.5svh, 1.75rem);
  background: color-mix(in srgb, var(--paper) 80%, transparent); padding: .25rem .75rem .25rem .5rem; border-radius: 99px;
  border: 1px solid var(--line);
}
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.status[data-state="open"] .status-dot { background: var(--resin); box-shadow: 0 0 0 4px color-mix(in srgb, var(--resin) 22%, transparent); }
.status[data-state="busy"] .status-dot { background: var(--mist); box-shadow: none; }

.name-wrap {
  /* Taille liée à la largeur ET à la hauteur de l'écran : le bouton de contact reste visible sur un portable. */
  position: relative;
  font-size: clamp(3.2rem, min(13vw, 15svh), 10rem);
  margin-bottom: clamp(1rem, 3.5svh, 1.75rem);
}
.name {
  font-size: 1em;
  font-weight: 500;
  font-variation-settings: 'opsz' 72;
  line-height: .88;
  letter-spacing: -.03em;
  text-wrap: nowrap;
}
.name-line { display: block; }
.name-line + .name-line { padding-left: 1.15em; }

/* La photo en médaillon, calée sur la deuxième ligne du nom (unités en em = taille du nom). */
.name-photo {
  position: absolute; left: .07em; top: 1em; z-index: 1;
  width: .86em; height: .86em; border-radius: 50%; overflow: hidden; background: #0E1D19;
  box-shadow: 0 0 0 .045em var(--paper), 0 0 0 .07em var(--resin);
  transform-origin: 15% 55%;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.name-photo picture, .name-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* À la souris, le médaillon s'agrandit pour montrer le visage. */
@media (hover: hover) and (pointer: fine) {
  .name-photo:hover { transform: scale(2); }
}
/* Sur ordinateur : le nom redevient pur texte, la photo passe à côté de la présentation. */
.intro-photo { display: none; }
@media (min-width: 64rem) {
  .name-line + .name-line { padding-left: .5em; }
  .name-wrap .name-photo { display: none; }
  .intro-row { display: flex; align-items: center; gap: 1.5rem; max-width: 44rem; margin-bottom: .75rem; }
  .intro-row .intro { margin-bottom: 0; max-width: 36ch; }
  .intro-photo {
    display: block; flex: none; width: clamp(6rem, 5.5vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0E1D19;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--resin);
  }
  .intro-photo picture, .intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 80rem) { .intro-row .intro { max-width: 44ch; } }
.roles {
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-variation-settings: 'opsz' 24;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
.roles-rotator { display: none; }
.intro { max-width: 44ch; color: var(--ink-2); margin-bottom: .75rem; }
.place { color: var(--mist); font-size: 1rem; margin-bottom: clamp(1.25rem, 3.5svh, 2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0;
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--mist); text-decoration: none;
}
.scroll-cue-line { width: 1px; height: 2.75rem; background: linear-gradient(var(--line-strong), transparent); position: relative; overflow: hidden; }
@media (min-width: 48rem) and (min-height: 40rem) { .scroll-cue { display: flex; } }

/* ---------- Chiffres ---------- */
.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 0; }
@media (min-width: 48rem) { .figures-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; padding: 1.75rem 1rem 1.75rem 0; }
.figure + .figure { padding-left: 1.25rem; border-left: 1px solid var(--line); }
@media (max-width: 47.99rem) { .figure:nth-child(3) { border-left: 0; padding-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }
.figure dd { margin: 0; font-family: 'Literata', Georgia, serif; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 500; line-height: 1; font-variation-settings: 'opsz' 72; font-feature-settings: 'lnum', 'tnum'; color: var(--pine); }
.figure dt { color: var(--ink-2); font-size: 1rem; }

/* ---------- Bandeau de compétences ---------- */
.marquee { display: none; overflow: hidden; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.marquee-row { overflow: hidden; }
.marquee-row + .marquee-row { margin-top: .5rem; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-item {
  font-family: 'Literata', Georgia, serif; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 450;
  font-variation-settings: 'opsz' 48; white-space: nowrap; padding-inline: 1.5rem; color: var(--ink);
}
.marquee-row[data-marquee="-1"] .marquee-item { color: transparent; -webkit-text-stroke: 1px var(--pine); }
.marquee-sep { width: 1.6rem; height: 1.6rem; color: var(--resin); flex: none; }

/* ---------- Moteur de recherche du parcours ---------- */
.index-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .index-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } .index .section-head { margin-bottom: 0; } }
.finder {
  background: var(--paper-2);
  border-left: 4px solid var(--resin);
  border-radius: 0 16px 16px 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.finder-input { position: relative; }
.finder-input svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.5rem; height: 1.5rem; color: var(--mist); pointer-events: none; }
.finder-input input {
  width: 100%; padding: 1rem 1rem 1rem 3.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); background: var(--paper-3);
  border: 1.5px solid var(--line-strong); border-radius: 12px;
}
.finder-input input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.finder-input input::-webkit-search-cancel-button { cursor: pointer; }
.finder-try { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-top: 1rem; font-size: 1rem; }
.finder-try p { color: var(--mist); }
.finder-try ul { display: contents; list-style: none; }
.suggestion {
  background: none; border: 0; padding: .1rem 0; cursor: pointer;
  color: var(--ink-2); text-decoration: underline dotted var(--line-strong); text-underline-offset: .2em;
}
.suggestion:hover { color: var(--ink); text-decoration-color: var(--resin); }
.finder-results:empty { display: none; }
.finder-results { margin-top: 1.25rem; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.finder-summary { font-size: .98rem; color: var(--ink-2); margin-bottom: .6rem; }
.finder-summary strong { color: var(--ink); }
.finder-list { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .15rem; max-height: 18rem; overflow-y: auto; }
.finder-list a {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: baseline;
  padding: .5rem .6rem; margin-inline: -.6rem; border-radius: 8px; text-decoration: none;
}
.finder-list a:hover, .finder-list a:focus-visible { background: var(--paper-3); }
.finder-list .r-title { font-weight: 700; }
.finder-list .r-meta { font-size: .9rem; color: var(--mist); }
.finder-list .r-where { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-2); }
.finder-empty { font-size: 1rem; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.section h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-variation-settings: 'opsz' 60; letter-spacing: -.015em; }
.lead { margin-top: .9rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- Services ---------- */
.services { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.service {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.5rem 1.25rem 1.75rem; border-top: 3px solid var(--pine);
}
.service::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper-2);
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.service:hover::after, .service:focus-within::after { transform: scaleY(1); }
.service h3 { font-size: 1.55rem; font-variation-settings: 'opsz' 36; }
.service p { color: var(--ink-2); flex: 1; }
.service .link { align-self: flex-start; }

/* ---------- Parcours et formation ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; grid-template-columns: 1fr; gap: .25rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
  transition: opacity .25s ease;
}
.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; }
@media (min-width: 48rem) {
  .entry { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2rem; padding-block: 2rem; }
}
.entry-year {
  font-family: 'Literata', Georgia, serif; font-variation-settings: 'opsz' 48;
  font-size: 1.9rem; font-weight: 480; color: var(--pine); line-height: 1;
  font-feature-settings: 'lnum', 'tnum';
}
.entry-year:empty { display: none; }
@media (min-width: 48rem) { .entry-year:empty { display: block; } .entry-year { padding-top: .2rem; } }
.entry-body { position: relative; max-width: 46rem; }
@media (min-width: 64rem) {
  .entry-body { max-width: none; display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .entry-more .entry-points { margin-top: 0; }
  .entry-more .tags:first-child { margin-top: 0; }
  .entry--edu .entry-body { display: block; }
  .entry--edu .entry-more .tags:first-child { margin-top: .9rem; }
}
.entry-year { margin-bottom: .35rem; }
@media (min-width: 48rem) { .entry-year { margin-bottom: 0; } }
.entry-kind { font-size: .9rem; color: var(--mist); margin-bottom: .2rem; }
.entry-title { font-size: 1.45rem; font-variation-settings: 'opsz' 30; }
.entry-detail { color: var(--ink-2); margin-top: .2rem; }
.entry-org { font-weight: 700; margin-top: .35rem; }
.entry-dates { color: var(--mist); font-family: 'Literata', Georgia, serif; font-size: 1rem; font-variation-settings: 'opsz' 14; font-feature-settings: 'lnum'; }
.entry-points { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.entry-points li { margin-block: .2rem; padding-left: .2rem; }
.entry-points li::marker { color: var(--line-strong); }
.tags { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 4px;
  padding: .15rem .55rem; font-size: .85rem; color: var(--ink-2); cursor: pointer;
}
.tag:hover { border-color: var(--pine); color: var(--ink); }
.tag[aria-pressed="true"] { background: var(--resin-wash); border-color: var(--resin); color: var(--ink); }

/* État filtré */
.timeline.is-filtering .entry:not(.is-match) { opacity: .3; }
.timeline.is-filtering .entry:not(.is-match):hover { opacity: .6; }
.entry.is-match .entry-body::before {
  content: ''; position: absolute; left: -1rem; top: .15rem; bottom: .15rem; width: 3px; border-radius: 2px; background: var(--resin);
}
mark { background: var(--resin-wash); color: inherit; border-radius: 2px; padding-inline: .05em; }
.filterbar {
  position: sticky; top: 4.5rem; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  background: var(--resin-wash); color: var(--ink);
  border-radius: 10px; padding: .6rem .6rem .6rem 1rem; margin-bottom: 2rem;
}
.filterbar[hidden] { display: none; }
.filterbar .btn { border-color: var(--ink); }

/* Frise animée : grande année collante et fil de progression (grand écran, avec JavaScript) */
.cv-rail { display: none; }
@media (min-width: 64rem) {
  .motion-ready .cv-layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; }
  .motion-ready .cv-rail { display: block; position: sticky; top: 7rem; align-self: start; height: max-content; }
  .motion-ready .cv-layout .entry { grid-template-columns: minmax(0, 1fr); }
  .motion-ready .cv-layout .entry-year { display: none; }
}
.cv-year {
  font-family: 'Literata', Georgia, serif; font-variation-settings: 'opsz' 72; font-weight: 500;
  font-size: 4.5rem; line-height: 1; color: var(--pine); letter-spacing: -.03em;
  font-feature-settings: 'lnum', 'tnum'; overflow: hidden; height: 1.05em;
}
.cv-year span { display: inline-block; }
.cv-progress { position: relative; width: 2px; height: 16rem; margin: 1.5rem 0 0 .4rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.cv-progress span { position: absolute; inset: 0; background: var(--resin); transform-origin: 50% 0; transform: scaleY(0); }

/* ---------- Compétences ---------- */
.skills { display: grid; gap: 2.5rem 3.5rem; }
@media (min-width: 40rem) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill-group h3 { font-size: 1.35rem; font-variation-settings: 'opsz' 30; padding-bottom: .6rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line-strong); }
.skill-list { list-style: none; margin: 0; padding: 0; }
.skill-static, .skill-button {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline;
  width: 100%; padding: .55rem 0; text-align: left;
}
.skill-button {
  background: none; border: 0; border-bottom: 1px dotted var(--line); cursor: pointer; border-radius: 0;
}
.skill-static { border-bottom: 1px dotted var(--line); }
.skill-label { grid-column: 1; }
.skill-detail { grid-column: 1; font-size: .92rem; color: var(--mist); }
.skill-count { grid-column: 2; grid-row: 1; font-size: .85rem; color: var(--resin-text); white-space: nowrap; }
.skill-button:hover .skill-label { text-decoration: underline; text-decoration-color: var(--resin); text-underline-offset: .18em; }
.skill-button[aria-pressed="true"] { background: var(--resin-wash); padding-inline: .5rem; border-radius: 6px; }

/* ---------- Contact ---------- */
.section .contact-title {
  font-size: clamp(3.4rem, 13vw, 10rem); font-weight: 500; line-height: .9; letter-spacing: -.035em;
  font-variation-settings: 'opsz' 72; margin-bottom: clamp(2rem, 5vw, 4rem); text-wrap: nowrap;
}
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; } }
.coords { margin: 2rem 0 0; display: grid; gap: .9rem; }
.coords div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; }
.coords dt { color: var(--mist); font-size: .95rem; }
.coords dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .coords div { grid-template-columns: 1fr; gap: .1rem; } }
.recruiters { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--pine); background: var(--paper-2); border-radius: 0 10px 10px 0; color: var(--ink-2); }

.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font-size: 1.05rem;
  background: var(--paper-3); border: 1.5px solid var(--line-strong); border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .95rem; }
.field-error:empty { display: none; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field--check { grid-template-columns: auto 1fr; column-gap: .75rem; align-items: start; }
.field--check input { width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--pine); }
.field--check label { font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.field--check .field-error { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-size: 1rem; }
.form-status[data-tone="ok"] { color: var(--ok); font-weight: 700; }
.form-status[data-tone="error"] { color: var(--danger); }

/* ---------- Pages simples ---------- */
.page { padding-block: clamp(3rem, 8vw, 5rem); max-width: 46rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.page h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.page p + p { margin-top: .9rem; }
.page section + p { margin-top: 3rem; }
.notice { padding-block: 2rem; }
.notice p { margin-top: 1rem; max-width: 48ch; }
.notice .btn { margin-top: 1.5rem; }
.notice--ok h1 { color: var(--ok); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: .95rem; color: var(--mist); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.footer-inner p:last-child { margin-left: auto; }

/* ---------- Effets réservés à la version animée ---------- */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--resin); transform-origin: 0 50%; transform: scaleX(0); }

.motion-ready .marquee { display: block; }
.motion-ready .name-line { overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.motion-ready .roles-static {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.motion-ready .roles-rotator {
  display: inline-grid; overflow: hidden; vertical-align: bottom; height: 1.35em;
}
.roles-item { grid-area: 1 / 1; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--resin); text-decoration-thickness: 2px; text-underline-offset: .2em; }

.scroll-cue-line::after {
  content: ''; position: absolute; left: 0; top: -45%; width: 1px; height: 45%; background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-line::after { animation: drip 2s cubic-bezier(.6, 0, .4, 1) infinite; }
  @keyframes drip { from { top: -45%; } to { top: 100%; } }
}

/* Curseur suiveur (souris uniquement, le curseur normal reste visible) */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; translate: -50% -50%; }
.cursor {
  width: 2.6rem; height: 2.6rem; border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent);
  transition: width .3s, height .3s, background-color .3s, border-color .3s, opacity .3s;
}
.cursor.is-hover { width: 4.2rem; height: 4.2rem; border-color: var(--resin); background: color-mix(in srgb, var(--resin) 14%, transparent); }
.cursor.is-down { width: 2rem; height: 2rem; }
.cursor-dot { width: 6px; height: 6px; background: var(--resin); transition: opacity .3s; }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }

/* Changement de thème en cercle (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Avant que l'animation démarre : on cache seulement l'accueil, avec un filet de sécurité. */
.motion:not(.motion-ready) [data-hero-in],
.motion:not(.motion-ready) [data-name-photo],
.motion:not(.motion-ready) [data-intro-photo],
.motion:not(.motion-ready) [data-hero-name] { opacity: 0; animation: failsafe 0s linear 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Impression : le CV ---------- */
@media print {
  @page { margin: 14mm 16mm; }
  :root { --paper: #fff; --paper-2: #fff; --paper-3: #fff; --ink: #111; --ink-2: #222; --mist: #555; --pine: #2E5B4F; --line: #ccc; --line-strong: #999; }
  body { font-size: 10pt; line-height: 1.4; background: #fff; }
  .forest, .hero-veil, .marquee, .figures, .index, .scroll-cue, .cv-rail, .cursor, .cursor-dot, .progress, .roles-rotator,
  #contact, .site-header, .skip, .finder, .menu-toggle, #services, .contact-form, .filterbar, .tags, .actions, .site-footer,
  .theme-toggle, [data-print], .no-print, .recruiters, .contact .lead, .skill-count, .status { display: none !important; }
  .print-only { display: block; }
  .print-contact { padding-right: 32mm; }
  .hero { display: block; min-height: 0; padding: 0 0 6mm; overflow: visible; position: relative; }
  .hero-inner { display: block; }
  .hero-text { padding-right: 32mm; }
  .name-photo, .intro-photo { display: none !important; }
  .intro-row { display: block; }
  .print-photo { position: absolute; top: 0; right: 0; width: 28mm; height: 28mm; border-radius: 3mm; object-fit: cover; }
  .name-wrap { font-size: 26pt; margin-bottom: 2mm; }
  .hero *, .section * { transform: none !important; opacity: 1 !important; }
  .roles-static { position: static !important; width: auto !important; height: auto !important; clip-path: none !important; }
  .name { text-wrap: wrap; }
  .cv-layout { display: block !important; }
  .cv-layout .entry-year { display: block !important; }
  .name { font-size: 26pt; margin-bottom: 2mm; }
  .name-line { display: inline; padding: 0 !important; }
  .roles { font-size: 13pt; margin-bottom: 2mm; max-width: none; }
  .intro { max-width: none; }
  .place { margin-bottom: 1mm; }
  .print-contact { font-size: 9.5pt; }
  .place, .entry-dates, .entry-kind, .entry-detail, .skill-detail { font-size: 9pt; }
  .entry-org { font-size: 9.5pt; margin-top: 0; }
  .section { padding-block: 4mm; border-top: 1px solid #ccc; }
  .section h2 { font-size: 15pt; }
  .section-head { margin-bottom: 3mm; }
  .entry { grid-template-columns: 20mm 1fr; gap: 4mm; padding-block: 2.5mm; break-inside: avoid; opacity: 1 !important; }
  .entry-year { display: block !important; font-size: 12pt; }
  .entry-title { font-size: 11.5pt; }
  .entry-points { margin-top: 1mm; }
  .entry-body { display: block; }
  .entry.is-match .entry-body::before { display: none; }
  mark { background: none; }
  .skills { grid-template-columns: repeat(3, 1fr); gap: 4mm 8mm; }
  .skill-group h3 { font-size: 11pt; }
  .skill-static, .skill-button { padding: .5mm 0; border: 0; }
  .contact { border: 0; }
  .contact-grid { display: block; }
  .coords { margin-top: 2mm; grid-template-columns: repeat(2, 1fr); }
  #contact h2 { font-size: 13pt; }
  a { text-decoration: none; }
}
