/* ==========================================================
   Lilian Le Paih — portfolio
   Direction : l'identité de son CV (Libre Caslon Condensed + Display, Instrument Sans, jaune soleil,
   encre, papier). Bandes alternées encre / papier, typographie
   extra-grasse italique pour les titres, une seule couleur
   d'accent. Le moment fort : les cartes de projets qui
   s'empilent ; tout le reste reste sobre autour.
   ========================================================== */


@font-face { font-family: "Libre Caslon Condensed"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("../fonts/libre-caslon-condensed.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Condensed"; font-weight: 400 700; font-style: italic; font-display: swap; src: url("../fonts/libre-caslon-condensed-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/libre-caslon-display.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans.woff2") format("woff2-variations"), url("../fonts/instrument-sans.woff2") format("woff2"); }
:root {
  --ink: #1e2124;
  --ink-2: #272b2f;
  --ink-3: #33383d;
  --paper: #fffdf7;
  --paper-2: #f5f0e4;
  --sun: #fdb62c;
  --sun-deep: #e89a0c;
  --sun-soft: #ffe7b0;
  --mute-d: #a9a59b;   /* texte secondaire sur encre */
  --mute-l: #5f5c55;   /* texte secondaire sur papier */
  --line-d: rgba(255, 253, 247, .14);
  --line-l: rgba(30, 33, 36, .14);
  --blue: #2d4a6b;
  --plum: #3a2f4f;
  --font: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --font-d: "Libre Caslon Condensed", Georgia, "Times New Roman", serif;
  --font-n: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --nav-h: 72px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: max(48px, env(safe-area-inset-left, 0px)); --gutter-r: max(48px, env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 500;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.inner { max-width: 1320px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- titres de section ---------- */
.sec-title { font-family: var(--font-d); font-weight: 600; font-size: clamp(40px, 6.4vw, 92px); line-height: .92; letter-spacing: -.02em; text-wrap: balance; }
.sec-lead { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 19px); }
.on-ink .sec-lead { color: var(--mute-d); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .sec-lead { color: var(--mute-l); }

/* ---------- boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border-radius: 999px; border: 1.5px solid currentColor;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  background: transparent; color: inherit; white-space: nowrap; will-change: transform;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn > span { display: inline-block; pointer-events: none; will-change: transform; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc54f; border-color: #ffc54f; }
.btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-paper .btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(30, 33, 36, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-d); }
.nav.hidden { transform: translateY(-110%); }
.logo { font-family: var(--font-d); font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo b { color: var(--sun); font-weight: 500; font-style: italic; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 700; font-size: 15px; position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav ul a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mute-d); white-space: nowrap; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 0 rgba(95, 211, 141, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,211,141,.55); } 70% { box-shadow: 0 0 0 9px rgba(95,211,141,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,141,0); } }
@media (max-width: 1080px) { .status { display: none; } }
@media (max-width: 860px) { .nav ul { display: none; } }

/* ---------- 2. hero + parallaxe ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-block: calc(var(--nav-h) + 40px) 70px; }
.hero .inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-text { position: relative; z-index: 3; display: grid; gap: 26px; }
.hero h1 { font-family: var(--font-d); font-weight: 600; font-size: clamp(58px, 10.5vw, 168px); line-height: .86; letter-spacing: -.025em; }
.hero h1 .line { display: block; overflow: hidden; padding: 0 .08em .06em 0; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line:last-child > span { color: var(--sun); font-style: italic; font-weight: 500; }
.hero .role { font-size: clamp(19px, 2.1vw, 26px); font-weight: 600; max-width: 26ch; line-height: 1.35; }
.hero .role em { font-style: normal; color: var(--sun); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; z-index: 2; aspect-ratio: 1 / 1.05; width: 100%; max-width: 560px; justify-self: end; }
.layer { position: absolute; will-change: transform; translate: var(--mx, 0px) var(--my, 0px); }
.sunball { left: 8%; width: 86%; bottom: 6%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffd98a 0%, var(--sun) 48%, var(--sun-deep) 100%); }
.ring { left: 51%; top: 53%; width: 122%; aspect-ratio: 1; margin: -61% 0 0 -61%; border-radius: 50%; border: 1.5px solid rgba(253, 182, 44, .32); }
.ring.r2 { width: 64%; margin: -32% 0 0 -32%; border-color: rgba(30, 33, 36, .22); }
.portrait { left: 8%; width: 86%; bottom: 6%; }
.portrait img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle closest-side, #000 99.4%, transparent 100%);
  mask-image: linear-gradient(#000, #000), radial-gradient(circle closest-side, #000 99.4%, transparent 100%);
  -webkit-mask-size: 100% 50%, 100% 91%; mask-size: 100% 50%, 100% 91%;
  -webkit-mask-position: top, bottom; mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ghost { position: absolute; z-index: 1; left: -1vw; bottom: -4vh; font-family: var(--font-d); font-weight: 500; font-style: italic; font-size: clamp(140px, 24vw, 380px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 253, 247, .07); white-space: nowrap; pointer-events: none; user-select: none; }
.scroll-cue { position: absolute; z-index: 3; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--mute-d); }
.scroll-cue span { width: 1.5px; height: 34px; background: var(--line-d); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--sun); animation: cue 1.8s infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { order: -1; max-width: clamp(260px, 58vw, 440px); justify-self: start; margin-left: 4%; }
      .scroll-cue { display: none; }
  .hero { padding-block: calc(var(--nav-h) + 16px) 56px; }
}

/* ---------- 3. texte qui s'allume ---------- */
.manifesto { padding-block: clamp(110px, 20vh, 220px); }
.manifesto .kicker { font-weight: 800; font-size: 15px; color: var(--mute-l); }
.manifesto .big { margin-top: 24px; font-family: var(--font-d); font-weight: 500; font-size: clamp(32px, 5.6vw, 84px); line-height: 1.08; letter-spacing: -.018em; max-width: 18ch; }
.manifesto .big .w { display: inline-block; white-space: nowrap; }
.js-anim .manifesto .big .c { opacity: .13; }
.manifesto .big mark { background: none; color: inherit; }
.manifesto .big mark .c { color: var(--sun-deep); }

/* ---------- 5. chiffres ---------- */
.numbers { padding-block: clamp(90px, 14vh, 160px); }
.numbers .grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.stat { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line-d); }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line-d); }
.stat .n { display: flex; align-items: baseline; font-family: var(--font-n); font-weight: 400; font-size: clamp(64px, 7.4vw, 112px); line-height: .9; color: var(--sun); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .n small { font-size: .42em; margin-left: 6px; letter-spacing: 0; }
.stat .long { margin-top: 14px; color: var(--mute-d); max-width: 26ch; font-size: 16px; }
@media (max-width: 1000px) {
  .numbers .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 520px) {
  .numbers .grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-left: none; }
}

/* ---------- 1. projets empilés ---------- */
.projects { padding-block: clamp(100px, 16vh, 180px) clamp(110px, 18vh, 200px); }
.stack { margin-top: 60px; display: grid; gap: 7vh; }
.stack::after { content: ""; height: 18svh; }
/* marge dégressive : quand la pile quitte l'écran, les cartes partent ensemble
   en gardant leur décalage au lieu de se superposer */
.stack { --n: 4; }
.stack .card { margin-bottom: calc((var(--n) - 1 - var(--i, 0)) * 22px); }
.stack.flat .card { margin-bottom: 0; }
.stack.flat::after { display: none; }
.card {
  /* empilement centré dans l'écran, avec un décalage de 22 px par carte */
  position: sticky; top: calc(max(var(--nav-h) + 16px, (100svh - var(--card-h, 64svh)) / 2) + var(--i, 0) * 22px);
  min-height: min(64svh, 580px); border-radius: 32px; overflow: hidden;
  padding: clamp(26px, 4vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 26px 40px;
  transform-origin: 50% 0%; will-change: transform;
  box-shadow: 0 -10px 40px rgba(30, 33, 36, .12);
}
.card::after { content: ""; position: absolute; inset: 0; background: #0d0f10; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.stack.flat .card { position: relative; top: auto !important; }
/* version compacte : écrans peu hauts */
.stack.compact .card { min-height: 0; padding: clamp(22px, 3vw, 40px); gap: 16px 32px; }
.stack.compact .card h3 { font-size: clamp(28px, 3.4vw, 50px); }
.stack.compact .card .desc { font-size: 16px; }
.stack.compact .card ul { display: none; }
.stack.compact .card .result .big { font-size: clamp(72px, 9vw, 140px); }
.card.k-ink { background: var(--ink); color: var(--paper); }
.card.k-sun { background: var(--sun); color: var(--ink); }
.card.k-cream { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-l); }
.card.k-cream li::before { background: var(--sun-deep); }
.card.k-cream .result .big { color: var(--ink); }
.card.k-ink2 { background: var(--ink-2); color: var(--paper); }
.card.k-ink2 .result .big { color: var(--sun); }
.card .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.card .meta .idx { font-variant-numeric: tabular-nums; opacity: .7; }
.card .meta .ctx { opacity: .85; }
.card .body { grid-column: 1; align-self: end; display: grid; gap: 18px; }
.card h3 { font-family: var(--font-d); font-weight: 600; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.card .desc { max-width: 44ch; font-size: 17px; opacity: .92; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; }
.card li { padding-left: 20px; position: relative; opacity: .92; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.card.k-sun li::before { background: var(--ink); }
.card .result { grid-column: 2; grid-row: 2 / 4; align-self: center; justify-self: end; text-align: right; }
.card .result .big { font-family: var(--font-n); font-weight: 400; font-size: clamp(80px, 12vw, 190px); line-height: .82; letter-spacing: -.03em; }
.card.k-ink .result .big { color: var(--sun); }
.card .result .lbl { margin-top: 12px; font-weight: 700; font-size: 15px; opacity: .85; }
.card .tags { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-end; align-self: end; gap: 8px; }
.card .tags span { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; }
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; min-height: auto; border-radius: 24px; gap: 18px; }
  .card .result { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .card .result .big { font-size: clamp(72px, 22vw, 120px); }
  .card .body { grid-row: 3; }
  .card .tags { grid-row: 4; }
  .card ul { display: none; }
  .card h3 { font-size: clamp(28px, 8vw, 40px); }
}

/* ---------- 7. bandeau ---------- */
.marquee { padding-block: clamp(70px, 11vh, 120px); overflow: hidden; }
.mq { display: flex; width: max-content; will-change: transform; }
.mq span:nth-child(even) { font-style: italic; font-weight: 500; color: var(--sun); }
.mq span { font-family: var(--font-d); font-weight: 600; font-size: clamp(44px, 7vw, 104px); line-height: 1.12; padding-right: .55em; white-space: nowrap; }
.mq.r1 span:nth-child(even) { color: var(--sun); }
.mq.r2 span:nth-child(odd) { color: var(--sun); }
.mq.r2 span:nth-child(even) { color: rgba(255, 253, 247, .62); }

/* ---------- 4. parcours horizontal ---------- */
.journey { position: relative; overflow: hidden; }
.journey-head { padding-top: clamp(90px, 13vh, 150px); padding-bottom: 36px; }
.journey-viewport { position: relative; }
.track { display: flex; gap: 28px; width: max-content; --edge: max(0px, calc((100% - var(--gutter) - var(--gutter-r) - 1320px) / 2)); padding-left: calc(var(--gutter) + var(--edge)); padding-right: calc(var(--gutter-r) + var(--edge)); padding-bottom: clamp(90px, 14vh, 140px); will-change: transform; }
.step { width: min(80vw, 400px); flex: 0 0 auto; border-top: 3px solid var(--ink); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.step .y { font-family: var(--font-d); font-weight: 500; font-style: italic; font-size: clamp(64px, 7vw, 104px); line-height: .85; color: var(--sun-deep); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--font-d); font-size: 25px; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.step .where { font-size: 14px; font-weight: 700; color: var(--mute-l); }
.step p { color: #3d3f42; max-width: 34ch; font-size: 16px; }
.step.now { border-top-color: var(--sun-deep); }
.step.now .y { color: var(--ink); -webkit-text-stroke: 0; }
.progress { position: absolute; left: calc(var(--gutter) + max(0px, calc((100% - var(--gutter) - var(--gutter-r) - 1320px) / 2))); right: calc(var(--gutter-r) + max(0px, calc((100% - var(--gutter) - var(--gutter-r) - 1320px) / 2))); bottom: 54px; height: 3px; background: var(--line-l); border-radius: 3px; overflow: hidden; display: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--sun-deep); transform: scaleX(0); transform-origin: left; }
.journey.is-horizontal .progress { display: block; }
.journey.is-horizontal { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.journey.is-horizontal .journey-head { padding-top: calc(var(--nav-h) + 10px); }
/* téléphone, tablette, mouvement réduit : défilement horizontal au doigt, encarts compacts */
.journey:not(.is-horizontal) .journey-viewport { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter) var(--gutter-r); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.journey:not(.is-horizontal) .journey-viewport::-webkit-scrollbar { display: none; }
.journey:not(.is-horizontal) .track { gap: 14px; padding-bottom: 26px; will-change: auto; }
.journey:not(.is-horizontal) .step { width: min(74vw, 310px); scroll-snap-align: start; background: var(--paper-2); border-radius: 18px; border-top: 0; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 100% 4px; background-repeat: no-repeat; padding: 22px 20px 22px; gap: 6px; }
.journey:not(.is-horizontal) .step.now { background-image: linear-gradient(var(--sun-deep), var(--sun-deep)); }
.journey:not(.is-horizontal) .step .y { font-size: 52px; }
.journey:not(.is-horizontal) .step h3 { font-size: 21px; margin-top: 4px; }
.journey:not(.is-horizontal) .step .where { font-size: 13px; }
.journey:not(.is-horizontal) .step p { font-size: 15px; line-height: 1.5; margin: 4px 0 0; }
/* la barre est dans la zone qui défile : collée à gauche pour rester visible */
.journey:not(.is-horizontal) .progress { display: block; position: sticky; left: var(--gutter); right: auto; bottom: auto; width: calc(100vw - var(--gutter) - var(--gutter-r)); margin: 0 var(--gutter-r) clamp(56px, 9vh, 96px) var(--gutter); }
.swipe-hint { display: none; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--mute-l); }
.journey:not(.is-horizontal) .swipe-hint { display: block; }

/* ---------- compétences ---------- */
.skills { padding-block: clamp(90px, 14vh, 160px); }
.skills .grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-d); }
.skill { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line-d); }
.skill:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line-d); }
.skill h3 { font-family: var(--font-d); font-weight: 600; font-size: 24px; line-height: 1.25; }
.acc-btn { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; width: 100%; font: inherit; color: inherit; cursor: default; }
.acc-btn:disabled { color: inherit; }
.acc-btn > span { flex: 1 1 auto; }
.acc-ico { display: none; }
.acc-body { display: grid; grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; min-height: 0; }
.tap-hint { display: none; }
/* chiffres : sur ordinateur, seuls le chiffre et la phrase complète s'affichent */
.flip, .face { display: contents; }
.stat .short, .stat .mini, .flip-ico { display: none; }
.skill h3 i { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); flex: 0 0 auto; margin-top: .48em; }
.skill .acc-body p { margin-top: 12px; color: var(--mute-d); font-size: 16px; }
.skill.feat { background: var(--ink-2); padding-left: 28px !important; padding-right: 28px; border-left: none !important; }
.skill.feat h3 { color: var(--sun); }
@media (max-width: 1000px) {
  .skills .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill:not(:nth-child(3n+1)) { padding-left: 0; border-left: none; }
  .skill:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-d); }
}
@media (max-width: 600px) {
  .skills .grid { grid-template-columns: 1fr; }
  .skill:nth-child(n) { padding-left: 0; border-left: none; }
  .skill.feat { padding-left: 18px !important; padding-right: 18px; }
}

