/* b-menard.fr : vernis de PCB (fond), or ENIG (accent), sérigraphie (texte), chlorophylle (feuilles). */

/* Polices auto-hébergées (licence SIL OFL), sous-ensemble latin. */
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --bg: #0e1c15;
    --bg-raised: #13261c;
    --bg-deep: #08120d;
    --leaf: #2d5a40;
    --leaf-light: #437d5a;
    --leaf-dark: #1a3727;
    --ink: #ece7d8;
    --ink-2: #b3bfb5;
    --ink-3: #85988b;
    --gold: #d9b45a;
    --gold-bright: #f1d58f;
    --rule: rgba(236, 231, 216, 0.13);
    --rule-strong: rgba(236, 231, 216, 0.24);
    --alert: #ef6c4d;

    --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --gutter: clamp(16px, 5vw, 72px);
    --maxw: 1320px;
    --section-space: clamp(96px, 14vw, 200px);

    --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
    --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
    --step-4: clamp(2.6rem, 1.5rem + 5vw, 6.2rem);
    --step-hero: clamp(4rem, 1rem + 13vw, 13.5rem);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.6;
    font-feature-settings: "ss01", "tnum" 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 0.25s, text-decoration-color 0.25s;
}

a:hover {
    color: var(--gold-bright);
    text-decoration-color: var(--gold-bright);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--gold);
    color: var(--bg-deep);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul[class],
ol[class] {
    list-style: none;
    padding: 0;
}

strong {
    font-weight: 600;
    color: var(--ink);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--bg-deep);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Navigation ---------- */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px var(--gutter);
    transition: background-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out);
}

.site-nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-nav.is-hidden {
    transform: translateY(-100%);
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
}

.brand span {
    color: var(--gold);
}

.nav-links {
    display: none;
    gap: clamp(16px, 2vw, 32px);
}

.nav-links a {
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--ink-2);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--ink);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle,
.menu-toggle {
    appearance: none;
    border: 1px solid var(--rule-strong);
    background: transparent;
    color: var(--ink);
    font: 500 0.85rem/1 var(--font);
    height: 36px;
    min-width: 44px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.lang-toggle:hover,
.menu-toggle:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px var(--gutter) 48px;
    background: var(--bg-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
    display: block;
    padding: 8px 0;
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: lowercase;
}

.mobile-menu.is-open a {
    opacity: 1;
    transform: none;
}

.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.2s; }

@media (min-width: 960px) {
    .nav-links {
        display: flex;
    }

    .menu-toggle,
    .mobile-menu {
        display: none;
    }
}

