/* =========================================================
   ENZO CHUPIN · PORTFOLIO CRÉATIF
   Charte « Herbier » : Zarathustra + Manrope,
   encre / vélin / outremer / minium.
   ========================================================= */

@font-face {
  font-family: "Zarathustra";
  src: url("../assets/fonts/zarathustra-v01.otf") format("opentype");
  font-display: block;
}

:root {
  --velin: #F2F2EE;
  --velin-2: #E7E7E1;
  --encre: #161616;
  --encre-2: #0E0E0E;
  --carte: #202020;
  --outremer: #2E3BDB;
  --azurite: #CDD0FF;
  --minium: #FF4B1F;
  --pierre: #626262;
  --muted: #A6A6A6;
  --ligne: rgba(242, 242, 238, .14);

  --f-display: "Zarathustra", "Iowan Old Style", Georgia, serif;
  --f-texte: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  /* rayons squircle (corner-shape) : plus généreux qu'un arrondi classique */
  --r-xs: 12px;
  --r-s: 24px;
  --r-m: 34px;
  --r-l: 56px;
  --r-pill: 999px;

  --thorn: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.39 24.54 L9.63 23.75 L9.86 23.06 L10.17 22.33 L10.55 21.56 L10.99 20.75 L11.49 19.92 L12.02 19.07 L12.58 18.19 L13.16 17.3 L13.75 16.4 L14.33 15.47 L14.89 14.53 L15.43 13.58 L15.92 12.6 L16.35 11.61 L16.71 10.6 L16.99 9.57 L17.16 8.53 L17.22 7.48 L17.15 6.44 L16.94 5.42 L16.59 4.42 L16.08 3.46 L15.4 2.55 L15.26 2.6 L15.34 3.69 L15.33 4.66 L15.21 5.53 L15 6.31 L14.71 7.02 L14.35 7.67 L13.92 8.28 L13.43 8.86 L12.87 9.42 L12.26 9.97 L11.59 10.52 L10.87 11.06 L10.11 11.61 L9.3 12.16 L8.46 12.73 L7.6 13.32 L6.71 13.93 L5.81 14.57 L4.9 15.25 L3.99 15.98 L3.09 16.77 L2.2 17.63 L1.34 18.57 L0.61 19.46Z'/></svg>");

  --orn: var(--minium);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--encre);
  color: var(--velin);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: clip;
}
html.is-loading body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd, blockquote, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1; text-wrap: balance; }
em { font-style: normal; color: var(--orn); }
::selection { background: var(--minium); color: var(--encre); }
:focus-visible { outline: 2px solid var(--minium); outline-offset: 4px; border-radius: var(--r-xs); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.light { --orn: var(--outremer); --ligne: rgba(22, 22, 22, .14); --muted: var(--pierre); color-scheme: light; }

.label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.label--orn::before, .thorn {
  content: ""; display: inline-block; flex: none; width: 14px; height: 14px; background: var(--orn);
  -webkit-mask: var(--thorn) center / contain no-repeat; mask: var(--thorn) center / contain no-repeat;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px;
  border: 1.5px solid currentColor; border-radius: var(--r-pill); padding: 0 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pill--fill { background: var(--velin); color: var(--encre); border-color: var(--velin); }

/* ---------- Squircle ----------
   Chrome / Edge : corner-shape natif.
   Safari / Firefox : repli JS (clip-path) sur les surfaces pleines, voir main.js. */
@supports (corner-shape: squircle) {
  *, *::before, *::after { corner-shape: squircle; }
  .cursor__ring, .cursor__dot, .status i, .status i::after, .avail i, .avail i::after { corner-shape: round; }
}
.sq-fb { border-radius: 0 !important; }

/* split text helpers */
.split-line { padding-bottom: .02em; }
.split-line > * { display: inline-block; }
.split-line-mask { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor .cursor { display: block; }
.cursor__ring, .cursor__dot {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--minium); transition: opacity .3s, scale .3s; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(242, 242, 238, .55);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, border-color .4s;
  mix-blend-mode: difference;
}
.cursor__label {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--encre);
  opacity: 0; scale: .6; transition: opacity .3s, scale .5s var(--ease); white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--velin); border-color: var(--velin); }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--minium); border-color: var(--minium); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; scale: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { scale: .85; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 9000; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.loader__panel { position: absolute; inset: 0; }
.loader__panel--bleu { background: var(--outremer); }
.loader__panel--encre { background: var(--encre); display: grid; place-items: center; pointer-events: auto; }
.loader__seal { width: clamp(120px, 16vw, 200px); aspect-ratio: 1; }
.loader__seal img { width: 100%; height: 100%; }
.loader__label {
  position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + 6px);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.loader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--f-display); font-size: clamp(64px, 12vw, 180px); line-height: .8; font-variant-numeric: tabular-nums;
}
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(242, 242, 238, .08); }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--minium); transform-origin: left; transform: scaleX(0); }