/* ---------- 6. contact ---------- */
.contact { position: relative; min-height: 92svh; display: grid; align-content: center; padding-block: clamp(110px, 16vh, 180px); overflow: hidden; }
.contact .kicker { font-weight: 800; font-size: 15px; color: var(--mute-l); }
.contact h2 { margin-top: 22px; font-family: var(--font-d); font-weight: 600; font-size: clamp(46px, 7.6vw, 124px); line-height: .98; letter-spacing: -.025em; max-width: 13ch; text-wrap: balance; }
.contact .lead { margin-top: 26px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--mute-l); }
.contact .btns { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.contact .btn { min-height: 70px; padding: 0 38px; font-size: 18px; }
.coords { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; font-weight: 700; }
.coords a { text-decoration: none; border-bottom: 2px solid var(--sun); }
.copy-btn { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-l); background: transparent; color: var(--ink); cursor: pointer; }
.copy-btn[data-done] { background: var(--ink); color: var(--paper); }
.sun-corner { position: absolute; right: -14vw; bottom: -22vw; width: 46vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffd98a 0%, var(--sun) 48%, var(--sun-deep) 100%); pointer-events: none; }
@media (max-width: 860px) { .sun-corner { width: 64vw; right: -30vw; bottom: -42vw; } .contact .btn { min-height: 62px; padding: 0 28px; font-size: 17px; } }

