/* CareerTrack — feuille de style publique et admin. Pas de CDN, pile de polices système. */

:root {
  --c-bg: #f6f7f5;
  --c-surface: #ffffff;
  --c-surface-2: #eef2f0;
  --c-ink: #142530;
  --c-ink-2: #3c4f59;
  --c-muted: #5d6e76;
  --c-line: #d9e1de;
  --c-night: #14303a;
  --c-night-2: #1c3f4b;
  --c-accent: #0b6f67;
  --c-accent-ink: #085a53;
  --c-accent-soft: #e2f1ee;
  --c-lagoon: #7ad3c4;
  --c-warn: #8a5a00;
  --c-warn-soft: #fff4dc;
  --c-danger: #a3261b;
  --c-danger-soft: #fdecea;
  --c-ok: #1f6b3a;
  --c-ok-soft: #e6f4ea;
  --c-focus: #0b6f67;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h4: 1.0625rem;
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  --fs-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem);
  --fs-hero: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6rem;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(20, 37, 48, 0.06), 0 1px 1px rgba(20, 37, 48, 0.04);
  --shadow-2: 0 10px 30px -12px rgba(20, 37, 48, 0.25);
  --t-fast: 140ms cubic-bezier(.2, .7, .2, 1);
  --t-med: 260ms cubic-bezier(.2, .7, .2, 1);
  --z-header: 50; --z-overlay: 100;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  color: var(--c-ink); background: var(--c-bg); text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); }
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.2; letter-spacing: -0.015em; color: var(--c-ink); }
.h1 { font-size: var(--fs-h1); font-weight: 750; }
.h2 { font-size: var(--fs-h2); font-weight: 720; }
.h3 { font-size: var(--fs-h3); font-weight: 680; }
.h4 { font-size: var(--fs-h4); font-weight: 680; letter-spacing: 0; }
.lead { font-size: var(--fs-lead); color: var(--c-ink-2); max-width: 62ch; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-small); }
.mt { margin-top: var(--sp-6); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: var(--z-overlay); background: var(--c-night); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--sp-3); color: #fff; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0.6rem 1.15rem; border-radius: var(--r-md); border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn-large { min-height: 50px; padding: 0.8rem 1.4rem; font-size: 1.02rem; }
.btn-small { min-height: 38px; padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-ink); color: #fff; }
.btn-secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn-secondary:hover { border-color: var(--c-ink-2); color: var(--c-ink); }
.btn-ghost { background: transparent; color: var(--c-accent-ink); padding-inline: 0.6rem; }
.btn-ghost:hover { background: var(--c-accent-soft); }
.btn-light { background: #fff; color: var(--c-night); }
.btn-light:hover { background: var(--c-accent-soft); color: var(--c-night); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #821d14; color: #fff; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(246, 247, 245, 0.92); border-bottom: 1px solid var(--c-line); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(1.4) blur(10px); background: rgba(246, 247, 245, 0.82); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--c-ink); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--c-night); color: var(--c-lagoon); font-size: 0.92rem; letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: var(--sp-5); }
.site-nav ul { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; padding: 0.5rem 0.75rem; border-radius: var(--r-sm); color: var(--c-ink-2); text-decoration: none; font-weight: 560; }
.site-nav a:not(.btn):hover { background: var(--c-surface-2); color: var(--c-ink); }
.site-nav a[aria-current="page"] { color: var(--c-ink); background: var(--c-surface-2); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px; position: relative; transition: transform var(--t-fast); }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--sp-3); padding: var(--sp-4) 1.25rem var(--sp-5); background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-2); }
  .no-js .site-nav, .site-nav.is-open { display: flex; position: static; box-shadow: none; }
  .site-nav.is-open { position: absolute; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: 0.8rem 0.75rem; font-size: 1.05rem; }
  .brand-name { font-size: 0.98rem; }
}