/* ---------- Lang curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 9500; background: var(--outremer); color: var(--velin);
  display: grid; place-items: center; font-family: var(--f-display); font-size: clamp(48px, 9vw, 140px);
  clip-path: inset(100% 0 0 0); pointer-events: none;
}
.curtain.is-on { pointer-events: auto; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 400; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  transition: transform .7s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(22, 22, 22, .85), rgba(22, 22, 22, 0));
  opacity: 0; transition: opacity .5s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-light { --orn: var(--outremer); }
.header.is-light::before { opacity: 0; }
.header__brand, .status { transition: color .5s; }
.header.is-light .header__brand, .header.is-light .status { color: var(--encre); }
.header__brand { display: flex; align-items: center; gap: 12px; justify-self: start; color: var(--velin); }
.header__seal { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.header__seal img { width: 30px; height: 30px; transition: transform 1.2s var(--ease); }
.header__brand:hover .header__seal img { transform: rotate(180deg) scale(1.08); }
.header__progress { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.header__progress circle { fill: none; stroke: var(--minium); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.header__logo { width: 118px; display: block; }
.logo { width: 100%; height: auto; overflow: visible; }
.logo__name { fill: currentColor; }
.logo__paraphe { fill: var(--orn); }

.header__nav {
  display: flex; gap: 4px; padding: 5px;
  background: rgba(32, 32, 32, .62); border: 1px solid var(--ligne); border-radius: var(--r-pill);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  position: relative;
}
.header__nav a > span { padding: 8px 16px; }
.header__nav a {
  position: relative; z-index: 1; padding: 0; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: #CFCFCF; transition: color .35s;
}
.header__nav a.is-active, .header__nav a:hover { color: var(--encre); }
.header__nav:hover a.is-active:not(:hover) { color: #CFCFCF; }
.nav-blob {
  position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  background: var(--velin); border-radius: var(--r-pill); opacity: 0; pointer-events: none;
}

.header__tools { justify-self: end; display: flex; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #CFCFCF; }
.status i, .avail i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; position: relative; flex: none; }
.status i::after, .avail i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3DDC84;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.lang { display: flex; padding: 3px; border: 1px solid var(--ligne); border-radius: var(--r-pill); background: rgba(32, 32, 32, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lang button { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; padding: 6px 10px; border-radius: var(--r-pill); color: var(--muted); transition: background .3s, color .3s; }
.lang button.is-active { background: var(--velin); color: var(--encre); }
.lang button:not(.is-active):hover { color: var(--velin); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--velin); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--encre); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 18px; }
.burger i:last-child { top: 24px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* text roll */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll > span { position: relative; display: inline-block; transition: transform .6s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap; padding: inherit; }
.roll:hover > span, .roll:focus-visible > span { transform: translateY(-100%); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 390; background: var(--outremer); color: var(--velin);
  display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - var(--gutter) - 22px) 38px); visibility: hidden; overflow: hidden;
}
.menu__seme { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .09; pointer-events: none; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; position: relative; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: clamp(48px, 15vw, 88px); line-height: 1.02; }
.menu__nav small { font-family: var(--f-texte); font-size: 12px; font-weight: 800; color: var(--minium); letter-spacing: .1em; }
.menu__foot { margin-top: 40px; font-weight: 700; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.menu .lang { display: flex; background: rgba(0, 0, 0, .18); border-color: rgba(242, 242, 238, .25); }

@media (max-width: 960px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .burger { display: block; }
  .status span { display: none; }
}
@media (max-width: 420px) { .header__logo { width: 96px; } .header__tools .lang { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  --cs: clamp(78px, 10vw, 150px);
  --inset-t: calc(var(--header-h) + 4px);
  --inset-x: var(--gutter);
  --inset-b: var(--gutter);
}
.hero__seme {
  position: absolute; inset: -40px; opacity: .06; pointer-events: none;
  background: url("../assets/brand/seme-minium.svg") center / 360px repeat;
}
.cadre { position: absolute; inset: var(--inset-t) var(--inset-x) var(--inset-b); pointer-events: none; z-index: 2; }
.cadre__coin { position: absolute; width: var(--cs); height: var(--cs); }
.cadre__coin--tl { left: 0; top: 0; }
.cadre__coin--tr { right: 0; top: 0; scale: -1 1; }
.cadre__coin--bl { left: 0; bottom: 0; scale: 1 -1; }
.cadre__coin--br { right: 0; bottom: 0; scale: -1 -1; }
.cadre__fil { position: absolute; background: var(--orn); display: block; }
.cadre__fil--t, .cadre__fil--b { left: calc(var(--cs) * .805); right: calc(var(--cs) * .805); height: max(1.5px, calc(var(--cs) * .018)); }
.cadre__fil--t { top: calc(var(--cs) * .161); }
.cadre__fil--b { bottom: calc(var(--cs) * .161); }
.cadre__fil--l, .cadre__fil--r { top: calc(var(--cs) * .805); bottom: calc(var(--cs) * .805); width: max(1.5px, calc(var(--cs) * .018)); }
.cadre__fil--l { left: calc(var(--cs) * .161); }
.cadre__fil--r { right: calc(var(--cs) * .161); }
.cadre__fleuron { position: absolute; left: 50%; width: calc(var(--cs) * .6); height: calc(var(--cs) * .4); margin-left: calc(var(--cs) * -.3); }
.cadre__fleuron--t { top: 0; }
.cadre__fleuron--b { bottom: 0; scale: 1 -1; }

.hero__in {
  position: relative; z-index: 3;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--inset-t) + var(--cs) * .55) calc(var(--inset-x) + var(--cs) * .5) calc(var(--inset-b) + var(--cs) * .5);
}
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero__role { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.hero__title {
  font-size: clamp(62px, 12.4vw, 208px); line-height: .84; letter-spacing: -.01em;
  display: flex; flex-direction: column; margin-block: auto;
  position: relative; z-index: 2;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .16em; margin: 0 -.06em -.16em; }
.hero__title.is-free .line { overflow: visible; }
.hero__title .char { will-change: transform; }
.hero__title .line--in { padding-left: .9em; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.hero__thesis { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 40px); line-height: 1.08; max-width: 20ch; }
.hero__cta { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.hero__cta-circle {
  width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ligne); display: grid; place-items: center; position: relative; overflow: hidden;
  transition: border-color .4s;
}
.hero__cta-circle::before { content: ""; position: absolute; inset: 0; background: var(--minium); border-radius: 50%; transform: scale(0); transition: transform .6s var(--ease); }
.hero__cta-circle svg { width: 22px; height: 22px; position: relative; transition: transform .6s var(--ease); }
.hero__cta:hover .hero__cta-circle { border-color: var(--minium); }
.hero__cta:hover .hero__cta-circle::before { transform: scale(1); }
.hero__cta:hover .hero__cta-circle svg { color: var(--encre); animation: arrowDown .9s var(--ease); }
@keyframes arrowDown { 0% { transform: translateY(0); } 45% { transform: translateY(140%); } 46% { transform: translateY(-140%); } 100% { transform: translateY(0); } }

.hero__blason {
  position: absolute; z-index: 1; top: 50%; right: calc(var(--gutter) + var(--cs) * .75);
  width: clamp(220px, 31vw, 500px); aspect-ratio: 1; margin-top: calc(clamp(220px, 31vw, 500px) / -2);
  pointer-events: none;
}
.hero__blason img { width: 100%; height: 100%; }
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--inset-b) + var(--cs) * .5); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1.5px; height: 44px; background: var(--ligne); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--minium); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (max-width: 820px) {
  .hero { --cs: clamp(64px, 18vw, 110px); }
  .hero__in { padding-inline: calc(var(--inset-x) + var(--cs) * .34); }
  .hero__blason {
    width: min(52vw, 34vh); margin-top: 0; opacity: .95;
    top: calc(var(--inset-t) + var(--cs) * .5); right: auto; left: 50%; translate: -50% 0;
  }
  .hero__title { margin-top: auto; margin-bottom: 0; font-size: min(16vw, 126px); }
  .hero__title .line { white-space: nowrap; }
  .hero__title .line--in { padding-left: .35em; }
  .hero__scroll { display: none; }
  .hero__role { display: none; }
  .hero__cta-circle { width: 54px; height: 54px; }
}