/* ---------- pied de page ---------- */
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--sun); }
.foot { padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mute-d); }

/* ---------- 6. curseur ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 90; opacity: 0; }
/* curseur discret : un petit anneau qui suit vite, un point exact au centre */
.cursor { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 1.5px solid var(--sun); display: grid; place-items: center; transition: width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1), margin .25s cubic-bezier(.2,.7,.2,1), background-color .25s, border-color .25s, opacity .25s; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--sun); transition: opacity .25s, background-color .25s; }
.cursor .lbl { font-size: 11px; font-weight: 700; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s; white-space: nowrap; }
html.has-cursor .cursor, html.has-cursor .cursor-dot { opacity: 1; }
html.has-cursor.cursor-out .cursor, html.has-cursor.cursor-out .cursor-dot { opacity: 0; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
/* sur un lien ou un bouton : l'anneau grossit un peu et se remplit */
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(253, 182, 44, .22); }
.cursor.is-label { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: var(--sun); border-color: var(--sun); }
.cursor.is-label .lbl { opacity: 1; transform: none; }
.cursor.is-label + .cursor-dot, .cursor.is-link + .cursor-dot { opacity: 0; }
/* sur fond jaune : le curseur passe en encre pour rester visible */
.cursor.on-sun { border-color: var(--ink); }
.cursor.on-sun + .cursor-dot { background: var(--ink); }
.cursor.on-sun.is-link { background: rgba(30, 33, 36, .14); }
.cursor.on-sun.is-label { background: var(--ink); border-color: var(--ink); }
.cursor.on-sun .lbl { color: var(--sun); }
.cursor.is-down { transform: scale(.85); }