/* ---------- Héros ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 650; font-size: 0.92rem; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(11, 111, 103, 0.15); }
.hero-name { font-size: var(--fs-hero); font-weight: 780; letter-spacing: -0.035em; line-height: 1.02; margin: var(--sp-5) 0 var(--sp-3); }
.hero-role { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); font-weight: 600; color: var(--c-accent-ink); margin-bottom: var(--sp-5); }
.hero-pitch { font-size: var(--fs-lead); color: var(--c-ink-2); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-5); }
.hero-contact { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); color: var(--c-muted); font-size: 0.98rem; }
.hero-contact a { color: var(--c-ink-2); }
.hero-visual { justify-self: end; width: 100%; max-width: 440px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; max-width: 520px; }
}

/* ---------- Diagrammes SVG ---------- */
.diagram text { font-family: var(--font); }
.ds-panel { fill: var(--c-night); }
.ds-kicker { fill: #8fb3b8; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.ds-layer rect { fill: rgba(255, 255, 255, 0.06); stroke: rgba(122, 211, 196, 0.35); }
.ds-layer text { fill: #f2f7f6; font-size: 16px; font-weight: 650; }
.ds-layer .ds-sub { fill: #9fc3c4; font-size: 12.5px; font-weight: 500; }
.ds-layer-base rect { fill: rgba(122, 211, 196, 0.14); stroke: var(--c-lagoon); }
.ds-wire { stroke: rgba(122, 211, 196, 0.4); stroke-width: 2; stroke-dasharray: 3 6; fill: none; }
.ds-pulse { fill: var(--c-lagoon); }
.ds-foot { fill: #8fb3b8; font-size: 12px; }
.ds-layer { animation: ds-rise 700ms var(--t-med) both; }
.ds-layer:nth-child(1) { animation-delay: 300ms; } .ds-layer:nth-child(2) { animation-delay: 200ms; }
.ds-layer:nth-child(3) { animation-delay: 100ms; }
.ds-pulse-1 { animation: ds-up 4.5s ease-in-out infinite; }
.ds-pulse-2 { animation: ds-down 4.5s ease-in-out infinite 1.2s; }
@keyframes ds-rise { from { opacity: 0; } }
@keyframes ds-up { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-216px); opacity: 0; } }
@keyframes ds-down { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(216px); opacity: 0; } }

.arch-zone { fill: var(--c-surface); stroke: var(--c-line); }
.arch-zone-web { fill: #f1f7f5; }
.arch-zone-label { fill: var(--c-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.arch-node rect { fill: #fff; stroke: #b9cbc6; stroke-width: 1.2; }
.arch-node text { fill: var(--c-ink); font-size: 14.5px; font-weight: 650; }
.arch-node .arch-sub, .arch-sub { fill: var(--c-muted); font-size: 11.5px; font-weight: 500; }
.arch-node-quiet rect { fill: var(--c-surface-2); stroke-dasharray: 4 4; }
.arch-switch rect { fill: var(--c-night); stroke: var(--c-night); }
.arch-switch text { fill: #fff; }
.arch-pc text { font-size: 12.5px; }
.arch-flow { stroke: var(--c-accent); stroke-width: 1.8; fill: none; }
.arch-flow-main { stroke-width: 2.6; }
.arch-link { stroke: #9fb4b0; stroke-width: 1.2; }
.arch-arrowhead { fill: var(--c-accent); }
.arch-boundary { stroke: var(--c-warn); stroke-width: 1.5; stroke-dasharray: 6 6; }
.arch-boundary-label { fill: var(--c-warn); font-size: 12px; font-weight: 650; }
.arch-badge { fill: var(--c-night); }
.arch-badge-text { fill: #fff; font-size: 11.5px; font-weight: 700; }
.arch-badge-sub { fill: var(--c-lagoon); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, var(--sp-9)) 0; }
.section-tight { padding-top: var(--sp-5); }
.section-alt { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--sp-5); }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.facts { padding-bottom: var(--sp-6); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); overflow: hidden; }
.fact { padding: var(--sp-5); border-left: 1px solid var(--c-line); }
.fact:first-child { border-left: 0; }
.fact-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--sp-2); }
.fact-value { font-weight: 620; margin: 0; line-height: 1.45; }
.fact-value .muted { font-weight: 450; font-size: 0.94rem; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--c-line); } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } .fact { border-left: 0; border-top: 1px solid var(--c-line); } .fact:first-child { border-top: 0; } }