/* ---------- Band / marquee ---------- */
.band { position: relative; padding-block: 18px; background: var(--encre); overflow: hidden; z-index: 2; }
.band__ronce { height: 34px; background: url("../assets/brand/ronce-minium-sur-encre.svg") left center / auto 100% repeat-x; opacity: .9; }
.band__ronce--b { transform: scaleX(-1); }
.marquee { overflow: hidden; padding-block: 10px 6px; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__group { display: inline-flex; align-items: center; gap: .45em; padding-right: .45em; font-family: var(--f-display); font-size: clamp(44px, 7.4vw, 124px); line-height: 1.12; }
.marquee__group .thorn { width: .42em; height: .42em; background: var(--minium); }
.marquee__group span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--velin); }

/* ---------- Section heads ---------- */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 64px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-head .label { margin-bottom: 20px; }
.sec-title { font-size: clamp(46px, 7vw, 112px); line-height: .95; }
.sec-intro { font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); max-width: 46ch; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Manifeste ---------- */
.manifeste { padding: clamp(24px, 3vw, 40px) 0; background: var(--encre); }
.manifeste__sheet {
  background: var(--velin); color: var(--encre);
  padding-block: clamp(80px, 12vw, 180px);
  border-radius: var(--r-l); will-change: clip-path;
}
.manifeste__lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 58ch; color: var(--pierre); margin: 0 0 clamp(40px, 6vw, 80px); }
.manifeste__body { display: flow-root; }
.manifeste__lettrine { float: left; width: clamp(92px, 12vw, 190px); height: auto; margin: .12em clamp(16px, 2vw, 32px) 8px 0; }
.manifeste__text { font-family: var(--f-display); font-size: clamp(34px, 5.1vw, 84px); line-height: 1.04; }
.manifeste__text .w { opacity: .14; }
.manifeste__vrille { max-width: 520px; margin: clamp(48px, 7vw, 96px) 0 0 auto; }