/* ---------- Héros ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.leaf {
    position: absolute;
    overflow: visible;
}

.leaf-body {
    fill: url(#leaf-gradient);
}

.leaf-veins {
    fill: none;
    stroke: var(--leaf-light);
    stroke-width: 4;
    stroke-linecap: round;
    opacity: 0.75;
}

.leaf-petiole {
    fill: none;
    stroke: var(--leaf);
    stroke-width: 18;
    stroke-linecap: round;
}

.leaf-under {
    fill: var(--bg-deep);
}

.pcb {
    fill: none;
    stroke: var(--gold);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

.pcb-pulse {
    fill: none;
    stroke: var(--gold-bright);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 0.035 0.965;
    animation: pulse 9s linear infinite;
}

.pcb-vias circle {
    fill: var(--bg-deep);
    stroke: var(--gold);
    stroke-width: 4.5;
}

.pcb-pads rect {
    fill: var(--gold);
}

@keyframes pulse {
    to {
        stroke-dashoffset: -1;
    }
}

.leaf--hero {
    z-index: 0;
    width: min(118vw, 600px);
    right: -40vw;
    top: -4svh;
    transform: rotate(-22deg);
}

.leaf--front {
    z-index: 2;
    width: min(56vw, 300px);
    left: -18vw;
    top: 50svh;
    transform: rotate(36deg);
}

.leaf--front .leaf-body {
    fill: var(--leaf-dark);
}

.leaf--front .leaf-veins {
    stroke: var(--leaf);
}

.leaf--front .leaf-petiole {
    stroke: var(--leaf-dark);
}

.hero-figure {
    position: absolute;
    z-index: 1;
    right: -8vw;
    top: 64px;
    width: min(100vw, 560px);
    aspect-ratio: 1400 / 1475;
    margin: 0;
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 88%), linear-gradient(to right, transparent 0, #000 16%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 58%, transparent 88%), linear-gradient(to right, transparent 0, #000 16%, #000 100%);
    mask-composite: intersect;
}

.hero-figure::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 4%;
    right: -6%;
    top: 46%;
    bottom: -4%;
    background: radial-gradient(closest-side, var(--bg) 55%, rgba(14, 28, 21, 0));
}

.orbits {
    position: absolute;
    left: -18%;
    top: -12%;
    width: 128%;
    height: 112%;
    overflow: visible;
    pointer-events: none;
}

.orbit-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    opacity: 0.55;
    vector-effect: non-scaling-stroke;
}

.orbit-label {
    font: 500 30px/1 var(--mono);
    fill: var(--gold-bright);
}

.hero-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding-top: 62svh;
    padding-bottom: clamp(28px, 6vh, 64px);
}

.hero-name {
    font-size: var(--step-hero);
    font-weight: 700;
    line-height: 0.84;
    letter-spacing: -0.055em;
    text-transform: lowercase;
    margin-left: -0.04em;
}

.hero-name .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hero-name .line > span {
    display: inline-block;
}

.hero-lede {
    max-width: 30ch;
    margin-top: clamp(20px, 3vw, 36px);
    font-size: var(--step-2);
    line-height: 1.22;
    letter-spacing: -0.015em;
    font-weight: 500;
}

.hero-role {
    margin-top: 14px;
    color: var(--ink-2);
    font-size: var(--step-0);
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(28px, 5vh, 56px);
    color: var(--ink-3);
    font-size: var(--step--1);
    text-decoration: none;
}

.scroll-cue svg {
    width: 14px;
    height: 34px;
}

.scroll-cue .dot {
    animation: cue 2.4s var(--ease-out) infinite;
}

@keyframes cue {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80%,
    100% {
        transform: translateY(18px);
        opacity: 0;
    }
}

@media (min-width: 700px) {
    .hero-figure {
        right: -2vw;
        top: auto;
        bottom: 0;
        width: min(56vw, 900px);
    }

    .leaf--hero {
        width: min(60vw, 900px);
        right: -12vw;
        top: -16svh;
        transform: rotate(-28deg);
    }

    .leaf--front {
        width: min(24vw, 380px);
        left: auto;
        right: 34vw;
        top: auto;
        bottom: -26svh;
        transform: rotate(30deg);
    }

    .hero-copy {
        padding-top: 120px;
    }
}

@media (min-width: 1100px) {
    .hero-figure {
        right: 0;
        width: min(48vw, 900px);
    }

    .hero-lede {
        max-width: 26ch;
    }
}

/* ---------- Sections ---------- */

.section {
    position: relative;
    padding: var(--section-space) 0 0;
}

.section-head {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(40px, 6vw, 88px);
}

.section-title {
    font-size: var(--step-4);
    font-weight: 650;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: lowercase;
}

.section-intro {
    max-width: 52ch;
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.45;
}

@media (min-width: 960px) {
    .section-head {
        grid-template-columns: 1.1fr 1fr;
        align-items: end;
    }
}

.trace-rule {
    display: block;
    width: 100%;
    height: 24px;
    margin-top: var(--section-space);
    color: var(--rule-strong);
}

/* ---------- L'essentiel ---------- */

.essentials {
    display: grid;
    gap: 48px;
}

.manifest {
    display: grid;
    gap: clamp(28px, 3.4vw, 48px);
}

/* Le chiffre se lit d'abord, la phrase le qualifie. */
.manifest p {
    display: grid;
    gap: 8px;
    max-width: 34ch;
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.4;
}

.manifest-num {
    color: var(--gold-bright);
    font-size: var(--step-4);
    font-weight: 650;
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.neuron {
    width: min(80vw, 460px);
    justify-self: center;
    color: var(--gold);
}

.neuron path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neuron .soma {
    fill: currentColor;
}

.ecg {
    width: 100%;
    max-width: 460px;
    height: 46px;
    margin-top: 16px;
    color: var(--gold);
    overflow: visible;
}

.ecg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
}

@media (min-width: 900px) {
    .essentials {
        grid-template-columns: 1.5fr 1fr;
        align-items: start;
    }

    .neuron-col {
        position: sticky;
        top: 14vh;
    }
}

/* ---------- À propos ---------- */

.about {
    display: grid;
    gap: 40px;
}

.about-text {
    display: grid;
    gap: 1.1em;
    max-width: 62ch;
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.55;
}

.about-text p:first-child {
    color: var(--ink);
}

.about-aside {
    display: grid;
    gap: 32px;
    align-content: start;
}