/* ---------- téléphone : chiffres à retourner, compétences dépliables ---------- */
@media (max-width: 600px) {
  .numbers, .skills { padding-block: 72px; }
  .tap-hint { display: block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--mute-d); }
  .numbers .grid { margin-top: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 0; }
  .stat, .stat + .stat { padding: 0; border: 0; perspective: 900px; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 18px; }
  .stat:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
  .flip { display: grid; min-height: 156px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; position: relative; padding: 16px 16px 15px; border-radius: 18px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .stat .front { background: var(--ink-2); border: 1px solid var(--line-d); }
  .stat .back { background: var(--sun); color: var(--ink); transform: rotateY(180deg); justify-content: flex-start; }
  .stat.is-flipped .flip { transform: rotateY(180deg); }
  .stat .n { font-size: 50px; }
  .stat .short { display: block; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--mute-d); padding-right: 6px; }
  .stat .mini { display: block; font-family: var(--font-n); font-size: 26px; line-height: 1; }
  .stat .long { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink); max-width: none; }
  .flip-ico { display: block; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; }
  .flip-ico::before, .flip-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: currentColor; }
  .flip-ico::after { transform: rotate(90deg); }
  .stat .front .flip-ico { color: var(--sun); }
  .stat .back .flip-ico { transform: rotate(45deg); }

  .skills .grid { margin-top: 22px; }
  .skill, .skill:nth-child(n) { padding: 0; }
  .skill.feat { padding: 0 16px !important; border-radius: 14px; margin-block: 6px; border-bottom-color: transparent; }
  .acc-btn { cursor: pointer; padding: 18px 0; align-items: center; -webkit-tap-highlight-color: transparent; }
  .acc-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
  .skill h3 { font-size: 22px; }
  .skill h3 i { margin-top: 0; }
  .acc-ico { display: block; position: relative; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--line-d); transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .25s; }
  .acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--paper); }
  .acc-ico::after { transform: rotate(90deg); }
  .skill.open .acc-ico { transform: rotate(45deg); background: var(--sun); border-color: var(--sun); }
  .skill.open .acc-ico::before, .skill.open .acc-ico::after { background: var(--ink); }
  .acc-body { grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .7, .2, 1); }
  .skill.open .acc-body { grid-template-rows: 1fr; }
  .skill .acc-body p { margin: 0 0 20px 24px; font-size: 15.5px; }
}

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .manifesto .big .c { opacity: 1 !important; }
  .card { position: relative; top: auto !important; }
  .status i, .scroll-cue span::after { animation: none; }
  .nav { transition: none; }
  .flip, .acc-body, .acc-ico { transition: none !important; }
}