/* ---------- Projets ---------- */
.projets { padding-block: clamp(96px, 13vw, 200px) clamp(80px, 10vw, 160px); position: relative; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.filters, .views { display: flex; flex-wrap: wrap; gap: 8px; }
/* mobile : Planches puis Index en premier, les types de projets dessous sur une ligne défilante */
@media (max-width: 700px) {
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .views { order: -1; flex-wrap: nowrap; }
  .views .view-btn { flex: 1; justify-content: center; height: 44px; }
  .views .view-btn[data-view="grid"] { order: -1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; min-width: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip, .view-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1.5px solid var(--ligne); border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700;
  transition: background .35s, color .35s, border-color .35s;
}
.chip sup { font-size: 10px; font-weight: 800; color: var(--minium); top: -.5em; }
.chip:hover, .view-btn:hover { border-color: var(--velin); }
.chip.is-active, .view-btn.is-active { background: var(--velin); border-color: var(--velin); color: var(--encre); }
.chip.is-active sup { color: var(--outremer); }
.view-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* index */
.work[data-view="grid"] .index, .work[data-view="index"] .planches { display: none; }
.index { border-top: 1px solid var(--ligne); }
.row { position: relative; border-bottom: 1px solid var(--ligne); }
.row[hidden] { display: none; }
.row__link {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px 210px 64px; align-items: center; gap: 20px;
  padding: clamp(18px, 2vw, 28px) 0; width: 100%; text-align: left; position: relative;
}
.row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--minium);
  transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease);
}
.row:hover::after { transform: scaleX(1); transform-origin: left; }
.row__num { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .4s; }
.row__title {
  font-family: var(--f-display); font-size: clamp(38px, 5.2vw, 84px); line-height: 1;
  display: flex; align-items: center; gap: .18em; transition: transform .7s var(--ease), color .4s;
}
.row__title .thorn { width: .38em; height: .38em; background: var(--minium); transform: scale(0) rotate(-90deg); transition: transform .6s var(--ease); margin-left: -.5em; }
.row__role, .row__tags { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .4s; }
.row__year { font-size: 14px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.row__thumb { display: none; }
.index:hover .row:not(:hover) .row__title { color: rgba(242, 242, 238, .28); }
.row:hover .row__title { transform: translateX(.55em); }
.row:hover .row__title .thorn { transform: scale(1) rotate(0); }
.row:hover .row__num { color: var(--minium); }
.row:hover .row__role, .row:hover .row__tags { color: var(--velin); }
@media (max-width: 1100px) { .row__link { grid-template-columns: 48px minmax(0, 1fr) 170px 56px; } .row__tags { display: none; } }
@media (max-width: 700px) {
  .row__link { grid-template-columns: minmax(0, 1fr) 72px; gap: 6px 16px; }
  .row__num, .row__year { display: none; }
  .row__role { grid-row: 2; font-size: 13px; }
  .row__thumb { display: block; grid-row: 1 / span 2; grid-column: 2; width: 72px; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* hover preview */
.preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(220px, 19vw, 320px); aspect-ratio: 4 / 5; margin: calc(clamp(220px, 19vw, 320px) * -.625) 0 0 calc(clamp(220px, 19vw, 320px) * -.5);
  visibility: hidden;
}
.preview__inner { position: absolute; inset: 0; border-radius: var(--r-s); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.preview__inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.25);
  transition: clip-path .7s var(--ease), transform 1.1s var(--ease);
}
.preview__inner img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.preview__inner img.is-prev { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }

/* planches */
.planches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.plate { display: block; text-align: left; perspective: 900px; }
.plate[hidden] { display: none; }
.plate__frame { position: relative; aspect-ratio: 4 / 5; transform-style: preserve-3d; will-change: transform; }
.plate__img { position: absolute; inset: 0; border-radius: var(--r-s); overflow: hidden; background: var(--carte); }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; }
.plate:hover .plate__img img { transform: scale(1.09); }
.plate__coin { position: absolute; width: 22%; aspect-ratio: 1; z-index: 2; transition: transform .7s var(--ease), opacity .4s; opacity: 0; }
.plate__coin--tl { left: -5%; top: -4%; transform: translate(-12px, -12px) scale(.6); }
.plate__coin--tr { right: -5%; top: -4%; scale: -1 1; transform: translate(12px, -12px) scale(.6); }
.plate__coin--bl { left: -5%; bottom: -4%; scale: 1 -1; transform: translate(-12px, 12px) scale(.6); }
.plate__coin--br { right: -5%; bottom: -4%; scale: -1 -1; transform: translate(12px, 12px) scale(.6); }
.plate:hover .plate__coin { opacity: 1; transform: translate(0, 0) scale(1); }
.plate__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.plate__cap h3 { font-size: clamp(28px, 2.6vw, 40px); }
.plate__cap span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.plate__num { position: absolute; z-index: 3; left: 14px; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; background: var(--encre); color: var(--velin); border-radius: var(--r-pill); padding: 4px 9px; }
@media (max-width: 1000px) { .planches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .planches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .plate__cap { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
  .plate__cap h3 { font-size: 23px; }
  .plate__cap span { font-size: 11.5px; }
  .plate__num { left: 8px; top: 8px; font-size: 10px; padding: 3px 7px; }
}

/* ---------- Récit ---------- */
.recit { background: var(--velin); color: var(--encre); position: relative; }
.recit__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5vh, 64px); padding-block: calc(var(--header-h) + 24px) 48px; overflow: hidden; }
.recit__head .label { margin-bottom: 18px; }
.recit__head .sec-title { font-size: clamp(40px, 5.4vw, 88px); max-width: 16ch; }
.recit__rail { position: relative; }
.recit__track { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.step {
  position: relative; min-width: clamp(290px, 30vw, 460px); flex: none;
  border-top: 1.5px solid var(--encre); padding-top: 22px; display: flex; flex-direction: column; gap: 12px;
}
.step::before {
  content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; background: var(--outremer);
  -webkit-mask: var(--thorn) center / contain no-repeat; mask: var(--thorn) center / contain no-repeat;
}
.step__date { font-family: var(--f-display); font-size: clamp(54px, 6.6vw, 112px); line-height: .9; color: var(--outremer); white-space: nowrap; }
.step__title { font-size: clamp(26px, 2.2vw, 34px); }
.step__text { font-size: 16px; color: #3A3A3A; max-width: 38ch; }
.step__date { padding-right: .3em; }
.step--now .step__date { color: var(--minium); }
.step__seal { width: 110px; height: 110px; margin-top: 12px; }
.recit__line { position: relative; height: 2px; margin: clamp(32px, 5vh, 56px) var(--gutter) 0; background: rgba(22, 22, 22, .12); }
.recit__line i { position: absolute; inset: 0; background: var(--outremer); transform-origin: left; transform: scaleX(0); }
/* mobile et tablette : la frise est retirée (trop de défilement) */
@media (max-width: 820px) { .recit { display: none; } }

/* ---------- Savoir-faire ---------- */
.savoir { padding-block: clamp(96px, 13vw, 200px); }
.services { border-top: 1px solid var(--ligne); counter-reset: s; }
.service { border-bottom: 1px solid var(--ligne); }
.service__head {
  width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; align-items: center; gap: 20px;
  padding: clamp(22px, 2.6vw, 36px) 0; text-align: left;
}
.service__num { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); transition: color .4s; }
.service__title { font-family: var(--f-display); font-size: clamp(32px, 4.2vw, 64px); line-height: 1; transition: transform .7s var(--ease); }
.service__plus { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ligne); transition: background .4s, border-color .4s, transform .7s var(--ease); }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.8px; margin: -.9px 0 0 -8px; background: currentColor; transition: transform .6s var(--ease); }
.service__plus::after { transform: rotate(90deg); }
.service__head:hover .service__title { transform: translateX(14px); }
.service__head:hover .service__num { color: var(--minium); }
.service__head:hover .service__plus { border-color: var(--velin); }
.service__head[aria-expanded="true"] .service__plus { background: var(--minium); border-color: var(--minium); color: var(--encre); transform: rotate(180deg); }
.service__head[aria-expanded="true"] .service__plus::after { transform: rotate(0); }
.service__head[aria-expanded="true"] .service__num { color: var(--minium); }
.service__body { height: 0; overflow: hidden; }
.service__inner { display: grid; grid-template-columns: 84px minmax(0, 1fr); padding-bottom: 32px; }
.service__inner p { grid-column: 2; font-size: clamp(16px, 1.4vw, 20px); color: #CFCFCF; max-width: 60ch; }
.service__inner .tags { grid-column: 2; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 12.5px; font-weight: 700; border: 1px solid var(--ligne); border-radius: var(--r-pill); padding: 5px 12px; }
@media (max-width: 700px) { .service__head { grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 12px; } .service__inner { grid-template-columns: 48px minmax(0, 1fr); } .service__plus { width: 44px; height: 44px; } }

.valeurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(64px, 8vw, 120px); }
.valeur {
  position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--carte); padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 8px; min-height: 260px; isolation: isolate;
  transition: transform .7s var(--ease);
}
.valeur::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 75, 31, .22), transparent 70%);
}
.valeur:hover { transform: translateY(-6px); }
.valeur:hover::before { opacity: 1; }
.valeur__ico { width: 40px; height: 40px; background: var(--minium); margin-bottom: auto; transition: transform .9s var(--ease); }
.valeur:hover .valeur__ico { transform: rotate(-35deg) scale(1.15); }
.valeur__k { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--minium); margin-top: 28px; }
.valeur h3 { font-size: clamp(32px, 2.8vw, 44px); }
.valeur p:last-child { font-size: 14.5px; color: var(--muted); }
@media (max-width: 1000px) { .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .valeurs { grid-template-columns: 1fr; } .valeur { min-height: 0; } }