.meta-title {
    margin-bottom: 12px;
    color: var(--ink-3);
    font-size: var(--step--1);
    font-weight: 500;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips li {
    padding: 6px 12px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    font-size: var(--step--1);
    line-height: 1.3;
    color: var(--ink-2);
    white-space: nowrap;
}

.contact-lines {
    display: grid;
    gap: 6px;
}

.contact-lines a {
    width: fit-content;
}

@media (min-width: 960px) {
    .about {
        grid-template-columns: 1.6fr 1fr;
        gap: clamp(48px, 6vw, 120px);
    }
}

/* ---------- Projets ---------- */

.feature {
    display: grid;
    gap: 32px;
    padding: clamp(24px, 4vw, 56px);
    border: 1px solid var(--rule-strong);
    border-radius: 6px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(67, 125, 90, 0.22), transparent 60%),
        var(--bg-raised);
}

.feature-art {
    color: var(--ink-3);
}

.feature-art svg {
    width: 100%;
    height: auto;
}

.thermo .curve {
    stroke: var(--gold);
}

.thermo .curve-hot {
    stroke: var(--alert);
}

.thermo .threshold {
    stroke: var(--alert);
    opacity: 0.35;
    transition: opacity 0.4s;
}

.thermo .axis-38 {
    fill: var(--alert);
}

.thermo .fever-tag {
    fill: var(--alert);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.thermo .probe-trace {
    color: var(--ink-3);
}

.thermo .probe-dot {
    fill: var(--gold);
    transition: fill 0.3s;
}

.thermo .probe-ring {
    stroke: var(--gold);
    opacity: 0.5;
    transition: stroke 0.3s;
}

.thermo .probe-label {
    fill: var(--ink);
    font-variant-numeric: tabular-nums;
}

.thermo .armband {
    color: var(--ink-2);
}

.thermo .pod {
    fill: var(--bg-raised);
}

.thermo .pod-glow {
    fill: var(--alert);
    opacity: 0;
    transition: opacity 0.5s;
}

.thermo .led {
    fill: none;
    transition: fill 0.3s, stroke 0.3s;
}

.thermo .button-ring,
.thermo .button {
    stroke: var(--gold);
    transition: stroke 0.3s;
}

.feature.is-fever .thermo .threshold {
    opacity: 0.9;
}

.feature.is-fever .thermo .fever-tag {
    opacity: 1;
    transform: none;
}

.feature.is-fever .thermo .probe-dot {
    fill: var(--alert);
}

.feature.is-fever .thermo .probe-ring {
    stroke: var(--alert);
    opacity: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: probe-pulse 1s var(--ease-out) infinite;
}

.feature.is-fever .thermo .pod-glow {
    opacity: 0.28;
}

.feature.is-fever .thermo .led {
    fill: var(--alert);
    stroke: var(--alert);
}

.feature.is-fever .thermo .button-ring,
.feature.is-fever .thermo .button {
    stroke: var(--alert);
}

@keyframes probe-pulse {
    from {
        transform: scale(0.8);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.feature-art {
    cursor: crosshair;
}

.feature-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--gold-bright);
    font-size: var(--step--1);
    font-weight: 500;
}

.feature-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 180, 90, 0.18);
}

.feature h3 {
    font-size: var(--step-3);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.04em;
}

.feature-sub {
    margin-top: 12px;
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.4;
    max-width: 40ch;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    color: var(--ink-2);
}

.feature-list li,
.skill-list li {
    position: relative;
    padding-left: 22px;
}

.feature-list li::before,
.skill-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
}

@media (min-width: 960px) {
    .feature {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: center;
        gap: clamp(40px, 5vw, 88px);
    }
}

.project-group {
    margin-top: clamp(64px, 8vw, 112px);
}

.group-title {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--ink-3);
    font-size: var(--step-0);
    font-weight: 500;
}

.project {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}

.project-art {
    grid-row: span 2;
    width: 72px;
    height: 48px;
    color: var(--ink-3);
    transition: color 0.35s;
}

.project-art .accent {
    color: var(--gold);
}

.project:hover .project-art {
    color: var(--ink);
}

.project h4 {
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.project-sub {
    margin-top: 6px;
    color: var(--gold-bright);
    font-size: var(--step--1);
    font-weight: 500;
}

.project-body {
    grid-column: 2;
    display: grid;
    gap: 10px;
    color: var(--ink-2);
    max-width: 68ch;
}

@media (min-width: 960px) {
    .project {
        grid-template-columns: 120px minmax(240px, 0.9fr) 1.4fr;
        gap: 0 clamp(24px, 3vw, 48px);
        padding: 40px 0;
    }

    .project-art {
        grid-row: auto;
        width: 120px;
        height: 80px;
    }

    .project-body {
        grid-column: 3;
        grid-row: 1;
    }
}

/* Listes à puces des projets */

.skill-list {
    display: grid;
    gap: 10px;
    color: var(--ink-2);
}

/* ---------- Parcours ---------- */

.timeline {
    position: relative;
    display: grid;
    gap: 0;
    padding-left: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--rule-strong);
}

