:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --accent: #111111;
  --accent-soft: #ececec;
  --menu-bg: #000000;
  --menu-fg: #ffffff;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); color: var(--fg); }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--gutter);
  z-index: 50;
  font-weight: 500;
}
.menu-btn {
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  display: flex; gap: 4px; align-items: center;
}
.menu-btn .plus { display: inline-block; transition: transform .4s ease; }
body.menu-open .menu-btn { color: var(--menu-fg); }
body.menu-open .menu-btn .plus { transform: rotate(45deg); }

/* ---------- Menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.6);
  opacity: 0; pointer-events: none; transition: opacity .5s ease; z-index: 40;
}
.menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(45vw, 640px);
  background: var(--menu-bg); color: var(--menu-fg);
  padding: 110px var(--gutter) var(--gutter);
  transform: translateX(100%);
  transition: transform .7s cubic-bezier(.77,0,.18,1);
  z-index: 45;
  display: flex; flex-direction: column; gap: 48px;
}
body.menu-open .menu { transform: translateX(0); }
body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }

.menu-links { list-style: none; }
.menu-links a {
  display: block; font-size: 26px; line-height: 1.1; font-weight: 500;
  letter-spacing: -0.03em; overflow: hidden;
}
.menu-links a span {
  display: inline-block; transform: translateY(110%);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
body.menu-open .menu-links a span { transform: translateY(0); }
.menu-links li:nth-child(2) span { transition-delay: .05s; }
.menu-links li:nth-child(3) span { transition-delay: .1s; }
.menu-links li:nth-child(4) span { transition-delay: .15s; }
.menu-links a:hover { opacity: .5; }

.menu-label { color: #8f8f8f; margin-bottom: 4px; }
.menu-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 12px; }
.menu-socials a:hover, .menu a.mail:hover { opacity: .5; }

/* ---------- Home : carousel ---------- */
.stage {
  position: fixed; inset: 0;
  perspective: 1400px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.stage.dragging { cursor: grabbing; }
.track {
  position: absolute; left: 50%; top: 46%;
  transform-style: preserve-3d;
}
.card {
  position: absolute;
  width: 360px; height: 460px;
  margin-left: -180px; margin-top: -230px;
  background-size: cover; background-position: center;
  will-change: transform;
  backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  color: #fff;
  user-select: none;
}
.card.light { color: #111; }
.card .c-title { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.card .c-meta { display: flex; justify-content: space-between; font-size: 11px; opacity: .8; }
.card.has-image .c-title, .card.has-image .c-meta { display: none; }

.footer {
  position: fixed; inset: auto 0 0 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: var(--gutter);
  z-index: 10; pointer-events: none;
}
.footer > * { pointer-events: auto; }
.footer .date { color: var(--muted); }
.footer .clock { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.footer .center { text-align: center; max-width: 340px; }
.footer .center p { font-weight: 500; margin-bottom: 14px; }
.footer .center a { color: var(--muted); }
.footer .center a:hover { color: var(--fg); }

.current {
  position: fixed; left: 50%; top: calc(46% + 250px); transform: translateX(-50%);
  text-align: center; z-index: 5; font-weight: 500;
}
.current small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Pages internes ---------- */
.page { padding: 110px var(--gutter) 80px; max-width: 1400px; margin: 0 auto; }
.page h1 {
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 500; letter-spacing: -0.05em; line-height: .95;
  margin-bottom: 60px;
}

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px;
}
.tile .thumb {
  aspect-ratio: 4 / 5; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 34px; font-weight: 600; letter-spacing: -0.04em; color: #fff;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.tile .thumb.light { color: #111; }
.tile .thumb.has-image span { display: none; }
.tile { overflow: hidden; }
.tile:hover .thumb { transform: scale(.97); }
.tile .info { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 500; }
.tile .info span:last-child { color: var(--muted); font-weight: 400; }

.cv { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.cv section { display: contents; }
.cv h2 { font-size: 13px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.cv .body { border-top: 1px solid var(--line); padding-top: 14px; }
.cv .lead { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.cv .row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding-bottom: 22px; }
.cv .row .when { color: var(--muted); }
.cv .row strong { font-weight: 500; display: block; }
.cv .row p { color: var(--muted); margin-top: 4px; max-width: 520px; }
.page h1 + .subtitle { margin-top: -40px; margin-bottom: 70px; }
.subtitle {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  font-size: clamp(16px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.02em;
  color: var(--muted);
}
.subtitle i { font-style: normal; color: var(--line); }

.cv .lead + .lead { margin-top: 18px; }

/* Expériences */
.job { padding-bottom: 44px; }
.job + .job { border-top: 1px solid var(--line); padding-top: 28px; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.job-head h3 {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--accent);
}
.job-period { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.job-context { color: var(--muted); margin-top: 4px; max-width: 620px; }
.job-path {
  display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-weight: 500;
}
.roles { margin-top: 22px; display: grid; gap: 26px; }
.roles.timeline { border-left: 2px solid var(--accent-soft); padding-left: 20px; margin-left: 4px; }
.roles.timeline .role { position: relative; }
.roles.timeline .role::before {
  content: ""; position: absolute; left: -27px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.roles.timeline .role:first-child::before { background: var(--accent); }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.role-head h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.role-head span { color: var(--muted); }
.role ul { margin-top: 10px; padding-left: 0; list-style: none; max-width: 680px; }
.role li { position: relative; padding-left: 16px; margin-top: 6px; color: #3a3a3a; line-height: 1.5; }
.role li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { list-style: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.contact-big { font-size: clamp(24px, 4vw, 52px); letter-spacing: -0.04em; font-weight: 500; }
.contact-big:hover { opacity: .5; }

.btn {
  display: inline-block; margin-top: 24px; padding: 10px 18px;
  background: var(--fg); color: var(--bg); border-radius: 99px; font-weight: 500;
}
.btn:hover { opacity: .8; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .menu { width: 100vw; }
  .card { width: 210px; height: 270px; margin-left: -105px; margin-top: -135px; }
  .current { top: calc(46% + 150px); }
  .footer { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .footer .center { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .grid { grid-template-columns: 1fr; }
  .cv { grid-template-columns: 1fr; gap: 12px; }
  .cv h2 { border: 0; padding-top: 28px; }
  .cv .row { grid-template-columns: 1fr; gap: 2px; }
}

@media print {
  .header, .menu, .menu-overlay { display: none; }
  .page { padding-top: 20px; }
}

/* ---------- Ajustements CV ---------- */
.header { background: var(--bg); transition: background .3s; }
body.menu-open .header { background: transparent; }
.subtitle i { display: none; }
.subtitle span:not(:last-child)::after { content: "|"; color: var(--line); margin-left: 14px; }
.job-path { border-radius: 12px; }

/* ---------- Réalisations (galeries) ---------- */
.work { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); }
.work-label { color: var(--muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.work-group + .work-group { margin-top: 30px; }
.work-group h5 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.work-group > p { color: var(--muted); margin-top: 4px; max-width: 620px; line-height: 1.5; }
.gallery { columns: 3 200px; column-gap: 12px; margin-top: 14px; }
.gallery.single { columns: 1; }
.shot {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: #f4f4f4;
  cursor: zoom-in; break-inside: avoid; overflow: hidden;
}
.shot img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.shot:hover img { transform: scale(1.03); opacity: .9; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 16px 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: #bbb; margin-top: 12px; text-align: center; }
.lb-close, .lb-nav { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; }
.lb-close { position: absolute; top: 20px; right: 20px; font-weight: 500; }
.lb-nav { font-size: 24px; padding: 12px; opacity: .7; flex-shrink: 0; }
.lb-nav:hover, .lb-close:hover { opacity: 1; }
@media (max-width: 760px) {
  .gallery { columns: 2; column-gap: 8px; }
  .shot { margin-bottom: 8px; }
  .lb-nav { position: absolute; bottom: 16px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
}
@media print { .work, .lightbox { display: none; } }

/* ---------- Écran d'arrivée (accueil) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 300;
  background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s cubic-bezier(.77,0,.18,1);
}
.splash.leave { transform: translateY(100%); }   /* le rideau noir descend */
.splash-name {
  font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; white-space: pre;
}
.splash-name .ghost { opacity: 0; }
body.intro-running .footer,
body.intro-running .current,
body.intro-running .header { opacity: 0; }
.footer, .current { transition: opacity .8s ease .5s; }
.header { transition: background .3s, opacity .8s ease .5s; }

/* ---------- Formation : diplômes / certifications ---------- */
.edu-group + .edu-group { margin-top: 16px; padding-top: 22px; border-top: 1px dashed var(--line); }
.edu-label { color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* ---------- Compétences : bulles colorées ---------- */
:root {
  --jammy: #F65035; --verge: #7FBFA2; --ripple: #F9CDCC; --proud: #3845AD; --rays: #FFCD64;
}
.chips li {
  border: 0; padding: 8px 14px; font-weight: 500; cursor: default;
  background: #f1f1f1; color: var(--fg);
  opacity: 0; transform: translateY(10px) scale(.9);
  transition:
    background-color .45s ease, color .45s ease,
    opacity .5s ease calc(var(--i) * 45ms),
    transform .5s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 45ms);
}
.chips.in li { opacity: 1; transform: none; }
.chips.in li.c0 { background: var(--jammy); color: #fff; }
.chips.in li.c1 { background: var(--verge);  color: #111; }
.chips.in li.c2 { background: var(--ripple); color: #111; }
.chips.in li.c3 { background: var(--proud);  color: #fff; }
.chips.in li.c4 { background: var(--rays);   color: #111; }
.chips.in li:hover { transform: translateY(-3px) rotate(-2deg) scale(1.06); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .chips li { transition: background-color .3s, color .3s; opacity: 1; transform: none; }
}
@media print { .chips li { opacity: 1; transform: none; } }
.chips.settled li { transition-delay: 0s; }

/* ---------- Compétences : bulles texturées ---------- */
.chips.in li {
  background-size: 320px auto;
  background-position: calc(var(--i) * -37px) calc(var(--i) * -53px);
  transition-property: background-image, background-color, color, opacity, transform;
}
.chips.in li.c0 { background-color: #8fb7dc; background-image: url("images/textures/nuages.jpg");  color: #10233a; }
.chips.in li.c1 { background-color: #33a9e6; background-image: url("images/textures/piscine.jpg"); color: #0b1b3a; }
.chips.in li.c2 { background-color: #3b6f86; background-image: url("images/textures/reflets.jpg"); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.chips.in li.c3 { background-color: #e5461f; background-image: url("images/textures/orange.jpg");  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.chips.in li.c4 { background-color: #2a24e0; background-image: url("images/textures/bleu.jpg");    color: #fff; }

/* ---------- Compétences : couleurs de la palette + texture en surimpression ---------- */
.chips li { position: relative; isolation: isolate; overflow: hidden; }
.chips.in li { background-image: none !important; text-shadow: none !important; }
.chips.in li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--tex); background-size: 320px auto;
  background-position: calc(var(--i) * -37px) calc(var(--i) * -53px);
  filter: grayscale(1) contrast(1.35);
  mix-blend-mode: soft-light; opacity: .95;
}
.chips.in li.c0 { background-color: var(--jammy);  color: #fff; --tex: url("images/textures/orange.jpg"); }
.chips.in li.c1 { background-color: var(--verge);  color: #111; --tex: url("images/textures/piscine.jpg"); }
.chips.in li.c2 { background-color: var(--ripple); color: #111; --tex: url("images/textures/nuages.jpg"); }
.chips.in li.c3 { background-color: var(--proud);  color: #fff; --tex: url("images/textures/bleu.jpg"); }
.chips.in li.c4 { background-color: var(--rays);   color: #111; --tex: url("images/textures/reflets.jpg"); }
.chips.in li.c0::before { opacity: .55; filter: grayscale(1) contrast(1.1); }
.chips.in li.c1::before, .chips.in li.c2::before { opacity: 1; filter: grayscale(1) contrast(1.8); }
.chips.in li.c3::before { opacity: .8; }

/* ---------- Réalisations : galeries horizontales ---------- */
.work-group + .work-group { margin-top: 48px; }
.work-group h5 { font-size: 18px; letter-spacing: -0.02em; }
.strip-wrap { margin-top: 18px; position: relative; }
.strip-wrap::before, .strip-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.strip-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.strip {
  display: flex; align-items: center; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 50%;            /* permet de centrer la première et la dernière image */
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.single { justify-content: center; padding: 10px 0; cursor: default; }
.strip .shot {
  flex: 0 0 auto; width: auto; margin: 0; background: none; height: 320px;
  scroll-snap-align: center; cursor: pointer;
  transition: transform .25s ease-out, opacity .25s ease-out;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.25);
}
.strip .shot img { height: 100%; width: auto; max-width: none; }
.strip .shot:hover img { transform: none; opacity: 1; }
.strip-bar {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.strip-count { font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 500; }
.strip-caption { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-nav { display: flex; gap: 4px; }
.strip-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; transition: background .2s, color .2s;
}
.strip-nav button:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 760px) {
  .strip .shot { height: 220px; }
  .strip-bar { grid-template-columns: 56px 1fr auto; }
}
.cv .body, .job, .work, .work-group, .strip-wrap { min-width: 0; }
.strip { width: 100%; }
@media (max-width: 760px) {
  .strip .shot { height: auto; }
  .strip .shot img { height: auto; max-height: 240px; width: auto; max-width: 78vw; }
}

/* ---------- Compétences : éventail façon risographie ---------- */
.fan { position: relative; height: 640px; isolation: isolate; }
.fan-inner {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(var(--spin, 0deg)); transition: transform .25s linear;
}
.band {
  position: absolute; left: 0; top: 0;
  height: var(--h); margin-top: calc(var(--h) / -2);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 16px 0 105px;
  transform-origin: 0 50%;
  transform: rotate(-100deg) scaleX(.15);
  opacity: 0;
  mix-blend-mode: multiply;
  transition:
    transform 1s cubic-bezier(.2,.9,.2,1) calc(var(--i) * 55ms),
    opacity .5s ease calc(var(--i) * 55ms);
  cursor: default;
}
.fan.open .band { transform: rotate(var(--a)); opacity: 1; }
.fan.ready .band { transition-delay: 0s; transition-duration: .45s; }
/* encre : couleur irrégulière + bords « imprimés » */
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,.30), transparent 42%),
    radial-gradient(circle at 70% 75%, rgba(255,255,255,.18), transparent 48%),
    radial-gradient(circle at 90% 20%, rgba(0,0,0,.08), transparent 40%),
    var(--c);
  filter: url(#riso);
}
/* grain de papier */
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.4 0 0 0 -.62'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  opacity: .55; filter: url(#riso);
}
.band span {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  line-height: 1.15; color: #161616; max-width: 150px; text-align: right;
}
.band.flip span { transform: rotate(180deg); text-align: left; }
.fan.focus .band { opacity: .28; }
.fan.focus .band:hover { opacity: 1; transform: rotate(var(--a)) scale(1.08); z-index: 5; }
.fan-hub {
  position: absolute; width: 54px; height: 54px; left: -27px; top: -27px; border-radius: 50%;
  background: #111; filter: url(#riso); z-index: 20;
  transform: scale(0); transition: transform .7s cubic-bezier(.34,1.56,.64,1) .35s;
}
.fan.open .fan-hub { transform: scale(1); }

/* mobile : bandes empilées de biais, comme du papier découpé */
@media (max-width: 760px) {
  .fan { height: auto; padding: 10px 0; }
  .fan-inner { position: static; width: auto; height: auto; transform: none; display: flex; flex-wrap: wrap; gap: 6px 4px; }
  .band {
    position: relative; margin: 0; height: auto; padding: 11px 14px;
    justify-content: center; transform: rotate(var(--tilt)) translateY(14px); 
  }
  .fan.open .band { transform: rotate(var(--tilt)); }
  .fan.focus .band:hover { transform: rotate(0deg) scale(1.06); }
  .band span, .band.flip span { transform: none; text-align: center; max-width: none; }
  .fan-hub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .band, .fan-inner, .fan-hub { transition: none; }
}
@media print {
  .fan { height: auto; }
  .fan-inner { position: static; transform: none; width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 6px; }
  .band { position: relative; margin: 0; height: auto; padding: 6px 10px; transform: none !important; opacity: 1; }
  .band span { transform: none !important; max-width: none; }
  .fan-hub { display: none; }
}
.band { width: max-content; padding-left: 118px; }
.band span { max-width: 170px; }
@media (max-width: 760px) { .band { width: auto; padding-left: 14px; } }

/* ---------- Langues : échelle européenne A1 → C2 ---------- */
.langs { display: grid; gap: 26px; max-width: 620px; }
.lang-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lang-head strong { font-size: 15px; font-weight: 600; }
.lang-badge { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.lang-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.seg { position: relative; height: 26px; background: #efefef; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.seg::before {
  content: ""; position: absolute; inset: 0; background: var(--fg);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1) calc(var(--k) * 90ms + var(--d, 0ms));
}
.langs.in .seg.on::before { transform: scaleX(1); }
.seg i { position: relative; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: #9a9a9a; transition: color .3s calc(var(--k) * 90ms + 200ms); }
.langs.in .seg.on i { color: #fff; }
/* niveau en cours d'apprentissage : hachures qui défilent */
.seg.learning { background: repeating-linear-gradient(-45deg, #d6d6d6 0 5px, #f3f3f3 5px 10px); background-size: 28px 28px; }
.langs.in .seg.learning { animation: hatch 1.2s linear infinite; }
.seg.learning i { color: var(--fg); }
@keyframes hatch { to { background-position: 28px 0; } }
.lang-note { color: var(--muted); margin-top: 8px; }
.lang:nth-child(2) { --d: 150ms; } .lang:nth-child(3) { --d: 300ms; }
@media (prefers-reduced-motion: reduce) { .seg::before, .seg i { transition: none; } .langs.in .seg.learning { animation: none; } }
@media print { .seg::before { transform: scaleX(1) !important; } .seg:not(.on)::before { display: none; } }

/* ---------- Menu numéroté ---------- */
.menu-links a { display: flex; }
.menu-links em {
  font-style: normal; font-size: 12px; font-weight: 500; color: #7a7a7a;
  display: inline-block; width: 34px; vertical-align: top; transform: translateY(6px);
}
.menu-links a.is-current span { opacity: .45; }

/* ---------- Page « Qui suis-je ? » ---------- */
.about-text { max-width: 900px; }
.about-text p {
  font-size: clamp(22px, 2.8vw, 38px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 500;
  opacity: 0; transform: translateY(18px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.15s + var(--i) * .25s);
}
.about-text p + p { margin-top: 28px; color: #555; }
.about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.about-links .btn { margin-top: 0; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); opacity: 1; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Page Contact ---------- */
.contact-intro { font-size: clamp(18px, 2vw, 24px); color: #555; letter-spacing: -0.02em; max-width: 620px; }
.contact-mail {
  display: inline-block; margin: 28px 0 70px;
  font-size: clamp(30px, 6.5vw, 96px); font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  border-bottom: 2px solid transparent; transition: border-color .3s;
  word-break: break-all;
}
.contact-mail:hover { border-color: var(--fg); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 900px; }
.contact-socials { list-style: none; }
.contact-link:hover { opacity: .5; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Page « Qui suis-je ? » (mise en page éditoriale) ---------- */
.about-page { max-width: none; }
.page h1.about-headline {
  font-size: clamp(30px, 4.4vw, 68px); font-weight: 600; letter-spacing: -0.055em; line-height: 1;
  max-width: 1500px; margin-bottom: clamp(70px, 10vw, 140px);
  opacity: 0; transform: translateY(18px); animation: rise 1s cubic-bezier(.2,.8,.2,1) .1s forwards;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-grid h2 { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.about-body { max-width: 760px; }
.about-body p {
  font-size: 14.5px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(12px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.about-body p + p { margin-top: 14px; }
.about-body p:nth-child(1) { animation-delay: .35s; } .about-body p:nth-child(2) { animation-delay: .45s; }
.about-body p:nth-child(3) { animation-delay: .55s; } .about-body p:nth-child(4) { animation-delay: .65s; }
.about-body p:nth-child(5) { animation-delay: .75s; }
.about-photo { margin: 36px 0 0; width: min(420px, 100%); overflow: hidden; background: #eee; }
.about-photo img {
  display: block; width: 100%; height: auto;
  filter: none;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.about-photo:hover img { transform: scale(1.03); }
.about-page .about-links { margin-top: 36px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-body p { font-size: 15px; line-height: 1.4; }
}

/* ---------- « Qui suis-je ? » : services & références ---------- */
.about-section { margin-top: clamp(90px, 11vw, 150px); }
.services-side { display: flex; flex-direction: column; gap: 18px; }
.services-visual {
  position: sticky; top: 90px; margin: 0; width: min(300px, 70%); aspect-ratio: 4 / 5;
  overflow: hidden; background: #f1f1f1;
}
.services-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 3s ease;
}
.services-visual img.on { opacity: 1; transform: scale(1); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; align-content: start; }
.service-cat { color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.service ul { list-style: none; }
.service li { font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; }

.refs { list-style: none; border-top: 1px solid var(--line); }
.refs li {
  display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 16px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s ease;
}
.refs li:hover { padding-left: 8px; }
.ref-what { color: var(--muted); }
.ref-client { font-weight: 500; }
.ref-year { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Pied de page des pages intérieures ---------- */
.site-footer {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr 1fr; gap: 24px;
  padding: 60px var(--gutter) 28px; margin-top: 60px; border-top: 1px solid var(--line);
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.site-footer a { display: block; font-weight: 500; line-height: 1.45; }
.site-footer a:hover { opacity: .5; }
.sf-label { color: var(--muted); margin-bottom: 6px; }
.sf-time { text-align: right; color: var(--muted); display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .services-visual { position: relative; top: 0; width: 100%; }
  .services { grid-template-columns: 1fr; gap: 24px; }
  .refs li { grid-template-columns: 1fr auto; }
  .ref-what { grid-column: 1 / -1; font-size: 12px; margin-bottom: -10px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .sf-time { grid-column: 1 / -1; text-align: left; }
}
@media print { .site-footer { display: none; } }
.refs li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 90px; }
@media (max-width: 760px) { .refs li { grid-template-columns: minmax(0, 1fr) auto; } }
.about-photo { width: min(640px, 100%); }
.about-photo.portrait { width: min(420px, 100%); }

/* « Qui suis-je ? » épuré : texte large comme l'exemple */
.about-page .about-grid { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
.about-page .about-body { max-width: none; }
.about-page .about-photo { margin-top: 30px; }
.about-page { padding-bottom: 120px; }
@media (max-width: 760px) { .about-page .about-grid { grid-template-columns: 1fr; } }
/* cadrage de la maquette « Portrait – About » : 640 × 800, fond #111 */
.about-page .about-photo.portrait { width: min(640px, 100%); aspect-ratio: 4 / 5; background: #111; }
.about-page .about-photo.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Accueil : projets en affiches éditoriales ---------- */
:root { --paper: #e7e5df; --ink-red: #d2381f; }
.card.poster {
  padding: 0; display: block; color: #111; overflow: hidden;
  container-type: inline-size;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
.poster > * { position: absolute; }
.poster .p-img { overflow: hidden; background: #ccc; }
.poster .p-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.poster .p-title {
  font-family: "Gaegu", cursive; font-weight: 400; color: var(--ink-red);
  font-size: var(--fs); line-height: .92; letter-spacing: .06em;
  display: flex; flex-wrap: wrap; gap: 0 .35em; z-index: 2;
}
.poster .p-meta {
  font-size: 2.9cqw; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em;
  display: flex; flex-direction: column; z-index: 3;
}
.poster .p-meta b { font-weight: 600; }
.poster .p-note { font-size: 2.8cqw; line-height: 1.3; color: #222; z-index: 3; }
.poster .p-note b { font-weight: 600; }

/* 0 — image à gauche, titre qui déborde à droite (« east chinese pop up dinner ») */
.layout-0 .p-img   { left: 5%; top: 11%; width: 56%; height: 62%; }
.layout-0 .p-title { left: 20%; right: 4%; top: 22%; justify-content: flex-end; text-align: right; }
.layout-0 .p-meta  { right: 5%; top: 4%; text-align: right; }
.layout-0 .p-note  { left: 5%; bottom: 4%; }

/* 1 — image centrée, titre en dessous (« Layering ») */
.layout-1 .p-img   { left: 25%; top: 7%; width: 50%; height: 58%; }
.layout-1 .p-title { left: 6%; right: 6%; top: 68%; justify-content: center; }
.layout-1 .p-meta  { display: none; }
.layout-1 .p-note  { left: 9%; bottom: 5%; right: 40%; }

/* 2 — image en haut à gauche, titre par-dessus, légende dessous (« Good style ») */
.layout-2 .p-img   { left: 4%; top: 4%; width: 52%; height: 60%; }
.layout-2 .p-title { left: 30%; right: 4%; top: 10%; }
.layout-2 .p-meta  { display: none; }
.layout-2 .p-note  { left: 4%; top: 66%; }

/* 3 — grande image à droite, titre à l'encre noire à gauche (« mid90s ») */
.layout-3 .p-img   { left: 30%; top: 3%; width: 67%; height: 80%; }
.layout-3 .p-title { left: 5%; right: 30%; top: 40%; color: #111; }
.layout-3 .p-meta  { left: 5%; top: 32%; font-size: 2.5cqw; }
.layout-3 .p-note  { left: 30%; right: 3%; bottom: 4%; font-size: 2.4cqw; text-transform: uppercase; letter-spacing: .03em; }

/* sans image : affiche purement typographique */
.layout-type .p-title { left: 7%; right: 7%; top: 18%; }
.layout-type .p-meta  { right: 6%; top: 5%; text-align: right; }
.layout-type .p-note  { left: 7%; bottom: 5%; }

/* l'ancienne mise en page des cartes ne s'applique plus aux affiches */
.card.poster .c-title, .card.poster .c-meta { display: none; }

/* =========================================================
   Accueil : 9 affiches différentes (couleurs, typos, mises en page)
   ========================================================= */
.card.affiche {
  padding: 0; display: block; overflow: hidden; container-type: inline-size;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
.affiche::after {   /* grain de papier */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
.affiche > * { position: absolute; margin: 0; }
.affiche .a-img { overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.affiche .a-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; pointer-events: none; }
.affiche .a-title, .affiche .a-title2 { font-weight: 400; line-height: .92; overflow: visible; }
.affiche .a-small { font-family: "Inter", sans-serif; font-size: 2.9cqw; line-height: 1.3; font-weight: 500; }
.affiche .a-num { font-family: "Inter", sans-serif; font-weight: 300; font-size: 8cqw; opacity: .6; top: 4%; right: 6%; }
.affiche .a-doodle svg, .affiche .a-arrow svg, .affiche .a-under svg { width: 100%; height: 100%; display: block; }

/* 1 — Cabinet : bleu profond, serif condensé capitales */
.d1 { --bg: #2f4db8; --ink: #f4efe6; }
.d1 .a-title { font-family: "Instrument Serif", serif; text-transform: uppercase; letter-spacing: -.01em; line-height: .84;
  left: 7%; right: 7%; top: 16%; height: 52%; }
.d1 .a-small { left: 7%; bottom: 7%; right: 35%; }

/* 2 — bleu ciel, pinceau rouge, étoile */
.d2 { --bg: #b3cfdd; --ink: #c1121f; }
.d2 .a-title { font-family: "Caveat Brush", cursive; left: 6%; top: 4%; width: 62%; height: 21%; line-height: .85; }
.d2 .a-doodle { left: 72%; top: 7%; width: 9cqw; height: 9cqw; transform: rotate(14deg); }
.d2 .a-img { left: 20%; top: 27%; width: 68%; height: 50%; }
.d2 .a-caption { font-family: "Caveat Brush", cursive; font-size: 8cqw; line-height: 1; right: 7%; bottom: 7%; width: 75%; text-align: right; transform: rotate(-5deg); }

/* 3 — crème, annotations manuscrites rouge sombre */
.d3 { --bg: #efe7da; --ink: #8b1e1e; }
.d3 .a-title { font-family: "Caveat", cursive; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  left: 7%; top: 9%; width: 54%; height: 10%; line-height: 1; }
.d3 .a-under { left: 6%; top: 19.5%; width: 52%; height: 3.5%; }
.d3 .a-note1 { font-family: "Caveat", cursive; font-weight: 600; font-size: 5cqw; line-height: 1; text-transform: uppercase; letter-spacing: .05em;
  right: 7%; top: 8%; width: 32%; text-align: center; }
.d3 .a-arrow { right: 20%; top: 17%; width: 9cqw; height: 9cqw; }
.d3 .a-img { left: 12%; top: 27%; width: 76%; height: 47%; }
.d3 .a-note2 { font-family: "Caveat", cursive; font-weight: 600; font-size: 9cqw; line-height: 1; right: 9%; bottom: 8%; letter-spacing: .06em;
  border-bottom: .5cqw solid currentColor; padding-bottom: 1cqw; }

/* 4 — rose, grand titre éclaté (Inter serré) */
.d4 { --bg: #f3b8c3; --ink: #c4321f; }
.d4 .a-title, .d4 .a-title2 { font-family: "Inter", sans-serif; font-weight: 500; letter-spacing: -.065em; line-height: .9; white-space: nowrap; }
.d4 .a-title  { left: 3%; right: 3%; top: 2%; height: 17%; }
.d4 .a-small  { left: 52%; top: 24%; font-size: 3.4cqw; text-transform: uppercase; line-height: 1.05; letter-spacing: -.02em; }
.d4 .a-title2 { left: 3%; right: 3%; top: 41%; height: 13%; text-align: right; }
.d4 .a-img    { left: 6%; right: 6%; top: 55%; bottom: 6%; }

/* 5 — vert sauge, écriture fine (« Layering ») */
.d5 { --bg: #dde4d0; --ink: #b4291a; }
.d5 .a-img   { left: 24%; top: 6%; width: 52%; height: 54%; }
.d5 .a-title { font-family: "Gaegu", cursive; letter-spacing: .06em; text-align: center; left: 5%; right: 5%; top: 63%; height: 20%; }
.d5 .a-small { left: 9%; right: 30%; bottom: 5%; color: #2a2a2a; font-weight: 400; }
.d5 .a-small b { font-weight: 600; }

/* 6 — jaune, grotesque gras noir + numéro */
.d6 { --bg: #f2d14c; --ink: #141414; }
.d6 .a-title { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: .95; left: 7%; top: 10%; right: 22%; height: 36%; }
.d6 .a-small { left: 7%; top: 52%; width: 40%; font-weight: 600; font-size: 3.2cqw; }
.d6 .a-img   { right: 7%; bottom: 6%; width: 46%; height: 46%; }

/* 7 — orange, italique élégant crème + cœur */
.d7 { --bg: #e65a2a; --ink: #fff3e4; }
.d7 .a-title { font-family: "Instrument Serif", serif; font-style: italic; letter-spacing: -.02em; left: 7%; right: 7%; top: 5%; height: 20%; }
.d7 .a-img   { left: 7%; top: 30%; width: 56%; height: 52%; }
.d7 .a-small { right: 6%; top: 32%; width: 27%; }
.d7 .a-doodle { right: 9%; bottom: 9%; width: 20cqw; height: 18cqw; transform: rotate(-8deg); }

/* 8 — vert profond, serif capitales centré */
.d8 { --bg: #2e5a44; --ink: #f2ebdd; }
.d8 .a-title { font-family: "Instrument Serif", serif; text-transform: uppercase; text-align: center; line-height: .86; left: 6%; right: 6%; top: 6%; height: 30%; }
.d8 .a-img   { left: 7%; right: 7%; top: 41%; height: 40%; }
.d8 .a-small { left: 6%; right: 6%; bottom: 6%; text-align: center; letter-spacing: .04em; text-transform: uppercase; font-size: 2.6cqw; }

/* 9 — bleu clair, titre en escalier + texte machine */
.d9 { --bg: #bcd6ec; --ink: #2445a6; }
.d9 .a-title, .d9 .a-title2 { font-family: "Inter", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }
.d9 .a-title  { left: 7%; top: 12%; width: 60%; height: 9%; }
.d9 .a-title2 { right: 7%; top: 24%; width: 70%; height: 9%; text-align: right; }
.d9 .a-img    { left: 7%; right: 7%; top: 38%; height: 41%; }
.d9 .a-small  { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 400; font-size: 2.7cqw; left: 7%; bottom: 6%; right: 30%; }
.d3 .a-title { width: 58%; white-space: nowrap; }
.d3 .a-under { width: 56%; }
.d3 .a-note1 { font-size: 4.2cqw; top: 6%; width: 30%; right: 5%; }
.d3 .a-arrow { top: 19%; right: 16%; width: 8cqw; height: 8cqw; }

/* ---------- Accueil : flèches de défilement ---------- */
.nav-arrow {
  position: fixed; top: 46%; transform: translateY(-50%); z-index: 20;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--fg); background: var(--bg); color: var(--fg);
  font: 500 20px/1 "Inter", sans-serif; cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.nav-arrow:hover { background: var(--fg); color: var(--bg); }
.nav-arrow.prev { left: max(24px, 4vw); }
.nav-arrow.next { right: max(24px, 4vw); }
.nav-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.nav-arrow.next:hover { transform: translateY(-50%) translateX(3px); }
body.intro-running .nav-arrow { opacity: 0; }
.nav-arrow { transition: background .25s, color .25s, transform .25s, opacity .8s ease .5s; }
.card.affiche { cursor: pointer; }
.card.affiche:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
@media (max-width: 760px) {
  .nav-arrow { top: auto; bottom: 92px; transform: none; width: 44px; height: 44px; }
  .nav-arrow.prev:hover, .nav-arrow.next:hover { transform: none; }
}

/* ---------- Fenêtre projet (zoom depuis l'affiche) ---------- */
.pm { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.pm.open { pointer-events: auto; visibility: visible; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(250,250,250,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s ease; }
.pm.open .pm-backdrop { opacity: 1; }
.pm.closing .pm-backdrop { opacity: 0; }
.pm-panel {
  position: absolute; left: 50%; top: 50%;
  width: min(1040px, 92vw); height: min(86vh, 860px);
  margin-left: calc(min(1040px, 92vw) / -2); margin-top: calc(min(86vh, 860px) / -2);
  background: var(--bg, #eee); color: var(--ink, #111);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.45);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.pm-panel::after {   /* même grain de papier que les affiches */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
.pm-content {
  position: relative; z-index: 1; height: 100%; overflow-y: auto;
  padding: clamp(28px, 4vw, 56px);
  opacity: 0; transition: opacity .3s ease;
}
.pm.open .pm-content { opacity: 1; transition-delay: .3s; }
.pm.closing .pm-content { opacity: 0; transition-delay: 0s; }
.pm-close {
  position: absolute; top: 18px; right: 20px; z-index: 3;
  background: none; border: 0; color: inherit; font: 500 14px "Inter", sans-serif; cursor: pointer;
}
.pm-close:hover { opacity: .6; }
.pm-meta { font: 500 13px/1.3 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.pm-title { font-size: clamp(40px, 7vw, 96px); line-height: .92; margin: 10px 0 24px; font-weight: 400; }
.pm-text { font: 500 clamp(15px, 1.4vw, 18px)/1.45 "Inter", sans-serif; max-width: 680px; letter-spacing: -.01em; }
.pm-gallery {
  display: flex; gap: 14px; margin-top: 34px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin;
}
.pm-gallery img {
  height: clamp(220px, 42vh, 420px); width: auto; flex: 0 0 auto; scroll-snap-align: start;
  background: rgba(255,255,255,.4); box-shadow: 0 10px 30px -14px rgba(0,0,0,.35);
}
.pm-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 16px; border-top: 1px solid currentColor; }
.pm-nav button { background: none; border: 0; color: inherit; font: 500 14px "Inter", sans-serif; cursor: pointer; padding: 6px 0; }
.pm-nav button:hover { opacity: .6; }
@media (max-width: 760px) {
  .pm-panel { width: 94vw; height: 88vh; margin-left: -47vw; margin-top: -44vh; }
  .pm-gallery img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .pm-panel, .pm-content, .pm-backdrop { transition: none; } }
@media (max-width: 760px) {
  .footer > div:nth-child(2) { display: none; }
  .footer .clock { grid-column: 2; grid-row: 1; }
  .footer .date { grid-row: 1; }
  .pm-content { padding-top: 58px; }
}

/* « Qui suis-je ? » : photo à côté du texte */
.about-page .about-grid.about-grid-3 {
  grid-template-columns: minmax(0, .32fr) minmax(0, 1fr) minmax(0, .72fr);
  gap: clamp(24px, 3vw, 48px); align-items: start;
}
.about-page .about-grid-3 .about-photo,
.about-page .about-grid-3 .about-photo.portrait { margin: 0; width: 100%; position: sticky; top: 90px; }
@media (max-width: 1000px) {
  .about-page .about-grid.about-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .about-page .about-grid-3 h2 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .about-page .about-grid.about-grid-3 { grid-template-columns: 1fr; }
  .about-page .about-grid-3 .about-photo { position: relative; top: 0; }
}

/* ---------- Flèches de l'accueil : bien visibles ---------- */
.nav-arrow {
  width: 68px; height: 68px; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  background: #111; color: #fff; border: 2px solid #111;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.45);
}
.nav-arrow svg { width: 28px; height: 28px; }
.nav-arrow:hover { background: #fff; color: #111; }
.nav-arrow.prev { left: max(20px, 5vw); }
.nav-arrow.next { right: max(20px, 5vw); }
@media (max-width: 760px) {
  .nav-arrow { width: 56px; height: 56px; bottom: 96px; }
  .nav-arrow svg { width: 24px; height: 24px; }
  .nav-arrow.prev { left: 20px; } .nav-arrow.next { right: 20px; }
}

/* ---------- Toutes les affiches : titres en Instrument Serif capitales ---------- */
.affiche .a-title, .affiche .a-title2 {
  font-family: "Instrument Serif", serif !important;
  font-style: normal !important; font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: -.01em !important; line-height: .86 !important;
}
/* légendes manuscrites → Instrument Serif italique, même famille */
.affiche .a-caption, .affiche .a-note1, .affiche .a-note2 {
  font-family: "Instrument Serif", serif !important; font-style: italic; font-weight: 400 !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
.d2 .a-caption { font-size: 7.5cqw; transform: none; }
.d3 .a-note1 { font-size: 4.6cqw; }
.d3 .a-note2 { font-size: 8cqw; }
.d4 .a-title, .d4 .a-title2 { white-space: normal; }

/* ---------- Logo de marque sur l'affiche ---------- */
.affiche .a-logo { left: 6%; bottom: 5.5%; width: 12cqw; height: 12cqw; border-radius: 22%; object-fit: cover; z-index: 4; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
.d2 .a-caption { width: 62%; }

/* ---------- Fenêtre projet : logo + vidéo + texte du post ---------- */
.pm-logo { position: static; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; margin-bottom: 16px; display: block; }
.pm-logo[hidden], .pm-video[hidden] { display: none; }
.pm-video {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid currentColor;
}
.pm-video-frame { position: relative; aspect-ratio: 4 / 5; background: rgba(0,0,0,.85); overflow: hidden; }
.pm-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-video-label { font: 500 12px "Inter", sans-serif; text-transform: uppercase; letter-spacing: .05em; opacity: .75; margin-bottom: 14px; }
.pm-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 14px "Inter", sans-serif; }
.pm-post-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pm-post-text {
  font: 400 clamp(15px, 1.4vw, 17px)/1.5 "Inter", sans-serif;
  background: rgba(255,255,255,.55); color: #1a1a1a; padding: 16px 18px; border-radius: 10px;
}
.pm-video-link { display: inline-block; margin-top: 14px; font: 500 14px "Inter", sans-serif; border-bottom: 1px solid currentColor; }
.pm-video-link:hover { opacity: .6; }
@media (max-width: 760px) { .pm-video { grid-template-columns: 1fr; } .pm-video-frame { max-width: 360px; } }
.pm-video-frame { aspect-ratio: 12 / 11; }
.pm-close { background: var(--bg, #eee); padding: 7px 14px; border-radius: 99px; box-shadow: 0 2px 10px -4px rgba(0,0,0,.3); }

/* plusieurs vidéos par projet */
.pm-video { display: block; }
.pm-video-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pm-video-item + .pm-video-item { margin-top: 30px; padding-top: 26px; border-top: 1px dashed currentColor; }
.pm-video-frame.is-file { aspect-ratio: 1 / 1; background: #000; }
.pm-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 760px) { .pm-video-item { grid-template-columns: 1fr; } }
/* enregistrements de posts (format large, texte du post inclus dans la vidéo) */
.pm-video-item.is-wide { display: block; margin-left: 0; margin-right: 0; }
.pm-video-frame.is-wide { aspect-ratio: 2594 / 1590; background: #fff; }
.pm-video-frame.is-wide video { background: #fff; }
.pm-video-item.is-wide .pm-video-label { margin: 10px 0 0; }

/* ---------- Fenêtre projet : sections vidéos + grille d'images ---------- */
.pm-video { display: block; margin-top: 40px; padding-top: 0; border-top: 0; }
.pm-group + .pm-group { margin-top: 44px; }
.pm-group-title {
  font: 600 12px/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  padding-bottom: 12px; margin: 0 0 20px; border-bottom: 1px solid currentColor;
}
.pm-group-title[hidden] { display: none; }
#pm-gallery-title { margin-top: 48px; }
.pm-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }
.pm-vcard { margin: 0; }
.pm-vcard.is-wide { grid-column: 1 / -1; }
.pm-vmedia { position: relative; overflow: hidden; background: #000; box-shadow: 0 12px 30px -16px rgba(0,0,0,.4); }
.pm-vmedia.is-square { aspect-ratio: 1 / 1; }
.pm-vmedia.is-fb { aspect-ratio: 1 / 1; }
.pm-vmedia.is-wide { aspect-ratio: 2594 / 1590; background: #fff; }
.pm-vmedia video, .pm-vmedia iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.pm-vmedia.is-wide video { background: #fff; }
.pm-vcard figcaption { margin-top: 12px; }
.pm-vcard .pm-video-label { margin-bottom: 8px; }
.pm-vcard .pm-post-text { font-size: 14px; padding: 12px 14px; }

/* images fixes : grille propre (au lieu de la bande qui défile) */
.pm-gallery {
  display: block; columns: 3 220px; column-gap: 14px; overflow: visible;
  margin-top: 0; padding-bottom: 0; scroll-snap-type: none;
}
.pm-gallery img {
  display: block; width: 100%; height: auto; margin: 0 0 14px; break-inside: avoid;
  box-shadow: 0 10px 26px -16px rgba(0,0,0,.4);
}
@media (max-width: 760px) {
  .pm-vgrid { grid-template-columns: 1fr; }
  .pm-gallery { columns: 2; column-gap: 10px; }
  .pm-gallery img { height: auto; margin-bottom: 10px; }
}
.pm-gallery[hidden] { display: none; }

/* ---------- Vidéos minimalistes : pas de lecteur, pas de bandes noires ---------- */
.pm-vgrid { grid-template-columns: 1fr; gap: 40px; }
.pm-vmedia, .pm-vmedia.is-square, .pm-vmedia.is-wide, .pm-vmedia.is-fb {
  aspect-ratio: auto; background: transparent; box-shadow: none; overflow: visible;
}
.pm-vmedia video {
  position: static; display: block; width: 100%; height: auto;
  background: transparent !important; object-fit: contain; cursor: pointer;
}
/* petit pictogramme son, discret, en bas à droite */
.pm-vmedia { position: relative; }
.pm-vmedia::after {
  content: "🔇"; position: absolute; right: 10px; bottom: 10px; font-size: 14px; line-height: 1;
  padding: 6px 7px; border-radius: 99px; background: rgba(255,255,255,.75); pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.pm-vmedia.sound-on::after { content: "🔊"; }
.pm-vmedia:hover::after { opacity: 1; }

/* vidéo + son texte côte à côte, texte simple (pas de bulle) */
.pm-vcard.has-text { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pm-vcard.has-text .pm-vmedia { max-width: 440px; }
.pm-vcard.has-text figcaption { margin-top: 0; }
.pm-vcard .pm-post-text {
  background: none; padding: 0; border-radius: 0; color: inherit;
  font: 400 clamp(15px, 1.4vw, 18px)/1.55 "Inter", sans-serif;
}
.pm-vcard.has-text .pm-video-label { margin-bottom: 14px; }
.pm-vcard.is-wide .pm-vmedia video { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
@media (max-width: 760px) {
  .pm-vcard.has-text { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Visuels & publications : galerie ---------- */
.pm-gallery { columns: auto; display: block; }
.pm-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pm-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.pm-masonry { columns: 3 220px; column-gap: 16px; }
.pm-masonry img { display: block; width: 100%; height: auto; margin: 0 0 16px; break-inside: avoid; }
.pm-gallery img { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.pm-gallery img:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .pm-feature { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .pm-masonry { columns: 2; column-gap: 10px; }
  .pm-masonry img { margin-bottom: 10px; }
}
/* galerie : 3 colonnes remplies ligne par ligne (l'ordre de lecture suit l'ordre choisi) */
.pm-masonry { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pm-col { display: flex; flex-direction: column; gap: 16px; }
.pm-col img, .pm-masonry img { margin: 0; }
@media (max-width: 760px) { .pm-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pm-col { gap: 8px; } }

/* logos ronds sur fond blanc (ex. Erbario Toscano) : le blanc disparaît dans le papier */
.affiche .a-logo.is-round { border-radius: 50%; box-shadow: none; mix-blend-mode: multiply; width: 14cqw; height: 14cqw; }
.pm-logo.is-round { border-radius: 50%; mix-blend-mode: multiply; width: 64px; height: 64px; }

/* vidéos toujours muettes : pas d'icône son, pas de curseur cliquable */
.pm-vmedia::after { content: none !important; display: none !important; }
.pm-vmedia video { cursor: default; pointer-events: none; }

/* image d'affiche montrée en entier (pas de recadrage) */
.affiche.img-full .a-img { background: transparent; box-shadow: none; display: flex; align-items: center; justify-content: center; }
.affiche.img-full .a-img img { object-fit: contain; width: 100%; height: 100%; }
.d3.img-full .a-img { left: 17%; width: 66%; top: 25%; height: 58%; }

/* ---------- Année soulignée sur toutes les affiches (style de l'affiche Erbario) ---------- */
.affiche .a-year {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  font-size: 8cqw; line-height: 1; letter-spacing: 0;
  right: 9%; bottom: 7%; z-index: 4;
  border-bottom: .5cqw solid currentColor; padding-bottom: 1cqw;
}
/* 1 — Cabinet : année en bas à droite, rien à déplacer */
/* 2 — TheFork : la légende remonte d'un cran, l'année se place dessous */
.d2 .a-caption { bottom: 17%; width: 80%; }
/* 4 — SNCB : l'image s'arrête plus haut pour laisser la place à l'année */
.d4 .a-img { bottom: 19%; }
/* 5 — Ricotta : texte à gauche, année à droite */
.d5 .a-small { right: 38%; }
/* 6 — UF : l'image est en bas à droite → année en bas à gauche */
.d6 .a-year { right: auto; left: 7%; }
/* 7 — cœur en bas à droite → année en bas à gauche */
.d7 .a-year { right: auto; left: 7%; }
/* 8 — Truffe : image raccourcie, petit texte à gauche, année à droite */
.d8 .a-img { height: 36%; }
.d8 .a-small { text-align: left; right: 40%; }
.pm-group-title.is-line { padding-bottom: 0; height: 0; }
/* visuels mis en avant, placés avant les vidéos */
#pm-feature { margin-top: 34px; margin-bottom: 0; }
#pm-feature[hidden] { display: none; }
/* visuels mis en avant : taille naturelle (rien n'est recadré), 2 par ligne */
#pm-feature { align-items: center; row-gap: 22px; }
#pm-feature img { aspect-ratio: auto; height: auto; object-fit: contain; }
.pm-vmedia img { display: block; width: 100%; height: auto; }

/* ---------- Visuels & publications : galerie (une image en grand) ---------- */
.pm-gallery { display: block; columns: auto; }
.gal-stage { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 12px; }
.gal-view { display: flex; align-items: center; justify-content: center; height: min(62vh, 560px); }
.gal-main {
  max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); transition: opacity .16s ease;
}
.gal-main.is-fading { opacity: 0; }
.pm-gallery .gal-main:hover { transform: none; }
.gal-nav {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #111; color: #fff; font: 500 20px/1 "Inter", sans-serif;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); transition: background .2s, color .2s;
}
.gal-nav:hover { background: #fff; color: #111; }
.gal-count { text-align: center; margin: 14px 0 12px; font: 500 13px "Inter", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; justify-content: safe center; }
.gal-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.gal-thumb img { display: block; height: 60px; width: auto; box-shadow: none; }
.pm-gallery .gal-thumb img:hover { transform: none; box-shadow: none; }
.gal-thumb:hover { opacity: .9; }
.gal-thumb.on { opacity: 1; border-color: currentColor; }
@media (max-width: 760px) {
  .gal-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; }
  .gal-nav { width: 40px; height: 40px; font-size: 16px; }
  .gal-view { height: 46vh; }
  .gal-thumb img { height: 46px; }
}
/* galerie : l'image garde toujours ses proportions (jamais étirée) */
.pm-gallery .gal-view img.gal-main {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; aspect-ratio: auto; margin: 0; flex: 0 1 auto;
}
.pm-gallery .gal-thumb img { width: auto; height: 60px; object-fit: contain; margin: 0; }
@media (max-width: 760px) { .pm-gallery .gal-thumb img { height: 46px; } }

/* ---------- Fenêtre projet : repères, ton, résultats, chapeaux ---------- */
.pm-facts { margin-top: 22px; max-width: 760px; }
.pm-facts[hidden] { display: none; }
.pm-meta-line { font: 400 14px/1.5 "Inter", sans-serif; display: flex; flex-wrap: wrap; gap: 4px 10px; opacity: .9; }
.pm-meta-line b { font-weight: 600; }
.pm-meta-line i { font-style: normal; opacity: .6; }
.pm-tone {
  margin-top: 18px; font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.01em;
}
.pm-results { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 26px; }
.pm-result { display: flex; flex-direction: column; gap: 4px; }
.pm-figure { font-family: "Instrument Serif", serif; font-size: clamp(38px, 4.6vw, 60px); line-height: .95; letter-spacing: -.01em; }
.pm-result-text { font: 500 13px/1.35 "Inter", sans-serif; max-width: 240px; opacity: .85; }
.pm-chapeau { margin: 22px 0 26px; max-width: 720px; }
.pm-chapeau h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -.01em; }
.pm-chapeau p { margin-top: 10px; font: 400 15px/1.5 "Inter", sans-serif; }
.pm-vcard.is-wide .pm-post-text { margin-top: 6px; font-size: 15px; max-width: 680px; }
.pm-text p + p { margin-top: 12px; }

/* galerie : légende sous l'image (plus de numéros) */
.gal-count { display: none; }
.gal-caption { text-align: center; margin: 14px auto 12px; max-width: 620px; font: 500 13px/1.4 "Inter", sans-serif; letter-spacing: .01em; min-height: 1.4em; }
.gal-caption[hidden] { display: block; visibility: hidden; }
/* logos non ronds sur fond blanc (ex. SNCB) : pas de recadrage, le blanc disparaît dans la couleur */
.affiche .a-logo.is-plain { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; object-fit: contain; width: 15cqw; height: 15cqw; }
.pm-logo.is-plain { border-radius: 0; mix-blend-mode: multiply; object-fit: contain; width: 72px; height: 72px; }
.pm-logo.is-plain { mix-blend-mode: normal; background: #fff; border-radius: 16px; padding: 8px; box-sizing: content-box; width: 64px; height: 64px; }
.pm-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pm-links a { font: 500 14px "Inter", sans-serif; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.pm-links a:hover { opacity: .6; }

/* SNCB : « SNCB » et « INTERNATIONAL » regroupés en haut */
.d4 .a-title  { top: 3%; height: 15%; }
.d4 .a-title2 { top: 17.5%; height: 12%; text-align: left; }
.d4 .a-small  { top: 32%; left: 6%; right: 6%; text-align: left; }
.d4 .a-img    { top: 39%; bottom: 19%; }
.d4 .a-img img { object-position: center center; }
/* vidéo externe intégrée (ex. reportage Bruzz) : lecteur d'origine, format 16:9 */
.pm-vmedia.is-embed { aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pm-vmedia.is-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: auto; }

/* logos en largeur (ex. Ricotta & Parmesan) */
.affiche .a-logo.is-wide { width: 34cqw; height: 17cqw; object-fit: contain; object-position: left bottom; }
.pm-logo.is-wide, .pm-logo.is-plain.is-wide { width: auto; height: 72px; max-width: 240px; padding: 10px 14px; }
/* Ricotta : le logo remplace le petit texte en bas à gauche (qui répétait le titre) */
.d5.has-logo .a-small { display: none; }
.d5 .a-logo.is-wide { left: 7%; bottom: 5%; }

/* logos transparents (PNG) : plus de badge blanc ni de fusion */
.pm-logo.is-plain, .pm-logo.is-plain.is-wide { background: none; padding: 0; border-radius: 0; mix-blend-mode: normal; box-shadow: none; }
.affiche .a-logo.is-plain { mix-blend-mode: normal; }
/* logo Erbario transparent : même taille ronde qu'avant, sans fond */
.d3 .a-logo.is-plain { width: 14cqw; height: 14cqw; }

/* UF : gris perle neutre (aucune couleur associée à un parti) */
.d6 { --bg: #dedbd4; --ink: #151515; }

/* plus de numéros (01, 06, 09…) sur les affiches */
.affiche .a-num { display: none; }
/* UF : visuel en entier */
.d6.img-full .a-img { right: 7%; bottom: 13%; width: 46%; height: 46%; }

/* règle commune : année toujours en bas à droite, logo toujours en bas à gauche */
.affiche .a-year { left: auto !important; right: 8% !important; bottom: 6% !important; }
.affiche .a-logo { left: 6% !important; right: auto !important; bottom: 5% !important; }
.d6.img-full .a-img { bottom: 17%; }
.d7 .a-doodle { right: auto; left: 40%; bottom: 7%; }
.d6 .a-logo.is-wide { width: 20cqw; height: 11cqw; }

/* sous-titre + temps forts */
.pm-subtitle { margin: -10px 0 22px; max-width: 760px; font: 400 15px/1.45 "Inter", sans-serif; opacity: .85; }
.pm-subtitle[hidden] { display: none; }
.pm-highlights { margin-top: 36px; }
.pm-highlights ol { list-style: none; counter-reset: hl; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; padding: 0; margin: 0; }
.pm-highlights li { counter-increment: hl; border-top: 1px solid currentColor; padding-top: 14px; }
.pm-highlights h4 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.05; margin: 0 0 8px; }
.pm-highlights p { font: 400 15px/1.5 "Inter", sans-serif; margin: 0; }
@media (max-width: 760px) { .pm-highlights ol { grid-template-columns: 1fr; } }

/* Cabinet Clerfayt : titre en haut, portrait dessous (le bleu et la typo restent) */
.d1 .a-title { top: 6%; height: 24%; }
.d1 .a-img { left: 7%; right: 7%; top: 32%; height: 50%; }
.d1 .a-img img { object-position: 55% 30%; }
.d1 .a-small { bottom: 7%; }

/* plusieurs galeries par projet */
.pm-gal-set { margin-top: 48px; }
.pm-gallery.is-single .gal-nav { visibility: hidden; }
/* publication Instagram intégrée */
.pm-vmedia.is-embed.is-insta { aspect-ratio: auto; height: 640px; max-width: 420px; background: #fff; border-radius: 6px; }
/* publications Instagram côte à côte */
.pm-vgrid:has(.is-insta) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .pm-vgrid:has(.is-insta) { grid-template-columns: 1fr; } }
.pm-gal-embeds { margin-top: 28px; }

/* Écran d’arrivée : certaines lettres aux couleurs des affiches, les autres blanches */
.splash-name { display: inline-block; white-space: pre; }
.sp-letter { display: inline-block; opacity: 0; transition: opacity .2s ease; }
.sp-letter.on { opacity: 1; }
.sp-space { display: inline-block; width: .3em; }
.d8 .a-logo.is-wide { width: 26cqw; height: 16cqw; }

/* ---------- Vidéothèque : cartes filtrables ---------- */
.pm-library { margin-top: 44px; }
.pm-library[hidden] { display: none; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lib-filter {
  font: 500 13px "Inter", sans-serif; color: inherit; background: transparent; cursor: pointer;
  border: 1px solid currentColor; border-radius: 99px; padding: 6px 14px; opacity: .75; transition: background .2s, color .2s, opacity .2s;
}
.lib-filter:hover { opacity: 1; }
.lib-filter.on { background: var(--ink, #111); color: var(--bg, #fff); opacity: 1; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lib-card {
  position: relative; aspect-ratio: 4 / 5; text-align: left; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px;
  background: rgba(255,255,255,.1); color: inherit; border: 1px solid rgba(255,255,255,.28);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s;
}
.lib-card[hidden] { display: none; }
.lib-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); }
.lib-card.has-cover { background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.05) 60%), var(--cover) center / cover; color: #fff; }
.lib-theme { font: 600 11px "Inter", sans-serif; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.lib-play {
  align-self: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; flex: 0 0 auto;
}
.lib-play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.lib-title { font-family: "Instrument Serif", serif; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.1; }
.lib-meta { font: 500 12px "Inter", sans-serif; opacity: .75; }
@media (max-width: 760px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* visionneuse : une vidéo à la fois, par-dessus la fenêtre */
.lib-viewer { position: absolute; inset: 0; z-index: 10; background: rgba(10,10,10,.82); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lib-viewer[hidden] { display: none; }
.lib-box { position: relative; width: min(420px, 100%); }
.lib-frame { height: min(78vh, 720px); background: #fff; border-radius: 6px; overflow: hidden; }
.lib-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lib-cap { color: #fff; font: 500 14px/1.4 "Inter", sans-serif; margin-top: 10px; text-align: center; }
.lib-close { position: absolute; top: -40px; right: 0; background: #fff; color: #111; border: 0; border-radius: 99px; padding: 7px 14px; font: 500 14px "Inter", sans-serif; cursor: pointer; }
.lib-box:has(iframe[src*="linkedin"]) { width: min(560px, 100%); }
/* visuel ouvert dans la visionneuse */
.lib-frame.is-image { height: auto; background: none; }
.lib-frame.is-image img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.lib-box:has(.is-image) { width: min(560px, 100%); }
/* les cartes de visuels n'ont pas de bouton lecture */
.lib-card[data-image] .lib-play { visibility: hidden; }
/* cartes avec image : l'image reste lisible, le titre passe dans un bandeau en bas */
.lib-card.has-cover { background: var(--cover) center top / cover; justify-content: flex-end; gap: 0; padding: 0; }
.lib-card.has-cover .lib-theme, .lib-card.has-cover .lib-play { display: none; }
.lib-card.has-cover .lib-title { background: rgba(12,12,12,.82); color: #fff; padding: 10px 12px 2px; font-size: clamp(15px, 1.4vw, 18px); }
.lib-card.has-cover .lib-meta { background: rgba(12,12,12,.82); color: #fff; padding: 4px 12px 10px; opacity: 1; }
/* visionneuse : articles sur plusieurs pages, on fait défiler */
.lib-frame.is-image { max-height: 80vh; overflow-y: auto; }
.lib-frame.is-image img + img { margin-top: 8px; }
.lib-frame.is-image img { max-height: none; }
.lib-box:has(.is-image) { width: min(640px, 100%); }

/* ---------- Accueil : système solaire (points en orbite) ---------- */
.solar .card.affiche {
  width: var(--dot, 24px); height: var(--dot, 24px); margin: calc(var(--dot, 24px) / -2) 0 0 calc(var(--dot, 24px) / -2);
  padding: 0; border-radius: 50%; overflow: visible; container-type: normal;
  background: var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 4px 14px -4px rgba(0,0,0,.35);
  transition: box-shadow .3s;
}
.solar .card.affiche > *:not(.dot-label) { display: none !important; }
.solar .card.affiche::after { content: none; }
.solar .card.affiche:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 0 6px rgba(0,0,0,.05), 0 6px 18px -4px rgba(0,0,0,.4); }
.dot-label { display: none; }
.solar .dot-label {
  display: block; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; font: 500 10px/1 "Inter", sans-serif; color: var(--fg); opacity: 0;
  transition: opacity .25s; pointer-events: none;
}
.solar .card.affiche:hover .dot-label { opacity: 1; }
.solar .stage { perspective: none; }
.sun {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 200;
  width: 150px; height: 150px; border-radius: 50%; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none;
  font-family: "Instrument Serif", serif; font-size: 24px; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em;
  box-shadow: 0 0 0 10px rgba(0,0,0,.04), 0 0 0 24px rgba(0,0,0,.025);
}
.orbit {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  border: 1px solid rgba(0,0,0,.12); border-radius: 50%; pointer-events: none;
}
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #9a9a9a; pointer-events: none; }
.solar .current { top: calc(46% + 34vh); }
@media (max-width: 760px) { .sun { width: 110px; height: 110px; font-size: 18px; } .solar .current { top: auto; bottom: 150px; } }

/* ---------- Système solaire, version « inspiration » : pointillés, pastilles floues, taches de couleur ---------- */
.solar .stage { background: #f3f1ea; }
.blob { position: absolute; width: 42vw; height: 42vw; max-width: 620px; max-height: 620px; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.blob.b0 { left: 8%; top: 18%; } .blob.b1 { right: 6%; top: 8%; } .blob.b2 { left: 30%; bottom: -12%; } .blob.b3 { right: 18%; bottom: 0%; }
.star { display: none; }
.orbit { border: 1.5px dashed rgba(40,20,20,.55); }
.node { position: absolute; left: 50%; top: 46%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #2b1717; pointer-events: none; z-index: 60; }
/* soleil : dégradé flou rose-orangé, nom en blanc */
.sun { background: none; box-shadow: none; width: 190px; height: 190px; color: #fff; font-size: 26px; }
.sun::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 40%, #ff7fae 0%, #ff6a4a 55%, #ff5a36 75%); filter: blur(14px);
}
.sun::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); }
.sun span { position: relative; text-shadow: 0 1px 8px rgba(120,20,10,.25); }
/* planètes : pastilles avec le nom du projet et un halo flou à la couleur de l’affiche */
.solar .card.affiche {
  width: auto; height: auto; margin: 0; padding: 9px 18px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 78%, #fff); color: #1a1414;
  box-shadow: 0 0 18px 9px color-mix(in srgb, var(--bg) 85%, transparent), 0 0 34px 18px color-mix(in srgb, var(--bg) 35%, transparent);
  transform-origin: 0 0;
}
.solar .card.affiche:hover { box-shadow: 0 0 22px 12px color-mix(in srgb, var(--bg) 95%, transparent), 0 0 44px 24px color-mix(in srgb, var(--bg) 45%, transparent); }
.solar .dot-label {
  position: static; transform: none; opacity: 1; display: block;
  font: 500 15px/1.1 "Inter", sans-serif; letter-spacing: -.01em; color: inherit; white-space: nowrap;
}
.solar .current { color: #2b1717; }
@media (max-width: 760px) { .solar .dot-label { font-size: 12px; } .solar .card.affiche { padding: 7px 12px; } .sun { width: 130px; height: 130px; font-size: 18px; } }
.solar .header { background: transparent; }
@media (max-width: 760px) { .sun { width: 104px; height: 104px; font-size: 15px; } .solar .dot-label { font-size: 11px; } .solar .card.affiche { padding: 6px 10px; } }

/* ---------- Système solaire : planètes en sphères de dégradé flou ---------- */
.solar .card.affiche.orb {
  width: var(--dot); height: var(--dot); padding: 0; border-radius: 50%;
  background: var(--grad); color: #1a1414; box-shadow: none; isolation: isolate;
}
.solar .card.affiche.orb::before {
  content: ""; position: absolute; inset: -14%; border-radius: 50%; z-index: -1;
  background: var(--grad); filter: blur(16px); opacity: .7;
}
.solar .card.affiche.orb:hover { box-shadow: none; }
.solar .card.affiche.orb:hover::before { opacity: 1; filter: blur(20px); }
.solar .orb .dot-label {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  font: 500 12px/1 "Inter", sans-serif; white-space: nowrap; color: #2b1717; opacity: .85;
}
/* un style de dégradé par projet (planche « Gradient Trends ») */
.orb0 { --grad: radial-gradient(circle at 50% 78%, #1d1f6e 0%, #3c2a78 14%, #e2742f 42%, #f3c36b 66%, #8fb4d6 100%); }            /* radial ramp */
.orb1 { --grad: radial-gradient(circle at 50% 50%, #1626c8 0%, #3a33d6 28%, #8a7ff0 52%, #d9def9 78%, #f6eef5 100%); filter: blur(1.5px); } /* blurred */
.orb2 { --grad: linear-gradient(135deg, #ffe58f 0%, #f7b14c 50%, #ee7f22 100%); }                                                /* duotone */
.orb3 { --grad: linear-gradient(180deg, #ff6c86 0%, #ff8aa0 42%, #d7a3b6 50%, #3a2f73 72%, #141a4c 100%); }                         /* landscape */
.orb4 { --grad: radial-gradient(circle at 68% 72%, #ff63a5 0%, rgba(255,99,165,0) 45%), linear-gradient(135deg, #1aa6c8 0%, #6a3be0 60%, #a32fd8 100%); } /* tri-color */
.orb5 { --grad: radial-gradient(circle at 28% 30%, #ffd166 0%, rgba(255,209,102,0) 48%), radial-gradient(circle at 78% 35%, #17a99f 0%, rgba(23,169,159,0) 52%), radial-gradient(circle at 50% 92%, #2a1258 0%, rgba(42,18,88,0) 58%), #ec4f7d; } /* multi-color */
.orb6 { --grad: linear-gradient(135deg, #fff35c 0%, #49e3a2 28%, #3d8bff 52%, #7b2ff7 74%, #ff2d78 100%); }                         /* retro */
@media (max-width: 760px) { .solar .card.affiche.orb { width: calc(var(--dot) * .7); height: calc(var(--dot) * .7); } .solar .orb .dot-label { font-size: 10px; } }

/* ---------- Sphères vaporeuses : noyau décentré, bords qui s'évanouissent ---------- */
.solar .card.affiche.orb { filter: none; }
.solar .card.affiche.orb::before { inset: -22%; filter: blur(18px); opacity: .55; }
/* 1 · jaune, anneau magenta, noyau bleu */
.orb0 { --grad: radial-gradient(circle at 62% 54%, #1f2fa8 0 16%, #5a2a9e 24%, rgba(230,70,160,.85) 32%, rgba(255,120,170,0) 44%), radial-gradient(circle at 48% 50%, #ffd84a 0%, #ffe68a 42%, rgba(255,240,170,0) 70%); }
/* 7 · violet profond, noyau bleu clair en haut */
.orb1 { --grad: radial-gradient(circle at 50% 26%, #9ad8ff 0 11%, rgba(154,216,255,0) 22%), radial-gradient(circle at 50% 44%, #1b2a8c 0%, #34309e 26%, #8a5bc0 50%, rgba(200,170,230,0) 72%); }
/* 8 · orange, cœur prune décentré */
.orb2 { --grad: radial-gradient(circle at 40% 42%, #2a0a3a 0 14%, #b81870 30%, #ff6a3d 46%, #ffb84d 58%, rgba(255,220,140,0) 74%); }
/* 14 · vert tendre, noyau rose */
.orb3 { --grad: radial-gradient(circle at 48% 38%, #ec1f86 0 11%, rgba(236,31,134,.55) 22%, #e8b4cf 38%, #cfe6a8 56%, rgba(220,240,190,0) 74%); }
/* 13 · vert et cyan, noyau violet sombre */
.orb4 { --grad: radial-gradient(circle at 52% 34%, #3b0f4f 0 13%, #5a2a8a 22%, #2bb7d6 40%, #7fd36b 58%, rgba(170,230,140,0) 74%); }
/* 15 · magenta, tache bleue */
.orb5 { --grad: radial-gradient(circle at 46% 30%, #84d2ff 0 9%, rgba(132,210,255,0) 17%), radial-gradient(circle at 50% 50%, #d4146f 0%, #e03a8e 40%, #c05aa8 56%, rgba(220,150,200,0) 74%); }
/* 16 · rose-magenta, éclat vert anis */
.orb6 { --grad: radial-gradient(circle at 40% 34%, #dcf27e 0 8%, rgba(220,242,126,0) 17%), radial-gradient(circle at 50% 50%, #e0208a 0%, #b42a9c 44%, #7a2fa0 60%, rgba(170,80,170,0) 74%); }
/* centre sans texte : une simple sphère vaporeuse rose-orangé */
.sun::after { content: none; }
.sun { width: 150px; height: 150px; }
.sun::before { inset: 0; background: radial-gradient(circle at 46% 42%, #ff4f7a 0 12%, #ff6a4a 34%, #ffa36b 52%, rgba(255,190,150,0) 72%); filter: blur(8px); }
@media (max-width: 760px) { .sun { width: 100px; height: 100px; } }

/* ---------- Version abstraite : pas de lignes, formes organiques qui se déforment ---------- */
.orbit, .node { display: none !important; }
.solar .card.affiche.orb, .solar .card.affiche.orb::before, .sun, .sun::before {
  border-radius: 46% 54% 60% 40% / 42% 58% 44% 56%;
  animation: morph 11s ease-in-out infinite alternate;
}
.solar .card.affiche.orb::before { animation-duration: 14s; }
.orb1, .orb1::before { animation-delay: -3s; } .orb2, .orb2::before { animation-delay: -6s; }
.orb3, .orb3::before { animation-delay: -2s; animation-duration: 13s; } .orb4, .orb4::before { animation-delay: -8s; }
.orb5, .orb5::before { animation-delay: -5s; animation-duration: 9s; } .orb6, .orb6::before { animation-delay: -9s; }
.sun, .sun::before { animation-duration: 16s; }
@keyframes morph {
  0%   { border-radius: 46% 54% 60% 40% / 42% 58% 44% 56%; }
  33%  { border-radius: 58% 42% 38% 62% / 55% 37% 63% 45%; }
  66%  { border-radius: 39% 61% 52% 48% / 61% 46% 54% 39%; }
  100% { border-radius: 63% 37% 45% 55% / 40% 63% 37% 60%; }
}
/* bords encore plus diffus */
.solar .card.affiche.orb { box-shadow: none; }
.solar .card.affiche.orb::before { inset: -30%; filter: blur(22px); opacity: .6; }

/* ---------- CV = page d'arrivée : boutons projets + fiche projet par-dessus ---------- */
.job-projects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-project {
  font: 500 13px "Inter", sans-serif; color: var(--bg); background: var(--fg); border: 1px solid var(--fg);
  border-radius: 99px; padding: 8px 16px; cursor: pointer; transition: background .2s, color .2s;
}
.btn-project:hover { background: var(--bg); color: var(--fg); }
.btn-project span { display: inline-block; transition: transform .2s; }
.btn-project:hover span { transform: translateX(3px); }
.proj-overlay { position: fixed; inset: 0; z-index: 500; }
.proj-overlay[hidden] { display: none; }
.proj-overlay iframe { width: 100%; height: 100%; border: 0; background: transparent; }
html.proj-open, html.proj-open body { overflow: hidden; }
html.splash-running body { overflow: hidden; }
/* la page projets, affichée dans le CV : seule la fiche est visible */
html.embed, html.embed body { background: transparent !important; }
html.embed .header, html.embed .menu, html.embed .menu-overlay, html.embed .stage, html.embed .current,
html.embed .footer, html.embed .nav-arrow, html.embed .splash, html.embed .site-footer { display: none !important; }

/* rôles et clients du CV : liens vers les fiches projets */
.proj-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: opacity .2s; }
.proj-link:hover { opacity: .55; }
.proj-link span { font-size: .8em; }
.job-context .proj-link { font-weight: 500; color: var(--fg); }

/* rôles cliquables : plus visibles */
.role-head .proj-link { text-decoration-color: rgba(0,0,0,.35); }
.role-head .proj-link:hover { opacity: 1; text-decoration-color: currentColor; }
.role-head .proj-link::after {
  content: "Voir le projet"; margin-left: 10px; font: 500 11px "Inter", sans-serif; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 99px; background: #111; color: #fff; vertical-align: 3px;
  opacity: 0; transition: opacity .2s;
}
.role-head .proj-link:hover::after { opacity: 1; }
button.proj-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.proj-pick { position: relative; display: inline-block; }
.proj-pick-menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.25); padding: 6px;
}
.proj-pick-menu[hidden] { display: none; }
.proj-pick-menu a { font: 500 14px "Inter", sans-serif; padding: 9px 12px; border-radius: 6px; }
.proj-pick-menu a:hover { background: #f2f2f2; }
.proj-pick-menu a::after { content: " ↗"; font-size: .85em; opacity: .6; }
.role-head button.proj-link, .proj-pick-menu a { color: var(--fg); }
.role-head button.proj-link { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }

/* ---------- Curseur personnalisé : mini point rouge + fil rouge qui s'efface ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-trail { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 2147483000; opacity: 0; transition: opacity .3s; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-trail { opacity: 1; }
.cursor-trail { width: 100vw; height: 100vh; }
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #cc3333;
  transition: opacity .3s, width .25s, height .25s, margin .25s;
}
html.cursor-hover .cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
html.proj-open .cursor-dot, html.proj-open .cursor-trail { display: none; }
/* ---------- Accueil : phrase d'accroche + photo noir et blanc ---------- */
.home-hero {
  min-height: 100svh; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 90px); align-items: start;
}
.page.home-hero h1.about-headline {
  font-size: clamp(24px, 3vw, 46px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.08;
  margin: -0.14em 0 0;   /* le haut des lettres s’aligne sur le haut de la photo */
}
.home-hero .about-photo {
  margin: 0; width: 100%; max-height: calc(100svh - 190px); aspect-ratio: 4 / 5; background: #111; overflow: hidden;
  opacity: 0; animation: rise 1s cubic-bezier(.2,.8,.2,1) .3s forwards;
}
.home-hero .about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; align-content: start; }
  .home-hero .about-photo { max-height: none; }
}

/* ---------- Typographie moderne : Inter Tight (grotesque serrée), titres en gras ---------- */
body { font-family: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif; }
.page h1 { font-weight: 700; letter-spacing: -0.055em; line-height: .92; }
.subtitle { font-weight: 600; letter-spacing: -0.025em; }
.job-head h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.role-head h4,
.role-head button.proj-link { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.035em; }
.cv .row strong, .lang-head strong { font-weight: 700; letter-spacing: -0.02em; }
.contact-big { font-weight: 700; letter-spacing: -0.05em; }
.page.home-hero h1.about-headline { font-weight: 700; letter-spacing: -0.05em; }
.splash-name { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 700; letter-spacing: -0.05em; }
.proj-pick-menu a { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; }
.menu-links a { letter-spacing: -0.045em; font-weight: 700; }

/* ---------- Tendances 2027 (carrousel « Design forecast ») : papier, grain, cadre éditorial ---------- */
:root { --bg: #f5f3ee; --line: #dcd8cf; --accent-soft: #e9e6df; }
/* grain de papier très discret sur tout le site (design « tactile ») */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2147482000; opacity: .07;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.embed body::after { display: none; }
/* nom en grand, sur deux lignes */
.page h1#title { font-size: clamp(56px, 10vw, 150px); line-height: .88; letter-spacing: -0.06em; margin-bottom: 70px; }
.page h1#title span { display: block; }
/* titres de rubrique du CV : capitales espacées, filet noir */
.cv h2 { color: var(--fg); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-top-color: var(--fg); }
.cv .body { border-top-color: var(--fg); }
.edu-label { color: var(--fg); font-weight: 600; letter-spacing: .14em; }
/* plus d'air entre les expériences */
.job { padding-bottom: 64px; }
.job + .job { padding-top: 40px; }

/* ---------- Mots-clés en bandes qui défilent (inspiré de Museum Night Fever) ---------- */
body { overflow-x: clip; }
.kw-marquee {
  width: 100vw; margin: -20px 0 clamp(80px, 10vw, 140px) calc(50% - 50vw);
  border-top: 1px solid var(--fg);
}
.kw-row { overflow: hidden; border-bottom: 1px solid var(--fg); padding: 10px 0 12px; }
.kw-track { display: flex; width: max-content; animation: kw-slide var(--d, 50s) linear infinite; }
.kw-row.rev .kw-track { animation-direction: reverse; }
.kw-dup { display: contents; }
.kw, .kw-sep {
  font-size: clamp(22px, 3vw, 42px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap;
}
.kw-sep { padding: 0 .45em; color: var(--muted); font-weight: 500; }
.kw { transition: color .3s; }
.kw-marquee:hover .kw-track { animation-play-state: paused; }
.kw:hover { color: var(--muted); }
@keyframes kw-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kw-track { animation: none; } }

/* ---------- Le contenu du CV prend la place : colonne des rubriques plus étroite ---------- */
.cv { grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); }
.role ul { max-width: 900px; }
.job-context { max-width: 900px; }
@media (max-width: 700px) { .cv { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Liens sans soulignement : la couleur change au survol, la flèche glisse ---------- */
.proj-link, .role-head .proj-link { text-decoration: none; transition: color .35s ease; }
.proj-link:hover, .role-head .proj-link:hover { opacity: 1; color: var(--muted); }
.proj-link span { display: inline-block; margin-left: .15em; transition: transform .35s ease; color: var(--muted); }
.proj-link:hover span { transform: translate(3px, -3px); }
.role-head .proj-link::after { display: none; }
.job-context .proj-link { color: var(--fg); }
/* missions plus lisibles maintenant que la colonne est large */
.role li { font-size: 15px; line-height: 1.5; }
.job-context, .job-period, .role-head span { font-size: 14px; }

/* ---------- Le grand nom passe sur l'écran noir ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.splash-name {
  font-size: clamp(64px, 12vw, 190px); font-weight: 700; letter-spacing: -0.06em; line-height: .88;
  white-space: normal; text-align: left; padding: 0 var(--gutter);
}
.splash-name .sp-space { display: none; }
/* les bandes de mots-clés ouvrent la page */
.kw-marquee { margin-top: 0; }

/* ---------- Menu : icône 3 traits, puis menu plein écran ---------- */
.menu-btn { padding: 4px 0; }
.burger { position: relative; display: block; width: 20px; height: 13px; }
.burger i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .45s cubic-bezier(.77,0,.18,1), opacity .3s, top .45s cubic-bezier(.77,0,.18,1);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5.75px; }
.burger i:nth-child(3) { top: 11.5px; }
/* ouvert : les 3 traits deviennent une croix */
body.menu-open .burger i:nth-child(1) { top: 5.75px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { top: 5.75px; transform: rotate(-45deg); }
body.menu-open .header { color: var(--menu-fg); }

/* le menu recouvre toute la page */
.menu {
  inset: 0; width: 100vw; transform: translateY(-100%);
  padding: clamp(90px, 14vh, 150px) var(--gutter) var(--gutter);
  justify-content: space-between; gap: 40px;
}
body.menu-open .menu { transform: translateY(0); }
.menu-overlay { display: none; }
.menu-links a { font-size: clamp(56px, 11vw, 170px); line-height: .92; letter-spacing: -0.06em; font-weight: 700; }
.menu-links a span { transition-delay: .25s; }
.menu-links li:nth-child(2) a span { transition-delay: .32s; }
.menu-links li:nth-child(3) a span { transition-delay: .39s; }
.menu-links a:hover { opacity: 1; }
.menu-links a span { transition: transform .6s cubic-bezier(.2,.8,.2,1), color .3s; }
.menu-links a:hover span { color: #8a8a8a; }
.menu > div { font-size: 14px; }
/* email et réseaux en bas, côte à côte */
.menu { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: end; }
.menu-links { grid-column: 1 / -1; align-self: start; }
@media (max-width: 600px) { .menu { grid-template-columns: 1fr; } }

/* menu plein écran façon CommonVow : fond gris foncé, rubriques à la suite séparées par « \ » */
:root { --menu-bg: #4d4d4d; }
.menu-links { display: flex; flex-wrap: wrap; align-items: baseline; max-width: 1200px; }
.menu-links li { display: flex; align-items: baseline; }
.menu-links a { display: inline-block; text-transform: uppercase; font-size: clamp(40px, 7vw, 110px); line-height: 1; letter-spacing: -0.04em; }
.menu-links li:not(:last-child)::after {
  content: "\\"; font-size: clamp(40px, 7vw, 110px); font-weight: 400; line-height: 1;
  margin: 0 .3em; opacity: .45;
}
.menu-links a.is-current span { opacity: 1; }
.menu-links a.is-current { text-decoration: none; }

/* ---------- CV : rôles en capitales et en couleur d'encre, rubriques bien visibles ---------- */
:root { --pen: #cc3333; }   /* rouge stylo, comme les annotations manuscrites des carnets */
.role-head h4, .role-head h4 .proj-link, .role-head button.proj-link {
  font-size: clamp(20px, 2vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--pen);
}
.role-head .proj-link span { color: var(--pen); opacity: .6; }
.role-head .proj-link:hover, .role-head .proj-link:hover span { color: var(--fg); opacity: 1; }
.roles.timeline .role:first-child::before { background: var(--pen); }
.roles.timeline .role::before { border-color: var(--pen); }

/* titres de rubrique (Expérience, Formation…) : en grand, sur toute la largeur, au-dessus du contenu */
.cv { grid-template-columns: minmax(0, 1fr); gap: 0; }
.cv h2 {
  font-size: clamp(34px, 5vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; text-transform: uppercase;
  color: var(--fg); border-top: 1px solid var(--fg); padding-top: 16px; margin-top: clamp(70px, 9vw, 120px);
}
.cv section:first-child h2 { margin-top: 0; }
.cv .body { border-top: 0; padding-top: clamp(28px, 3.5vw, 48px); }

/* =====================================================================
   Fiches projet : style « carnet de notes »
   Papier crème identique au CV, texte imprimé lisible, annotations à la main en rouge stylo,
   petites étiquettes numérotées reliées par un trait, cadres dessinés dont les traits dépassent.
   ===================================================================== */
.pm { --paper: #f5f3ee; --text: #1a1a1a; --red: #cc3333; --hand: "Caveat", "Segoe Print", cursive; }
.pm .pm-backdrop { background: rgba(245,243,238,.55); }
.pm .pm-panel { background: var(--paper); color: var(--text); box-shadow: 0 40px 90px -30px rgba(0,0,0,.35); }
.pm .pm-panel::after { opacity: .7; }
.pm .pm-content { font-family: "Inter Tight", "Inter", sans-serif; counter-reset: carnet; }
.pm .pm-content p, .pm .pm-content li, .pm .pm-content span, .pm .pm-content a, .pm .pm-content button { font-family: "Inter Tight", "Inter", sans-serif; }

/* en-tête : petite note manuscrite rouge, titre imprimé en gras, sous-titre en italique */
.pm .pm-meta {
  font: 600 clamp(22px, 2.2vw, 28px)/1 var(--hand) !important; color: var(--red); text-transform: none; letter-spacing: 0; opacity: 1;
  display: inline-block; transform: rotate(-2deg); margin-bottom: 6px;
}
.pm .pm-title {
  font-family: "Inter Tight", "Inter", sans-serif !important; font-weight: 800 !important; font-style: normal !important;
  text-transform: uppercase !important; letter-spacing: -0.045em !important; line-height: .9;
  font-size: clamp(40px, 6.4vw, 88px); margin: 4px 0 26px; position: relative; display: inline-block;
}
/* trait de stylo rouge sous le titre */
.pm .pm-title::after {
  content: ""; position: absolute; left: -4px; right: -10px; bottom: -14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M2 9 C 60 3, 120 12, 180 6 S 270 4, 298 8' fill='none' stroke='%23cc3333' stroke-width='2.4' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
.pm .pm-subtitle { font: italic 400 clamp(19px, 1.8vw, 24px)/1.3 "Instrument Serif", serif !important; opacity: 1; margin: 6px 0 26px; max-width: 780px; }
.pm .pm-text p { font: 400 clamp(15px, 1.3vw, 17px)/1.6 "Inter Tight", "Inter", sans-serif; max-width: 720px; }
.pm .pm-logo { margin-bottom: 14px; }

/* titres de section : « 01 ——— TEMPS FORTS » en petites capitales rouges */
.pm h3.pm-group-title {
  counter-increment: carnet; border: 0; padding: 0; margin: 0 0 24px;
  display: flex; align-items: center; gap: 12px;
  font: 600 12px/1.2 "Inter Tight", "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.pm h3.pm-group-title::before {
  content: counter(carnet, decimal-leading-zero);
  font: 500 clamp(22px, 2vw, 28px)/1 "Inter Tight", sans-serif; letter-spacing: -0.02em;
  padding-right: 70px; background: linear-gradient(var(--red), var(--red)) right center / 56px 1px no-repeat;
}
.pm .pm-group-title.is-line { border-top: 1px solid rgba(0,0,0,.15); margin: 0 0 24px; }

/* infos (fonctions, missions, outils) : fiche tapée à la machine */
.pm .pm-meta-line { font-size: 14px; line-height: 1.6; }
.pm .pm-meta-line b { color: var(--red); font-weight: 600; }
.pm .pm-links a { border-bottom: 0; color: var(--red); font-family: var(--hand) !important; font-size: 22px; font-weight: 600; }
.pm .pm-links a:hover { opacity: 1; color: var(--text); }
.pm .pm-tone { color: var(--text); }

/* temps forts : numéros manuscrits, filets fins */
.pm .pm-highlights li { border-top: 1px solid rgba(0,0,0,.18); position: relative; padding-top: 16px; }
.pm .pm-highlights li::before {
  content: counter(hl, decimal-leading-zero); position: absolute; right: 0; top: 8px;
  font: 600 26px/1 var(--hand); color: var(--red); transform: rotate(-4deg);
}
.pm .pm-highlights h4 { font: 800 clamp(18px, 1.7vw, 22px)/1.1 "Inter Tight", sans-serif !important; text-transform: uppercase; letter-spacing: -0.02em; padding-right: 40px; }
.pm .pm-highlights p { font: 400 15px/1.55 "Inter Tight", sans-serif; }

/* chiffres clés : entourés au stylo rouge */
.pm .pm-figure { font: 800 clamp(34px, 4vw, 54px)/1 "Inter Tight", sans-serif !important; letter-spacing: -0.04em; position: relative; display: inline-block; padding: 6px 14px; align-self: flex-start; }
.pm .pm-figure::after {
  content: ""; position: absolute; inset: -6px -10px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'><path d='M30 14 C 80 -2, 170 4, 192 40 C 206 78, 120 98, 60 92 C 10 86, -2 52, 16 28 C 26 16, 48 8, 70 8' fill='none' stroke='%23cc3333' stroke-width='2.2' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
.pm .pm-result-text { font: 400 14px/1.4 "Inter Tight", sans-serif; }

/* chapeaux de groupes */
.pm .pm-chapeau h3 { font: italic 400 clamp(26px, 3vw, 38px)/1.05 "Instrument Serif", serif; }

/* cadres dessinés à la main : les traits dépassent des coins, très légèrement de travers */
.sketch { position: relative; display: block; }
.sketch::before, .sketch::after { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.sketch::before { inset: -9px -18px; border-top: 1px solid var(--text, #1a1a1a); border-bottom: 1px solid var(--text, #1a1a1a); transform: rotate(-.4deg); }
.sketch::after  { inset: -18px -9px; border-left: 1px solid var(--text, #1a1a1a); border-right: 1px solid var(--text, #1a1a1a); transform: rotate(.5deg); }
.pm .pm-vgrid { gap: 52px 44px; padding: 18px; }
.pm .pm-vmedia { box-shadow: none; }
.pm .pm-feature { gap: 40px; padding: 18px; margin-bottom: 30px; }
.pm .pm-feature .sketch img { display: block; }

/* légendes = annotations manuscrites rouges */
.pm .pm-video-label {
  font: 600 clamp(19px, 1.7vw, 23px)/1.1 var(--hand) !important; color: var(--red);
  text-transform: none; letter-spacing: 0; opacity: 1; margin: 14px 0 6px;
}
.pm .pm-video-label::before { content: "↳ "; }
.pm .pm-post-text { font: 400 14px/1.55 "Inter Tight", sans-serif; }
.pm .pm-video-link { border-bottom: 0; color: var(--red); font-weight: 600; }

/* galerie : image dans un cadre décalé, légende manuscrite, flèches discrètes */
.pm .gal-main { box-shadow: none; outline: 1px solid var(--text); outline-offset: 10px; }
.pm .gal-view { padding: 16px; }
.pm .gal-caption { font: 600 22px/1.2 var(--hand) !important; color: var(--red); text-align: center; margin-top: 14px; }
.pm .gal-nav { background: transparent; color: var(--text); border: 1px solid var(--text); box-shadow: none; }
.pm .gal-nav:hover { background: var(--text); color: var(--paper); }
.pm .gal-thumb.on { border-color: var(--red); }

/* vidéothèque Clerfayt : filtres en capitales, carte sur papier */
.pm .lib-filter { font-family: "Inter Tight", sans-serif; }
.pm .lib-filter.on { background: var(--text); color: var(--paper); }

/* navigation et bouton fermer */
.pm .pm-nav { border-top: 1px solid var(--text); }
.pm .pm-nav button { font: 600 24px/1 var(--hand) !important; color: var(--red); }
.pm .pm-nav button:hover { opacity: 1; color: var(--text); }
.pm .pm-close { background: var(--paper); color: var(--text); font: 600 22px/1 var(--hand); box-shadow: none; border: 1px solid var(--text); }
.pm .pm-close:focus { outline: none; }
.pm .pm-close:focus-visible { outline: none; color: var(--red); border-color: var(--red); }

/* ---------- À propos : diptyque photo + écriture manuscrite rouge ---------- */
.home-hero:has(.diptych) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dip { position: relative; margin: 0; aspect-ratio: 784 / 980; overflow: hidden; background: var(--bg); }
.dip-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); display: block; }
/* écriture rouge répétée, légèrement penchée */
.script {
  position: absolute; inset: -12%; transform: rotate(-10deg);
  display: flex; flex-direction: column; justify-content: center;
  font: 600 clamp(20px, 2.2vw, 34px)/1.15 "Dancing Script", cursive; color: #d6283f; white-space: nowrap;
}
.script span { display: block; }
/* gauche : la silhouette devient une découpe de papier blanc couverte d'écriture */
.dip-fill {
  position: absolute; inset: 0; background: var(--bg); overflow: hidden;
  -webkit-mask: url("images/portrait-londres-masque.png") center / 100% 100% no-repeat;
          mask: url("images/portrait-londres-masque.png") center / 100% 100% no-repeat;
}
/* droite : la silhouette découpée est posée sur la page écrite, avec une ombre de papier */
.dip-cut { position: absolute; inset: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.28)); }
.dip-cut .dip-photo {
  -webkit-mask: url("images/portrait-londres-masque.png") center / 100% 100% no-repeat;
          mask: url("images/portrait-londres-masque.png") center / 100% 100% no-repeat;
}
.diptych { opacity: 0; animation: rise 1s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@media (max-width: 760px) { .home-hero:has(.diptych) { grid-template-columns: 1fr; } }
/* ratures : le SVG remplit toute la surface */
.script { color: #d6283f; }
.script svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- CV : le détail des rôles se déroule au survol du bloc d'expérience ---------- */
@media (hover: hover) and (pointer: fine) {
  .job .role ul {
    max-height: 0; overflow: hidden; margin-top: 0; opacity: 0;
    transition: max-height .7s cubic-bezier(.2,.8,.2,1), margin-top .5s ease, opacity .4s ease;
  }
  .job .role li { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
  .job:hover .role ul, .job:focus-within .role ul { max-height: 900px; margin-top: 10px; opacity: 1; }
  .job:hover .role li, .job:focus-within .role li { opacity: 1; transform: none; }
  /* les lignes apparaissent l'une après l'autre */
  .job:hover .role li:nth-child(2) { transition-delay: .05s; }
  .job:hover .role li:nth-child(3) { transition-delay: .1s; }
  .job:hover .role li:nth-child(4) { transition-delay: .15s; }
  .job:hover .role li:nth-child(5) { transition-delay: .2s; }
  .job:hover .role li:nth-child(6) { transition-delay: .25s; }
  .job:hover .role li:nth-child(7) { transition-delay: .3s; }
  .job:hover .role li:nth-child(8) { transition-delay: .35s; }
  /* blocs plus compacts tant qu'ils sont repliés */
  .roles { gap: 14px; }
  .job:hover .roles { gap: 26px; }
  .roles { transition: gap .5s ease; }
}

/* ---------- Formation : certifications et diplômes côte à côte ---------- */
.edu-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.edu-cols .edu-group + .edu-group { margin-top: 0; padding-top: 0; border-top: 0; }
.edu-cols .row { grid-template-columns: 90px minmax(0, 1fr); }
@media (max-width: 760px) {
  .edu-cols { grid-template-columns: 1fr; }
  .edu-cols .edu-group + .edu-group { padding-top: 22px; border-top: 1px dashed var(--line); }
}

/* ---------- Compétences : étiquettes imparfaites, tracées au stylo rouge ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 12px; padding: 6px 0 0; margin: 0; max-width: 1100px; }
.tag {
  --red: #cc3333;
  position: relative; padding: 9px 18px 10px;
  font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.02em; color: var(--red);
  /* contour à main levée : coins irréguliers et léger angle */
  border: 1.6px solid var(--red);
  border-radius: 255px 18px 225px 16px / 16px 225px 18px 255px;
  transform: rotate(var(--r, 0deg));
  opacity: 0; translate: 0 8px;
  transition: opacity .5s ease var(--d, 0ms), translate .6s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), background .25s, color .25s;
}
/* deuxième trait légèrement décalé, comme repassé au stylo */
.tag::after {
  content: ""; position: absolute; inset: -3px 2px 1px -2px; pointer-events: none;
  border: 1px solid var(--red); opacity: .45;
  border-radius: 18px 225px 16px 255px / 255px 16px 225px 18px;
  transform: rotate(-.8deg);
}
.tag.is-filled { background: var(--red); color: var(--bg); }
.tags.in .tag { opacity: 1; translate: 0 0; }
.tag:hover { background: var(--red); color: var(--bg); }
.tag.is-filled:hover { background: transparent; color: var(--red); }

/* ---------- Écran noir dynamique : nom, trait + mots qui défilent, lettres qui tombent ---------- */
.splash-in { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vw, 32px); padding: 0 var(--gutter); }
.splash-name { padding: 0; }
.splash-tag { display: flex; align-items: center; gap: 18px; height: 1.4em; font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,.85); }
.sp-line { display: block; width: 0; height: 1px; background: #cc3333; transition: width .6s cubic-bezier(.77,0,.18,1); }
.splash.tagging .sp-line { width: clamp(60px, 9vw, 140px); }
.sp-word { display: inline-block; white-space: nowrap; }
.sp-word.pop { animation: sp-pop .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes sp-pop { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
/* sortie : chaque lettre tombe avec un petit rebond, puis le rideau descend */
.splash.drop .sp-letter { transition: transform .55s cubic-bezier(.55,-0.4,.7,.4) calc(var(--i, 0) * 28ms), opacity .4s ease calc(var(--i, 0) * 28ms + 150ms); transform: translateY(110%) rotate(8deg); opacity: 0; }
.splash.drop .splash-tag { transition: opacity .3s; opacity: 0; }

/* ---------- Mouvements fluides : apparition, rebond, transitions de page ---------- */
.rv { opacity: 0; transform: translateY(-26px); }
.rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease var(--rd, 0ms), transform .9s cubic-bezier(.34,1.56,.64,1) var(--rd, 0ms);
}
/* titres : lettres qui tombent et rebondissent */
.split .ch { display: inline-block; opacity: 0; transform: translateY(-.8em) rotate(-10deg); }
.split.is-in .ch {
  opacity: 1; transform: none;
  transition: opacity .3s ease calc(var(--rd, 0ms) + var(--i) * 40ms), transform .75s cubic-bezier(.34,1.8,.64,1) calc(var(--rd, 0ms) + var(--i) * 40ms);
}
.split.rv { opacity: 1; transform: none; }   /* le titre lui-même ne bouge pas, ce sont ses lettres */
/* sortie de page : tout remonte et s'efface */
main, .site-footer { transition: opacity .45s ease, transform .5s cubic-bezier(.6,0,.4,1); }
html.leaving main, html.leaving .site-footer { opacity: 0; transform: translateY(-30px); }
html.leaving .menu { opacity: 0; transition: opacity .35s; }
/* entrée de page : le contenu arrive en fondu */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: page-in .5s ease both; }
@media (prefers-reduced-motion: reduce) { .rv, .split .ch { opacity: 1 !important; transform: none !important; } }

/* ---------- Écran d'arrivée : bloc noir qui descend en devenant rouge ---------- */
.splash {
  background: #000;
  transition: transform 1.1s cubic-bezier(.77,0,.18,1), background-color 1.1s cubic-bezier(.5,0,.3,1);
}
.splash.leave { transform: translateY(100%); background-color: #cc3333; }

/* diptyque recadré : on retire le haut de la photo pour que la tête arrive près du bord supérieur */
.dip { aspect-ratio: 784 / 740; }
.dip-photo { object-position: center bottom; }
.dip-fill, .dip-cut .dip-photo {
  -webkit-mask-size: 100% auto; mask-size: 100% auto;
  -webkit-mask-position: center bottom; mask-position: center bottom;
}

/* recadrage plus léger, et diptyque posé en bas à droite de l'écran (la phrase reste en haut à gauche) */
.dip { aspect-ratio: 784 / 840; }
.home-hero:has(.diptych) {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr;
  min-height: 100svh; padding-bottom: var(--gutter);
}
.home-hero:has(.diptych) .about-headline { max-width: 900px; }
.home-hero .diptych { align-self: end; justify-self: end; width: min(720px, 62vw, calc((100svh - 330px) * 2 * 784 / 840)); }
@media (max-width: 760px) { .home-hero .diptych { width: 100%; justify-self: stretch; } }

/* À propos : le prénom dans la phrase d'accroche */
.hl-name { font-family: "Archivo", sans-serif; font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.12em; line-height: .8; color: #cc3333; }

/* ---------- Flèches des liens : trait droit épais et pointe en équerre ---------- */
.arr {
  display: inline-block; width: .7em; height: .7em; margin-left: .3em; vertical-align: .02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='3' stroke-linecap='butt' stroke-linejoin='miter'><path d='M4 20 L19.5 4.5'/><path d='M7 4.5 H19.5 V17'/></g></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='3' stroke-linecap='butt' stroke-linejoin='miter'><path d='M4 20 L19.5 4.5'/><path d='M7 4.5 H19.5 V17'/></g></svg>") center / contain no-repeat;
}
.proj-link .arr { font-size: inherit; }
.proj-link:hover .arr { transform: translate(3px, -3px); }
.proj-pick-menu a::after {
  content: ""; display: inline-block; width: .65em; height: .65em; margin-left: .35em; opacity: .7; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='3'><path d='M4 20 L19.5 4.5'/><path d='M7 4.5 H19.5 V17'/></g></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='black' stroke-width='3'><path d='M4 20 L19.5 4.5'/><path d='M7 4.5 H19.5 V17'/></g></svg>") center / contain no-repeat;
}
.role-head .proj-link .arr, .proj-link .arr { font-size: 1em; width: .72em; height: .72em; opacity: 1; }

/* À propos : brouillon manuscrit, écriture fine au stylo rouge, ratures toutes différentes */
.script { font: 400 clamp(16px, 1.55vw, 22px)/1.5 "Nothing You Could Do", cursive; color: #cc3333; inset: -15%; }
.script .row { display: block; white-space: nowrap; }
.script .w {
  display: inline-block; position: relative; margin-right: .75em;
  transform: translateY(var(--y, 0)) rotate(var(--t, 0deg)); font-size: calc(1em * var(--s, 1));
}
.script .w.k { font-size: calc(1.18em * var(--s, 1)); }
.script svg { position: absolute; inset: auto; pointer-events: none; overflow: visible; }
.script svg path { fill: none; stroke: #cc3333; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.script .rt { left: -6%; width: 112%; top: 22%; height: 60%; }
.script .ul { left: -4%; width: 108%; bottom: -10%; height: 22%; }
.script .mk { left: -14%; width: 128%; top: -25%; height: 150%; }

/* diptyque : retour au format portrait d'origine (photo entière, sans recadrage) */
.dip { aspect-ratio: 784 / 980; }
.dip-photo { object-position: center; }
.dip-fill, .dip-cut .dip-photo { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-position: center; mask-position: center; }
.home-hero .diptych { width: min(680px, 58vw, calc((100svh - 330px) * 2 * 784 / 980)); }

/* curseur : point un peu plus gros ; sur un élément cliquable il devient un cercle rouge vide */
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; box-sizing: border-box;
  border: 1.5px solid #cc3333; background: #cc3333;
  transition: opacity .3s, width .3s cubic-bezier(.34,1.56,.64,1), height .3s cubic-bezier(.34,1.56,.64,1), margin .3s cubic-bezier(.34,1.56,.64,1), background-color .2s;
}
html.cursor-hover .cursor-dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: transparent; }

/* accueil : toute la largeur de l'écran, phrase calée à gauche, diptyque calé à droite */
.page.home-hero { max-width: none; margin: 0; }

/* ---------- Repères : nom de la page dans l'en-tête et grand titre de page ---------- */
.header .brand { display: inline-flex; align-items: baseline; gap: .45em; }
.header .crumb { display: inline-flex; gap: .45em; color: #cc3333; font-weight: 600; }
.header .crumb i { font-style: normal; color: var(--muted); font-weight: 400; }
body.menu-open .header .crumb { color: #ff8a80; }
.page-title {
  font-family: "Archivo", "Inter Tight", sans-serif; font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: clamp(64px, 11vw, 170px); line-height: .85; letter-spacing: -0.02em; color: #cc3333;
  margin: 0 0 clamp(28px, 4vw, 56px);
}

/* À propos : bandeau des mots-clés en bas de page */
.kw-band { padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 7vw, 100px); }
.kw-band .kw-marquee { width: 100%; margin: 0; }
.page.home-hero { min-height: calc(100svh - 10px); }

/* ---------- Page unique ---------- */
html { scroll-behavior: smooth; }
#a-propos, #parcours, #contact { scroll-margin-top: 70px; }
.cv-section { padding-top: clamp(30px, 5vw, 70px); }
.contact-socials-line { display: flex; gap: 22px; margin-top: 18px; font-size: 16px; font-weight: 600; }

/* ---------- Clerfayt : « Quelques réalisations », classées par compétence puis par famille ---------- */
.pm .lib-jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 30px; position: sticky; top: -1px; z-index: 3; padding: 10px 0; background: var(--paper); }
.pm .lib-jump a {
  font: 600 13px/1 "Inter Tight", sans-serif; padding: 8px 14px; border: 1.4px solid var(--red); color: var(--red);
  border-radius: 255px 18px 225px 16px / 16px 225px 18px 255px; transition: background .2s, color .2s;
}
.pm .lib-jump a:hover { background: var(--red); color: var(--paper); }
.pm .lib-jump sup { font-size: .75em; margin-left: 4px; vertical-align: .35em; }
.pm .lib-sec { padding-top: 10px; margin-bottom: 54px; }
.pm .lib-sec-title { font: 800 clamp(22px, 2.4vw, 32px)/1 "Inter Tight", sans-serif; text-transform: uppercase; letter-spacing: -0.03em; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--text); }
.pm .lib-fam { margin-bottom: 30px; }
.pm .lib-fam-title { font: 600 22px/1 var(--hand) !important; color: var(--red); margin: 0 0 14px; }
.pm .lib-fam-title::before { content: "↳ "; }
/* visuels et presse : mosaïque qui respecte les proportions de chaque image */
.pm .lib-grid2.is-visual { columns: 3 220px; column-gap: 18px; }
.pm .lib-grid2.is-visual .lib-item { break-inside: avoid; margin: 0 0 22px; }
.pm .lib-grid2.is-social { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.pm .lib-item { margin: 0; }
.pm .lib-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pm .lib-open img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.pm .lib-open:hover img { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.pm .lib-ext { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--red); font: 600 18px/1 var(--hand); padding: 6px 10px; }
.pm .lib-embed { position: relative; overflow: hidden; background: #fff; }
.pm .lib-embed iframe { display: block; width: 100%; border: 0; }
.pm .is-insta .lib-embed iframe { height: 560px; }
.pm .is-li .lib-embed iframe { height: 620px; }
.pm .is-yt .lib-embed { aspect-ratio: 16 / 9; }
.pm .is-yt .lib-embed iframe { height: 100%; }
.pm .lib-item figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.pm .lib-fmt { font: 600 11px/1.2 "Inter Tight", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pm .lib-ttl { font: 500 14px/1.4 "Inter Tight", sans-serif; }

/* ---------- Réalisations : lignes qui glissent horizontalement ---------- */
.pm .lib-fam-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pm .lib-fam-head .lib-fam-title { margin: 0; }
.pm .lib-fam-title span { font-size: .8em; opacity: .6; }
.pm .lib-arrows { display: flex; gap: 8px; }
.pm .lib-arr {
  width: 38px; height: 38px; border-radius: 50%; border: 1.3px solid var(--text); background: transparent; color: var(--text);
  font: 500 16px/1 "Inter Tight", sans-serif; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.pm .lib-arr:hover { background: var(--text); color: var(--paper); transform: scale(1.06); }
.pm .lib-row {
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.pm .lib-row .lib-item { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; break-inside: auto; margin: 0; }
.pm .lib-row .lib-item figcaption { width: 0; min-width: 100%; }      /* la légende suit la largeur du visuel */
.pm .lib-row.is-visual .lib-open img { height: clamp(220px, 34vh, 320px); width: auto; max-width: none; }
.pm .lib-row .is-yt .lib-embed { width: clamp(360px, 46vw, 520px); }
.pm .lib-row.is-social .lib-item, .pm .lib-row .is-insta, .pm .lib-row .is-li { width: 300px; }
.pm .lib-row .is-insta .lib-embed iframe { height: 520px; }
.pm .lib-row .is-li .lib-embed iframe { height: 560px; }
.pm .lib-embed { background: #f0eee9; }
/* apparition en douceur, l'un après l'autre */
.pm .lib-item { opacity: 0; transform: translateY(16px); transition: opacity .6s ease calc(var(--n, 0) * 70ms), transform .7s cubic-bezier(.2,.8,.2,1) calc(var(--n, 0) * 70ms); }
.pm .lib-item.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pm .lib-item { opacity: 1; transform: none; } }

/* ---------- Accueil : flèche rouge au centre, en bas de l'écran, pour inviter à descendre ---------- */
.scroll-cue {
  position: fixed; left: 50%; bottom: clamp(18px, 4vh, 40px); z-index: 40; translate: -50% 0;
  width: 30px; height: 50px; display: block; color: #cc3333;
  animation: cue-bob 1.8s cubic-bezier(.45,0,.55,1) infinite;
  transition: opacity .4s ease;
}
.scroll-cue svg { width: 100%; height: 100%; overflow: visible; }
.scroll-cue path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: butt; stroke-linejoin: miter; }
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
html.splash-running .scroll-cue { opacity: 0; }
/* le diptyque reste à droite du centre pour laisser la place à la flèche */
.home-hero .diptych { width: min(680px, 46vw, calc((100svh - 330px) * 2 * 784 / 980)); }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* flèche d'accueil : exactement la même flèche que les liens du site, tournée vers le bas, calée à gauche */
.scroll-cue { left: calc(var(--gutter) + 6px); translate: none; width: auto; height: auto; }
.scroll-cue .arr { width: 32px; height: 32px; margin: 0; rotate: 135deg; display: block; }

/* accueil : la phrase d'intro s'étale sur toute la largeur de l'écran */
.home-hero:has(.diptych) .about-headline { max-width: none; }

/* bouton « Fermer » des fiches projet : même police que le site (pas manuscrite) */
.pm .pm-close { font: 600 14px/1 "Inter Tight", "Inter", sans-serif !important; letter-spacing: -0.01em; padding: 9px 16px; }
.pm-vmedia video.needs-click { pointer-events: auto; cursor: pointer; }

/* moins d'espace entre le bandeau animé et le titre « CV » */
.kw-band { padding-bottom: clamp(14px, 2vw, 28px); }
.cv-section { padding-top: clamp(10px, 1.5vw, 24px); }

/* moins d'espace avant chaque rubrique du CV (Formation, Compétences, Langues, Contact) */
.cv h2 { margin-top: clamp(28px, 3.5vw, 52px); }
.cv .job:last-child { padding-bottom: 20px; }

/* bouton « Télécharger le CV (PDF) » à côté du grand titre CV */
.cv-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px clamp(20px, 3vw, 40px); margin: 0 0 clamp(28px, 4vw, 56px); }
.cv-head .page-title { margin: 0; }
.cv-pdf {
  display: inline-flex; align-items: center; gap: 2px; margin-bottom: .6em;
  font: 600 15px/1 "Inter Tight", sans-serif; color: #cc3333; padding: 11px 18px;
  border: 1.6px solid #cc3333; border-radius: 255px 18px 225px 16px / 16px 225px 18px 255px;
  transition: background .25s, color .25s;
}
.cv-pdf .arr { rotate: 135deg; }         /* même flèche que les liens, tournée vers le bas (téléchargement) */
.cv-pdf:hover { background: #cc3333; color: var(--bg); }
@media print { .cv-pdf { display: none; } }

/* ---------- Contact : écrit à la main, au stylo rouge, comme le brouillon du diptyque ---------- */
#contact + .body { font-family: "Nothing You Could Do", cursive; color: #cc3333; }
#contact + .body .contact-big {
  display: inline-block; position: relative; font: 400 clamp(30px, 4.6vw, 64px)/1.2 "Nothing You Could Do", cursive;
  letter-spacing: 0; color: #cc3333; transform: rotate(-2deg); transform-origin: left center;
}
/* trait de stylo sous l'email, qui se dessine au survol */
#contact + .body .contact-big::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -.05em; height: .3em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M2 9 C 60 3, 120 12, 180 6 S 270 4, 298 8' fill='none' stroke='%23cc3333' stroke-width='2.4' stroke-linecap='round'/></svg>") no-repeat left center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.6,0,.2,1);
}
#contact + .body .contact-big:hover { opacity: 1; }
#contact + .body .contact-big:hover::after { clip-path: inset(0 0 0 0); }
#contact + .body .contact-loc { font-size: clamp(20px, 1.8vw, 26px); margin-top: 14px; transform: rotate(-1deg); }
#contact + .body .contact-socials-line { gap: 30px; margin-top: 18px; font: 400 clamp(22px, 2vw, 30px)/1.2 "Nothing You Could Do", cursive; }
#contact + .body .contact-socials-line a { color: #cc3333; font-weight: 400; }
#contact + .body .contact-socials-line a:nth-child(2) { transform: rotate(1.5deg); display: inline-block; }
#contact + .body .contact-socials-line .arr { width: .55em; height: .55em; }
#contact + .body .contact-socials-line a:hover { color: var(--fg); }
#contact + .body .contact-socials-line { margin-top: 4px; font-size: clamp(30px, 3.2vw, 46px); gap: clamp(26px, 3vw, 44px); flex-wrap: wrap; }
#contact + .body .contact-socials-line a:nth-child(1) { transform: rotate(-1.5deg); display: inline-block; }
#contact + .body .contact-socials-line a:nth-child(3) { transform: rotate(-.8deg); display: inline-block; }
#contact + .body .contact-loc { margin-top: 18px; }

/* formation : détail d'une certification avec des tirets */
.cv .row-items { list-style: none; margin-top: 6px; max-width: 520px; }
.cv .row-items li { position: relative; padding-left: 16px; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.cv .row-items li::before { content: "—"; position: absolute; left: 0; }

/* défilement doux (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* curseur un peu plus gros */
.cursor-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
html.cursor-hover .cursor-dot { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-width: 2px; }

/* ---------- Compétences (site uniquement) : bandeau qui défile, comme celui du haut ---------- */
.cv .skills-band { width: 100vw; margin: 4px 0 0 calc(50% - 50vw); }
/* la colonne du CV n'est pas centrée sur l'écran : on recale le bandeau sur toute la largeur */
.cv .body:has(> .skills-band) { overflow: visible; }

/* ---------- Touche rouge dans les bandeaux : les points de séparation et les deux spécialités ---------- */
.kw-sep { color: #cc3333; font-weight: 700; }

/* ---------- Contact : juste les logos, centrés, et une petite phrase manuscrite ---------- */
#contact + .contact-body { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-icons { display: flex; justify-content: center; gap: clamp(28px, 4vw, 56px); margin-top: 6px; }
.contact-icons a { display: block; width: clamp(46px, 4.4vw, 60px); height: clamp(46px, 4.4vw, 60px); color: #cc3333; transition: transform .35s cubic-bezier(.34,1.56,.64,1), color .25s; }
.contact-icons a:hover { transform: translateY(-4px) rotate(-4deg); color: var(--fg); }
.contact-icons svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-icons svg .fill { fill: currentColor; stroke: none; }
.contact-made { margin-top: 26px; font: 400 clamp(22px, 2vw, 30px)/1.3 "Nothing You Could Do", cursive; color: #cc3333; transform: rotate(-1.5deg); }
.kw.is-red { color: #cc3333; }
/* phrase de bas de page : même police que le site, discrète, signature en rouge */
.contact-made { font: 500 clamp(14px, 1.15vw, 17px)/1.4 "Inter Tight", "Inter", sans-serif; color: var(--muted); letter-spacing: -0.01em; transform: none; margin-top: 30px; }
.contact-made span { color: #cc3333; font-weight: 700; white-space: nowrap; }
/* signature manuscrite sous la phrase */
.signature { margin-top: 2px; font: 400 clamp(48px, 5vw, 72px)/1 "Mrs Saint Delafield", cursive; color: #cc3333; transform: rotate(-4deg); letter-spacing: 0; }
/* compétences : le rouge passe d'un mot à l'autre, en douceur */
.skills-band .kw { transition: color .6s ease; }
.skills-band .kw.is-lit { color: #cc3333; }
.skills-band .kw:hover { color: #cc3333; }

/* bas de page : phrase en petites capitales espacées, signature au stylo naturelle */
.contact-made { font: 600 11px/1.6 "Inter Tight", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--fg); margin-top: 40px; }
.signature { margin-top: 14px; font: 400 clamp(26px, 2.6vw, 36px)/1.2 "Homemade Apple", cursive; color: #cc3333; transform: rotate(-3deg); }
/* signature au stylo (Homemade Apple), un peu plus grande pour que le G se lise bien */
.signature { font-size: clamp(30px, 3vw, 40px); letter-spacing: .02em; }

/* ---------- Langues et Contact côte à côte, plus proches des compétences, sans filet au-dessus ---------- */
.cv-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: clamp(20px, 2.5vw, 36px); }
.cv-duo section { display: block; }
.cv-duo h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.cv-duo .body { padding-top: clamp(18px, 2vw, 28px); }
.cv-duo .langs { max-width: none; }
.cv-duo #contact + .contact-body { align-items: center; padding-top: clamp(30px, 3.5vw, 50px); }
@media (max-width: 760px) {
  .cv-duo { grid-template-columns: 1fr; }
  .cv-duo .duo-contact { margin-top: 30px; }
}

/* =====================================================================
   Téléphones (iPhone, Android) : réglages qui passent après tout le reste
   ===================================================================== */
@media (max-width: 760px) {
  /* accueil : la phrase puis le diptyque en pleine largeur, sans grand vide entre les deux */
  .page.home-hero { min-height: 0; padding-top: 86px; padding-bottom: 10px; gap: 28px; }
  .page.home-hero h1.about-headline { font-size: clamp(22px, 6.4vw, 30px); line-height: 1.12; }
  .home-hero .diptych { width: 100%; justify-self: stretch; }
  .script { font-size: 14px; }
  .scroll-cue { display: none; }
  /* bandeaux qui défilent : un peu plus petits */
  .kw, .kw-sep { font-size: clamp(20px, 6vw, 26px); }
  .kw-band { padding: 26px 0 18px; }
  /* CV */
  .cv-head { gap: 10px 16px; }
  .cv-head .page-title { font-size: clamp(56px, 18vw, 80px); }
  .cv-pdf { margin-bottom: 0; font-size: 14px; padding: 9px 14px; }
  .cv h2 { font-size: clamp(30px, 9vw, 40px); }
  .job-head h3 { font-size: clamp(22px, 6.4vw, 28px); }
  .job-period { white-space: normal; }
  .role-head h4, .role-head h4 .proj-link, .role-head button.proj-link { font-size: clamp(17px, 5vw, 21px); }
  .role li { font-size: 15px; }
  .edu-cols .row { grid-template-columns: 74px minmax(0, 1fr); }
  .proj-pick-menu { min-width: 0; width: min(280px, 86vw); }
  /* menu plein écran : rubriques les unes sous les autres, bien lisibles */
  .menu-links { flex-direction: column; align-items: flex-start; }
  .menu-links li:not(:last-child)::after { display: none; }
  .menu-links a { font-size: clamp(40px, 13vw, 60px); }
  /* contact */
  .contact-icons a { width: 48px; height: 48px; }
  .signature { font-size: 28px; }
}
/* éviter tout débordement horizontal sur mobile */
html, body { max-width: 100%; overflow-x: clip; }