/* ---------- À propos ---------- */
.apropos { padding-block: clamp(64px, 9vw, 140px) clamp(96px, 13vw, 200px); }
.apropos__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.apropos__visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.portrait { position: relative; padding: 7%; }
.portrait__img { aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-s); background: var(--carte); }
.portrait__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.portrait__coin { position: absolute; width: 26%; aspect-ratio: 1; }
.portrait__coin--tl { left: 0; top: 0; }
.portrait__coin--tr { right: 0; top: 0; scale: -1 1; }
.portrait__coin--bl { left: 0; bottom: 0; scale: 1 -1; }
.portrait__coin--br { right: 0; bottom: 0; scale: -1 -1; }
.sticker {
  position: absolute; left: -4%; bottom: 9%; width: 74%; z-index: 5; touch-action: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); rotate: -7deg;
}
.sticker img { width: 100%; height: auto; pointer-events: none; user-select: none; }
.apropos__text .label { margin-bottom: 20px; }
.apropos__lead { font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.1; margin: 28px 0 32px; max-width: 24ch; }
.apropos__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 15.5px; color: #CFCFCF; }
.apropos__cols strong { color: var(--velin); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--ligne); }
.facts div { padding: 18px 12px 0 0; }
.facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; margin-top: 6px; }
.quote { display: flex; align-items: center; gap: 18px; margin-top: 44px; padding: 22px 24px; border-radius: var(--r-s); background: var(--carte); }
.quote img { width: 64px; flex: none; }
.quote p { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
@media (max-width: 900px) {
  .apropos__grid { grid-template-columns: 1fr; }
  .apropos__visual { max-width: 400px; }
}
@media (max-width: 560px) { .apropos__cols { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr; row-gap: 18px; } }

/* ---------- Contact ---------- */
.contact { padding: 0 clamp(8px, 1.4vw, 20px); background: var(--encre); }
.contact__sheet {
  position: relative; overflow: hidden; background: var(--outremer); color: var(--velin); border-radius: var(--r-l);
  padding-block: clamp(96px, 12vw, 180px) clamp(56px, 7vw, 96px); will-change: clip-path; --orn: var(--velin);
}
.contact__seme { position: absolute; inset: -40px; background: url("../assets/brand/seme-velin.svg") center / 360px repeat; opacity: .07; pointer-events: none; }
.contact__in { position: relative; }
.contact__title { font-size: clamp(56px, 12.2vw, 230px); line-height: .86; margin: 0 0 28px; white-space: nowrap; }
.contact__lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 42ch; color: rgba(242, 242, 238, .85); }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(40px, 6vw, 72px); }
.mail {
  display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
  font-size: clamp(22px, 4.2vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  position: relative; padding-bottom: 8px; max-width: 100%;
}
.mail__txt { overflow-wrap: anywhere; }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--velin); transform-origin: right; transition: transform .8s var(--ease); }
.mail:hover::after { transform: scaleX(0); }
.mail__arrow {
  width: clamp(44px, 5vw, 76px); aspect-ratio: 1; flex: none; border-radius: 50%; background: var(--velin); color: var(--outremer);
  display: grid; place-items: center; transition: background .4s, transform .7s var(--ease);
}
.mail__arrow svg { width: 44%; height: 44%; transition: transform .7s var(--ease); }
.mail:hover .mail__arrow { background: var(--minium); color: var(--encre); }
.mail:hover .mail__arrow svg { transform: rotate(45deg); }
.copy { height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid rgba(242, 242, 238, .35); font-size: 13px; font-weight: 700; transition: background .35s, color .35s, border-color .35s; }
.copy:hover { background: var(--velin); color: var(--outremer); border-color: var(--velin); }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(64px, 8vw, 110px); padding-top: 24px; border-top: 1px solid rgba(242, 242, 238, .25); }
.contact__grid .label { margin-bottom: 12px; color: rgba(242, 242, 238, .7); }
.socials { display: flex; flex-direction: column; gap: 4px; font-size: 20px; font-weight: 700; }
.clock { font-family: var(--f-display); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.avail { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 7vw, 96px) 0 28px; position: relative; overflow: hidden; }
.footer__ronce { height: 30px; margin-bottom: clamp(40px, 5vw, 72px); background: url("../assets/brand/ronce-minium-sur-encre.svg") left center / auto 100% repeat-x; opacity: .55; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__sig { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); }
.totop { width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid var(--ligne); display: grid; place-items: center; transition: border-color .4s; }
.totop img { width: 48px; height: 48px; transition: transform 1.2s var(--ease); }
.totop:hover { border-color: var(--minium); }
.totop:hover img { transform: rotate(-360deg); }
.footer__logo { margin: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); color: var(--velin); }
.footer__logo .logo { width: 100%; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--ligne); }
.link { font-weight: 700; color: var(--velin); background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Case overlay ---------- */
.case { position: fixed; inset: 0; z-index: 500; visibility: hidden; }
.case.is-open { visibility: visible; }
.case__curtain { position: absolute; inset: 0; z-index: 3; background: var(--outremer); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.case__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--encre); visibility: hidden; scrollbar-width: thin; scrollbar-color: var(--carte) transparent; }
.case__bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); background: linear-gradient(to bottom, rgba(22, 22, 22, .9), rgba(22, 22, 22, 0));
}
.case__back {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px 0 8px; border-radius: var(--r-pill);
  background: var(--velin); color: var(--encre); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.case__x { width: 32px; height: 32px; border-radius: 50%; background: var(--encre); position: relative; transition: transform .7s var(--ease); }
.case__x::before, .case__x::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.8px; margin-top: -.9px; background: var(--velin); transform: rotate(45deg); }
.case__x::after { transform: rotate(-45deg); }
.case__back:hover .case__x { transform: rotate(180deg); }
.case__count { font-size: 13px; font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--muted); }
.case__head { padding-top: clamp(28px, 5vw, 72px); }
.case__kicker { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.case__title { font-size: clamp(80px, 16vw, 280px); line-height: .86; margin: 24px 0 clamp(32px, 5vw, 64px); }
.case__banner-in { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--c, var(--carte)); }
.case__banner-in img { width: 100%; height: 100%; object-fit: cover; }
.case__banner-in.is-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.case__banner-in.is-thumb img { width: auto; height: 100%; object-fit: contain; }
.case__body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(56px, 8vw, 120px); }
.case__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; align-content: start; }
.case__meta div { border-top: 1px solid var(--ligne); padding-top: 14px; }
.case__meta dt { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case__meta dd { font-size: 17px; font-weight: 600; margin-top: 6px; }
.case__text { display: flow-root; }
.case__lettrine { float: left; width: clamp(88px, 9vw, 140px); height: auto; margin: 6px 22px 8px 0; }
.case__desc { font-family: var(--f-display); font-size: clamp(21px, 2.1vw, 32px); line-height: 1.2; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; height: 58px; padding: 0 26px 0 28px; border-radius: var(--r-pill);
  background: var(--minium); color: var(--encre); font-weight: 800; font-size: 15px; position: relative; overflow: hidden; isolation: isolate; clear: both;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--velin); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .7s var(--ease), border-radius .7s var(--ease); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn svg { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
.case__tagline { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 52ch; margin: calc(clamp(32px, 5vw, 64px) * -.45) 0 clamp(32px, 5vw, 64px); }
.case__tagline em { color: var(--velin); }

/* récit du projet */
.case__story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(64px, 9vw, 130px); }
.story { border-top: 1.5px solid var(--velin); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.story__n { font-family: var(--f-display); font-size: 44px; line-height: .9; color: var(--minium); }
.story__t { font-size: clamp(30px, 2.6vw, 40px); }
.story p { font-size: 16.5px; color: #CFCFCF; }
.story ul { display: grid; gap: 10px; }
.story li { position: relative; padding-left: 24px; font-size: 15.5px; color: #CFCFCF; }
.story li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; background: var(--minium); -webkit-mask: var(--thorn) center / contain no-repeat; mask: var(--thorn) center / contain no-repeat; }
.story li b { color: var(--velin); font-weight: 700; }
@media (max-width: 900px) { .case__story { grid-template-columns: 1fr; } }

/* galerie */
.case__gallery { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 88px); padding-bottom: clamp(80px, 10vw, 150px); }
.shot { margin: 0; }
.shot__img { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--carte); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.shot__img img { width: 100%; height: auto; display: block; }
.shot figcaption, .trio__cap { display: flex; gap: 14px; align-items: baseline; margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 70ch; }
.shot figcaption b, .trio__cap b { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--minium); flex: none; font-variant-numeric: tabular-nums; }
.trio { border-radius: var(--r-l); background: var(--c, var(--carte)); padding: clamp(24px, 5vw, 72px); overflow: hidden; }
.trio__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 36px); align-items: start; max-width: 1040px; margin-inline: auto; }
.trio .shot__img { aspect-ratio: 390 / 844; border-radius: var(--r-m); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1); }
.trio .shot__img img { height: 100%; object-fit: cover; object-position: top; }
.trio .shot:nth-child(2) { margin-top: 12%; }
.trio .shot:nth-child(3) { margin-top: 24%; }
@media (max-width: 560px) { .trio__row { grid-template-columns: repeat(3, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(clamp(24px, 5vw, 72px) * -1); padding-inline: clamp(24px, 5vw, 72px); scrollbar-width: none; } .trio .shot { scroll-snap-align: center; } }

/* identité du site client */
.case__ident { padding-bottom: clamp(80px, 10vw, 150px); }
.case__ident-t { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 28px; }
.ident { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--ligne); padding-top: 28px; }
.ident__k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ident__sw { display: flex; flex-wrap: wrap; gap: 14px; }
.ident__sw li { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ident__sw i { width: 92px; height: 92px; border-radius: var(--r-s); background: var(--s); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); display: block; transition: transform .6s var(--ease); }
.ident__sw li:hover i { transform: translateY(-6px) rotate(-3deg); }
.ident__fonts { display: grid; gap: 6px; }
.ident__fonts li { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.01em; }
.ident__fonts li small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-left: 10px; }
@media (max-width: 760px) { .ident { grid-template-columns: 1fr; } .ident__sw i { width: 72px; height: 72px; } }