.featured { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.featured-visual { margin: 0; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.featured-visual figcaption, .figure figcaption { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--c-muted); }
@media (max-width: 960px) { .featured { grid-template-columns: 1fr; } }
.status-tag { display: inline-block; padding: 0.18rem 0.6rem; border-radius: 6px; background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: var(--sp-3); }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.6rem; height: 0.35rem; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.project-card { position: relative; display: flex; flex-direction: column; padding: var(--sp-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.section-alt .project-card { background: var(--c-bg); }
.project-card:hover { border-color: #a9c1bb; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.project-card:focus-within { border-color: var(--c-accent); }
.project-card p:last-of-type { flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); font-size: 0.9rem; margin-bottom: var(--sp-3); }
.card-link { color: var(--c-ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.project-card:has(.card-link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.project-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6); align-items: center; }
.card-visual { pointer-events: none; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } .project-card-wide { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.chips li { padding: 0.2rem 0.6rem; border-radius: 6px; background: var(--c-surface-2); color: var(--c-ink-2); font-size: 0.85rem; font-weight: 560; }
.chips-large li { font-size: 0.95rem; padding: 0.35rem 0.75rem; }

.skill-list { margin: 0; }
.skill-row { padding: var(--sp-4) 0; border-top: 1px solid var(--c-line); }
.skill-row:last-child { border-bottom: 1px solid var(--c-line); }
.skill-row dt { font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3); }
.skill-row dd { margin: var(--sp-1) 0 0; color: var(--c-ink-2); }
.level { font-size: 0.82rem; font-weight: 600; color: var(--c-accent-ink); }
.skill-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp-4); }
.skill-card { padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }

.method { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.method li { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-line); }
.method-num { display: block; font-family: var(--font-mono); color: var(--c-accent); font-weight: 700; margin-bottom: var(--sp-3); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }

.cta { background: var(--c-night); color: #e7f0ef; padding: clamp(3rem, 6vw, 5rem) 0; }
.cta .h2 { color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.timeline { list-style: none; padding: 0; border-left: 2px solid var(--c-line); }
.timeline li { position: relative; padding: 0 0 var(--sp-5) var(--sp-5); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.timeline-period { font-family: var(--font-mono); font-size: 0.85rem; color: var(--c-accent-ink); margin-bottom: var(--sp-1); }
.lang-list { margin: 0; }
.lang-list div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.lang-list dt { font-weight: 650; } .lang-list dd { margin: 0; color: var(--c-ink-2); text-align: right; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.92rem; }
.matrix th, .matrix td { padding: 0.75rem; border-bottom: 1px solid var(--c-line); text-align: center; vertical-align: middle; }
.matrix thead th { font-size: 0.82rem; font-weight: 650; color: var(--c-ink-2); background: var(--c-surface-2); }
.matrix th[scope="row"] { text-align: left; font-weight: 650; }
.matrix th[scope="row"] .small { display: block; font-weight: 450; }
.matrix th:first-child { text-align: left; }
.tick { color: var(--c-accent); font-weight: 800; font-size: 1.1rem; }

/* ---------- Page projet ---------- */
.breadcrumb { font-size: 0.92rem; margin-bottom: var(--sp-4); color: var(--c-muted); }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: var(--sp-7); }
.prose section { margin-bottom: var(--sp-6); }
.prose-narrow { max-width: 72ch; }
.prose ul { padding-left: 1.2rem; }
.figure { margin: 0 0 var(--sp-6); padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.project-aside { display: flex; flex-direction: column; gap: var(--sp-4); align-self: start; position: sticky; top: 90px; }
.aside-card { padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.plain-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.plain-list li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-surface-2); }
.plain-list li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } .project-aside { position: static; } }
.project-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-6) 0 var(--sp-8); border-top: 1px solid var(--c-line); }
.next-project { display: flex; flex-direction: column; text-decoration: none; color: var(--c-ink); }
.next-project:hover .h3 { color: var(--c-accent-ink); }
.gallery { display: grid; gap: var(--sp-4); }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-line); cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform var(--t-med); }
.gallery-item a:hover img { transform: scale(1.015); }
.gallery-item figcaption { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--c-muted); }
.lightbox { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(10, 22, 28, 0.92); display: grid; place-items: center; padding: 4rem 1rem 3rem; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-height: 82vh; width: auto; max-width: min(1400px, 100%); border-radius: var(--r-md); }
.lightbox-caption { color: #dfe9e8; margin-top: var(--sp-3); text-align: center; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; min-height: 44px; padding: 0 1rem; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- CV, contact ---------- */
.download-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); list-style: none; padding: 0; margin: var(--sp-4) 0; }
.cv-sheet { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3.5rem); box-shadow: var(--shadow-1); max-width: 960px; }
.cv-head { display: flex; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; border-bottom: 3px solid var(--c-night); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
.cv-name { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); margin: 0; }
.cv-role { color: var(--c-accent-ink); font-weight: 650; margin: 0; }
.cv-contact { margin: 0; text-align: right; font-size: 0.95rem; }
.cv-availability { display: inline-block; background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 700; padding: 0.35rem 0.8rem; border-radius: var(--r-sm); }
.cv-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); }
.cv-h { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); border-bottom: 1px solid var(--c-line); padding-bottom: var(--sp-2); margin-top: var(--sp-5); }
@media (max-width: 760px) { .cv-grid { grid-template-columns: 1fr; } .cv-contact { text-align: left; } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.contact-card { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.contact-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-2); color: var(--c-ink); }
.contact-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.contact-value { font-size: 1.12rem; font-weight: 650; overflow-wrap: anywhere; }

/* ---------- Signal volontaire ---------- */
.signal { padding-top: var(--sp-4); }
.signal-card { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); flex-wrap: wrap; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-1); }
.signal-text { flex: 1 1 420px; }
.signal-text p { margin: 0; color: var(--c-ink-2); font-size: 0.98rem; }
.signal-title { font-size: 1.02rem; font-weight: 700; margin-bottom: var(--sp-1); }
.signal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.signal-actions form { margin: 0; }
.signal-code { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0.06em; background: var(--c-surface-2); padding: 0.1rem 0.45rem; border-radius: 6px; white-space: nowrap; }
.signal-withdraw { flex: 1 1 280px; }
.signal-withdraw label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: var(--sp-1); }
.inline-field { display: flex; gap: var(--sp-2); }
.inline-field input { flex: 1; min-width: 0; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--c-line); padding: var(--sp-7) 0; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--sp-5); }
.footer-name { font-weight: 700; margin-bottom: var(--sp-1); }
.footer-links, .footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Formulaires (communs) ---------- */
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="date"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: 0.55rem 0.75rem; border: 1px solid #b8c6c2; border-radius: var(--r-sm); background: #fff; color: var(--c-ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-focus); }

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

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .no-print, .cta, .signal, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 0; }
  .cv-sheet { border: 0; box-shadow: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