.timeline-fill {
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--gold);
    transform-origin: top;
    transform: scaleY(var(--p, 1));
}

.job {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 0 0 48px;
}

.job::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 7px;
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: var(--bg);
}

.job-dates {
    color: var(--gold-bright);
    font-size: var(--step--1);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.job h3 {
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.job-org {
    color: var(--ink);
    font-weight: 500;
}

.job-org span {
    color: var(--ink-3);
    font-weight: 400;
}

.job ul {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-left: 1.1em;
    color: var(--ink-2);
    max-width: 70ch;
}

.job li::marker {
    color: var(--ink-3);
}

@media (min-width: 960px) {
    .job {
        grid-template-columns: 220px 1fr;
        gap: 0 48px;
        padding-bottom: 56px;
    }

    .job-dates {
        padding-top: 6px;
    }

    .job-main {
        display: grid;
        gap: 6px;
    }
}

.education {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--rule-strong);
}

.education h3 {
    color: var(--ink-3);
    font-size: var(--step-0);
    font-weight: 500;
}

.degree {
    display: grid;
    gap: 2px;
}

.degree strong {
    font-size: var(--step-1);
}

.degree span {
    color: var(--ink-2);
}

@media (min-width: 960px) {
    .education {
        grid-template-columns: 220px 1fr 1fr;
        gap: 48px;
    }
}

.education + .education {
    margin-top: 32px;
    padding-top: 32px;
    border-top-color: var(--rule);
}

/* Formations certifiantes : liste serrée, l'organisme sous l'intitulé */
.training-list {
    display: grid;
    gap: 14px 48px;
}

.training-list li {
    display: grid;
    align-content: start;
    gap: 2px;
}

.training-list b {
    font-weight: 500;
    line-height: 1.35;
}

.training-list span {
    color: var(--ink-3);
    font-size: var(--step--1);
}

@media (min-width: 960px) {
    .training-list {
        grid-column: 2 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Publications & brevets ---------- */

.pubs {
    display: grid;
    gap: 64px;
}

.col-title {
    margin-bottom: 20px;
    font-size: var(--step-1);
    font-weight: 600;
}

.pub-list {
    border-top: 1px solid var(--rule-strong);
}

.pub-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}

.pub-title {
    font-weight: 500;
    line-height: 1.35;
}

.pub-venue {
    grid-column: 1;
    color: var(--ink-3);
    font-size: var(--step--1);
}

.pub-year {
    grid-row: 1;
    grid-column: 2;
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
}

.family {
    padding: 22px 0 6px;
    border-top: 1px solid var(--rule-strong);
}

.family + .family {
    margin-top: 28px;
}

.family h4 {
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.25;
}

.family-meta {
    margin-top: 4px;
    color: var(--ink-3);
    font-size: var(--step--1);
}

.filings {
    display: grid;
    gap: 2px;
    margin-top: 16px;
}

.filings li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 9px 0;
    font-size: var(--step--1);
    color: var(--ink-2);
    border-bottom: 1px dashed var(--rule);
}

@media (min-width: 520px) {
    .filings li {
        grid-template-columns: 7em 1fr;
        gap: 12px;
        padding: 7px 0;
    }
}

.filings b {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.filings .granted {
    color: var(--gold-bright);
}

@media (min-width: 960px) {
    .pubs {
        grid-template-columns: 1fr 1fr;
        gap: clamp(48px, 6vw, 112px);
    }
}

/* ---------- Contact ---------- */

.contact {
    position: relative;
    overflow: hidden;
    padding: var(--section-space) 0 0;
    isolation: isolate;
}

.leaf--contact {
    width: min(110vw, 760px);
    right: -40vw;
    top: 8%;
    transform: rotate(-150deg);
    z-index: -1;
    opacity: 0.9;
}

.contact-lede {
    max-width: 24ch;
    font-size: var(--step-3);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.contact-mail {
    display: inline-block;
    margin-top: clamp(32px, 5vw, 64px);
    font-size: clamp(1.7rem, 0.6rem + 6vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    text-decoration: none;
    word-break: break-word;
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat;
    padding-bottom: 0.08em;
    transition: background-size 0.6s var(--ease-out), color 0.3s;
}

.contact-mail:hover {
    background-size: 100% 2px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 36px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-2);
}

.contact-links svg {
    width: 18px;
    height: 18px;
}

.contact-links a:hover {
    color: var(--gold-bright);
}

@media (min-width: 900px) {
    .leaf--contact {
        right: -10vw;
        top: -4%;
    }
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: clamp(96px, 12vw, 180px);
    padding: 24px 0 32px;
    border-top: 1px solid var(--rule);
    color: var(--ink-3);
    font-size: var(--step--1);
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .pcb-pulse {
        display: none;
    }
}