.case__next {
  display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; gap: 12px; position: relative; overflow: hidden;
  padding: clamp(80px, 10vw, 150px) var(--gutter); border-top: 1px solid var(--ligne); isolation: isolate;
}
.case__next .label { justify-content: center; color: var(--muted); }
.case__next-title { font-family: var(--f-display); font-size: clamp(64px, 12vw, 200px); line-height: .9; transition: color .5s; }
.case__next::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--outremer); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.case__next:hover::before { transform: scaleY(1); }
.case__next:hover .label { color: var(--velin); }
.case__next-img { position: absolute; z-index: -1; width: clamp(140px, 14vw, 220px); aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; transform: rotate(-8deg) scale(.7); transition: opacity .5s, transform .9s var(--ease); }
.case__next-img img { width: 100%; height: 100%; object-fit: cover; }
.case__next:hover .case__next-img { opacity: .9; transform: rotate(6deg) scale(1); }
@media (max-width: 820px) { .case__body { grid-template-columns: 1fr; } }

/* ---------- Legal overlay ---------- */
.legal { position: fixed; inset: 0; z-index: 520; visibility: hidden; }
.legal.is-open { visibility: visible; }
.legal__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--velin); color: var(--encre); clip-path: inset(100% 0 0 0); --orn: var(--outremer); }
.legal__close { position: fixed; top: 18px; right: var(--gutter); z-index: 2; background: var(--encre); color: var(--velin); }
.legal__close .case__x { background: var(--velin); }
.legal__close .case__x::before, .legal__close .case__x::after { background: var(--encre); }
.legal__in { padding-block: 120px 96px; max-width: 900px; }
.legal__text { margin-top: 48px; }
.legal__text h3 { font-size: clamp(28px, 3vw, 40px); margin: 44px 0 16px; color: var(--outremer); }
.legal__text p { margin-bottom: 14px; color: #3A3A3A; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 9800;
  background: var(--velin); color: var(--encre); padding: 12px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700;
  transform: translate(-50%, 24px); opacity: 0; transition: opacity .35s, transform .6s var(--ease); pointer-events: none;
  display: flex; align-items: center; gap: 10px;
}
.toast::before { content: ""; width: 14px; height: 14px; background: var(--minium); -webkit-mask: var(--thorn) center / contain no-repeat; mask: var(--thorn) center / contain no-repeat; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .manifeste__text .w { opacity: 1; }
}
