/* Ellon Création — Piste B « La Nuit rouge »
   Tokens issus du design system « Modernist » (Archivo, rouge mono, règles 2px). */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;

  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --font: "Archivo", system-ui, sans-serif;

  --ink: var(--color-text);
  --paper: var(--color-bg);
  --panel: color-mix(in srgb, var(--color-bg) 7%, var(--color-text));
  --card: color-mix(in srgb, var(--color-bg) 13%, var(--color-text));
  --rule: color-mix(in srgb, var(--color-bg) 30%, transparent);
  --rule-soft: color-mix(in srgb, var(--color-bg) 22%, transparent);
  --rule-red: color-mix(in srgb, var(--color-bg) 45%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #000 35%, transparent);

  --gutter: 48px;
  --inset: 24px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: .9; letter-spacing: -.045em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--color-accent) 45%, transparent); color: var(--paper); }
svg { display: block; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.skip:focus { left: 8px; }

.site { max-width: 1680px; margin: 0 auto; position: relative; }

/* ---------- type helpers ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--color-neutral-400); }
.soft { color: var(--color-neutral-300); }
.red { color: var(--color-accent-400); }
.outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.num { font-size: 14px; font-weight: 600; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.45; text-wrap: pretty; }
.big-p { font-size: clamp(28px, 3.9vw, 56px); line-height: 1.1; letter-spacing: -.03em; text-wrap: pretty; }
.mid-p { font-size: clamp(26px, 3.35vw, 48px); line-height: 1.1; letter-spacing: -.03em; text-wrap: pretty; }
.body-l { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }

.d-190 { font-size: clamp(64px, 13.2vw, 190px); line-height: .82; letter-spacing: -.065em; }
.d-176 { font-size: clamp(64px, 12.2vw, 176px); line-height: .84; letter-spacing: -.06em; }
.d-150 { font-size: clamp(50px, 10.4vw, 150px); line-height: .86; letter-spacing: -.06em; }
.d-132 { font-size: clamp(54px, 9.17vw, 132px); line-height: .92; letter-spacing: -.05em; }
.d-120 { font-size: clamp(48px, 8.3vw, 120px); line-height: .86; letter-spacing: -.055em; }
.d-104 { font-size: clamp(44px, 7.2vw, 104px); line-height: .86; letter-spacing: -.055em; }
.d-88  { font-size: clamp(44px, 6.1vw, 88px); line-height: .9; letter-spacing: -.045em; }
.d-72  { font-size: clamp(40px, 5vw, 72px); line-height: .9; letter-spacing: -.045em; }

/* ---------- layout ---------- */
.panel { margin: 0 var(--inset) var(--inset); border-radius: var(--r-xl); background: var(--panel); padding: 72px 32px 48px; }
.panel--red { background: var(--color-accent-700); overflow: hidden; }
.panel--flush { padding: 0; overflow: hidden; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.ruled { border-top: 2px solid var(--rule); }
.row-rule { border-bottom: 2px solid var(--rule); }
.media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--color-neutral-900); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.grayscale img, img.grayscale { filter: grayscale(1) contrast(1.08); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 13px; font-weight: 600; color: var(--color-neutral-400);
  background-image: linear-gradient(color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; border: 2px dashed color-mix(in srgb, var(--paper) 18%, transparent); border-radius: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  border-radius: 999px; font-weight: 800; font-size: 15px; line-height: 1.2;
  padding: 12px 16px; cursor: pointer; border: 0; background: transparent; text-align: left;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--paper { background: var(--paper); color: var(--color-accent-800); }
.btn--paper:hover { background: var(--color-accent-100); }
.btn--ghost { border: 1px solid var(--paper); color: var(--paper); gap: 10px; padding: 11px 14px; }
.btn--ghost:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); }
.btn--line { border: 2px solid var(--paper); color: var(--paper); }
.btn--line:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); }
.panel--red .btn--line:hover { background: var(--color-accent-800); }
.btn--red { background: var(--color-accent-700); color: var(--paper); }
.btn--red:hover { background: var(--color-accent-800); }
.btn--lg { font-size: 18px; padding: 22px 24px; min-width: min(340px, 100%); }
.btn--md { font-size: 17px; padding: 18px 22px; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); line-height: 1.3; }
.link-u { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.link-u:hover { color: var(--color-accent-400); }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 22px var(--gutter); }
.nav--ruled { border-bottom: 2px solid var(--rule); }
.nav__logo img { height: 26px; width: auto; }
.nav .btn { white-space: nowrap; }
.nav__links { display: flex; gap: 28px; margin-left: 88px; font-size: 15px; font-weight: 600; }
.nav__links a { border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--color-accent-400); }
.nav__links a[aria-current] { border-color: var(--color-accent-400); }
.lang { margin-left: auto; display: flex; font-size: 13px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--paper) 55%, transparent); border-radius: 999px; overflow: hidden; }
.lang span { padding: 6px 10px; }
.lang .on { background: var(--paper); color: var(--ink); }
.lang--red { border-color: var(--paper); }
.lang--red .on { color: var(--color-accent-800); }

/* ---------- full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--color-accent-700); color: var(--paper);
  display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease), visibility 0s linear .5s; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
.menu__top { display: flex; align-items: center; gap: 24px; padding: 22px var(--gutter); border-bottom: 2px solid var(--rule-red); }
.menu__top img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.menu__top .lang { margin-left: auto; }
.menu__body { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 24px var(--gutter); align-items: center; }
.menu__links { grid-column: span 8; position: relative; display: flex; flex-direction: column; }
.menu__link { display: flex; align-items: baseline; gap: 24px; padding: 6px 0; color: var(--color-accent-200);
  opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .5s var(--ease), color .25s ease; }
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 200ms), calc(var(--i) * 60ms + 200ms), 0s; }
.menu__link .num { width: 32px; }
.menu__link .lbl { font-weight: 800; font-size: clamp(44px, 7.2vw, 104px); line-height: .95; letter-spacing: -.055em; transition: transform .35s var(--ease); }
.menu__links:hover .menu__link { color: color-mix(in srgb, var(--color-accent-200) 55%, transparent); }
.menu__links .menu__link:hover, .menu__link[aria-current] { color: var(--paper); }
.menu__link:hover .lbl { transform: translateX(16px); }
.m-only { display: none; }
.menu__preview { position: absolute; right: -10%; top: 4%; width: min(270px, 20vw); aspect-ratio: 3/2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-accent-800);
  opacity: 0; transform: scale(.94) rotate(-2deg); transition: opacity .3s ease, transform .4s var(--ease); pointer-events: none; }
.menu__links:hover .menu__preview { opacity: 1; transform: none; }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; }
.menu__side { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 36px; }
.menu__col { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.menu__col .eyebrow { border-bottom: 2px solid var(--rule-red); padding-bottom: 8px; }
.menu__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }
.socials a:hover { color: var(--color-accent-300); }
.menu__foot { border-top: 2px solid var(--rule-red); padding: 14px var(--gutter); }

/* ---------- footer ---------- */
.footer { padding: 0 var(--inset) var(--inset); }
.footer__card { border-radius: var(--r-xl); background: var(--panel); padding: 56px 32px 28px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.footer__logo { grid-column: span 12; width: 100%; height: auto; }
.footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer__col .eyebrow { color: var(--color-neutral-400); margin-bottom: 6px; }
.footer__col a:hover { color: var(--color-accent-400); }
.footer__tag { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.footer__tag strong { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
.footer__tag a { color: var(--color-accent-400); font-weight: 800; display: flex; gap: 8px; align-items: center; }
.footer__tag a:hover { color: var(--color-accent-300); }
.footer__bar { grid-column: span 12; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--color-neutral-400); border-top: 2px solid var(--color-neutral-800); padding-top: 16px; }
.footer__bar a:hover { color: var(--paper); }
.footer__bar .end { margin-left: auto; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: 32px; bottom: 32px; z-index: 50; display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink);
  padding: 14px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease), background .2s; }
.wa-float:hover { transform: translateY(-3px); background: var(--color-accent-100); }

/* ---------- grain papier kraft, sur toutes les pages ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' preserveAspectRatio='none' viewBox='0 0 256 256'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.86  0 0 0 0 0.72  0 0 0 0 0.52  2.6 0 0 0 -1.35'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' preserveAspectRatio='none' viewBox='0 0 256 256'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0 0.03  -2.6 0 0 0 1.15'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='none' viewBox='0 0 1600 1000'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.22' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0 0.03  22 0 0 0 -17.4'/%3E%3C/filter%3E%3Crect width='1600' height='1000' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='none' viewBox='0 0 1600 1000'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0022' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.86  0 0 0 0 0.72  0 0 0 0 0.52  0.8 0 0 0 -0.36'/%3E%3C/filter%3E%3Crect width='1600' height='1000' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px, 256px 256px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  opacity: var(--grain, .16);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   ACCUEIL
   ============================================================ */
/* Hero épinglé : le défilement pilote la métamorphose */
.hero-pin { position: relative; height: 460vh; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; display: flex; flex-direction: column; overflow: hidden; }
.hero__red { position: absolute; top: 92px; right: var(--inset); bottom: 124px; width: 39%; border-radius: var(--r-xl); background: var(--color-accent-700); }
.hero__main { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 39%; padding: 28px var(--gutter) 40px; gap: 24px; }
.hero__left { display: flex; flex-direction: column; gap: 40px; }
.hero__meta { display: flex; flex-direction: column; gap: 6px; color: var(--color-neutral-400); }
.hero__title { margin-left: -4px; }
/* chaque verbe se remplit (--i) puis se vide (--o) de gauche à droite */
.hero__title span {
  display: block; width: fit-content; color: transparent; -webkit-text-stroke: 2px var(--paper);
  background-image: linear-gradient(90deg, transparent var(--o, 0%), var(--paper) var(--o, 0%), var(--paper) var(--i, 0%), transparent var(--i, 0%));
  -webkit-background-clip: text; background-clip: text;
}
.hero__meta-wrap { position: relative; padding: 0 24px; display: flex; align-items: flex-start; }
.hero__meta-wrap .meta { width: 100%; max-width: 464px; margin-left: auto; height: clamp(380px, calc(100svh - 300px), 560px); }
.hero__bar { position: relative; display: grid; grid-template-columns: 5fr 3fr 4fr; border-top: 2px solid var(--rule); margin: 0 var(--gutter); }
.hero__line { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--color-accent-500); transform-origin: left; transform: scaleX(0); }
.hero__bar p { padding: 22px 24px 26px 0; font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.hero__bar a, .hero__bar > div { display: flex; align-items: center; padding: 0 20px; border-left: 2px solid var(--rule); }
.hero__bar a { justify-content: space-between; font-weight: 800; transition: background .2s, color .2s; }
.hero__bar a:hover { color: var(--color-accent-400); }
.scroll-cue { gap: 12px; }
.scroll-cue i { width: 2px; height: 28px; background: var(--rule); position: relative; overflow: hidden; flex: none; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--color-accent-400); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* Métamorphose — un seul monogramme qui voyage d’un support à l’autre */
.meta { display: flex; flex-direction: column; color: var(--paper); }
.meta__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 2px solid color-mix(in srgb, currentColor 45%, transparent);
  background-image: linear-gradient(color-mix(in srgb, currentColor 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, currentColor 7%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; }
.meta__label, .meta__count { position: absolute; top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; z-index: 4; }
.meta__label { left: 12px; } .meta__count { right: 12px; }
.meta__steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid color-mix(in srgb, currentColor 45%, transparent); border-top: 0; }
.meta__steps button { all: unset; cursor: pointer; position: relative; padding: 12px 10px 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; flex-direction: column; gap: 2px; opacity: .7; transition: opacity .2s, background .2s; }
.meta__steps button.is-cur { opacity: 1; }
.meta__steps button + button { border-left: 2px solid color-mix(in srgb, currentColor 45%, transparent); }
.meta__steps button:hover { background: color-mix(in srgb, currentColor 8%, transparent); opacity: 1; }
.meta__steps button:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
.meta__steps button::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(var(--f, 0)); }
.meta__steps span:first-child { opacity: .6; }

/* états : --in (entrée, rideau depuis le centre) et --out (sortie) sont pilotés en JS */
.mx { position: absolute; inset: 0; display: grid; place-items: center; --in: 1; --out: 0;
  clip-path: inset(calc((1 - var(--in)) * 50%)); opacity: calc(1 - var(--out)); transform: scale(calc(1 + var(--out) * .08)); }
.mx--center { padding-bottom: 14%; }
.mx--center > * { grid-area: 1 / 1; }
.meta__stage.is-measuring .mx, .meta__stage.is-measuring .mx * { transform: none !important; clip-path: none !important; }
.anchor { display: block; aspect-ratio: 31.13 / 31.08; }
.anchor--center { width: 50%; }
.anchor--site { width: 18px; flex: none; }
.anchor--app { width: 18px; flex: none; }
.anchor--print { width: 34%; }

/* le monogramme voyageur */
.mx-logo { position: absolute; left: 0; top: 0; z-index: 3; aspect-ratio: 31.13 / 31.08; pointer-events: none; transform-origin: 50% 50%; will-change: transform;
  -webkit-mask-image: conic-gradient(#000 var(--paint, 0deg), transparent 0); mask-image: conic-gradient(#000 var(--paint, 0deg), transparent 0); }
.mx-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-logo .w { filter: brightness(0) invert(1); }
.mx-logo .c { opacity: 0; }

/* 01 croquis */
.mx-sketch { width: 50%; aspect-ratio: 1; overflow: visible; fill: none; stroke: var(--paper); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mx-sketch * { vector-effect: non-scaling-stroke; }
.mx-sketch [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; }
.mx-sketch .faint { opacity: .3; }
.mx-sketch text { fill: var(--paper); stroke: none; font-size: 4px; letter-spacing: .06em; opacity: .7; }
.mx-ghost { width: 50%; height: auto; filter: brightness(0) invert(1); opacity: .16; }

/* 02 logo */
.crops { width: 66%; aspect-ratio: 1; position: relative; margin-top: -2%; }
.crops i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--paper); }
.crops i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .crops i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.crops i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .crops i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.brand { position: absolute; left: 14%; right: 14%; bottom: 7%; display: flex; flex-direction: column; gap: 10px; }
.brand .sw { display: flex; outline: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); }
.brand .sw i { flex: 1; height: 34px; background: var(--c); transform-origin: left; display: flex; align-items: flex-end; padding: 4px 5px; }
.brand .sw b { font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.brand .type { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); padding-top: 6px; }
.brand .type b { font-size: 26px; letter-spacing: -.03em; text-transform: none; line-height: 1; }

/* 03 site */
.m-site { width: 86%; aspect-ratio: 16/11; overflow: hidden; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.m-site .bar { height: 20px; flex: none; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 5px; padding: 0 8px; font-size: 9px; }
.m-site .bar i { width: 7px; height: 7px; background: var(--ink); } .m-site .bar i:nth-child(3) { background: var(--color-accent-700); }
.m-site .bar span { margin-left: 10px; opacity: .7; }
.m-site .nv { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #0003; }
.m-site .nv i { width: 24px; height: 4px; background: var(--color-neutral-400); } .m-site .nv i:first-of-type { margin-left: auto; } .m-site .nv i:last-child { background: var(--color-accent-700); }
.m-site .bd { flex: 1; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: minmax(0, 1fr); min-height: 0; overflow: hidden; }
.m-site .bd > div:first-child { padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.m-site .bd b { font-weight: 800; font-size: 24px; line-height: .92; letter-spacing: -.04em; transform: translateY(calc((1 - var(--in)) * 18px)); }
.m-site .ln, .m-site .pill { flex: none; }
.m-site .ln { height: 4px; width: 70%; background: var(--color-neutral-400); transform-origin: left; transform: scaleX(var(--in)); } .m-site .ln.s { width: 50%; }
.m-site .pill { height: 14px; width: 42%; background: var(--color-accent-700); border-radius: 999px; margin-top: 4px; }
.m-site .pic { background: var(--color-accent-700); border-left: 2px solid var(--ink); position: relative; overflow: hidden; }
.m-site .pic i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--paper); right: -20%; bottom: calc(-30% + var(--in) * 16%); opacity: .6; }
.m-site .ft { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); height: 20%; }
.m-site .ft i { background: var(--color-neutral-300); } .m-site .ft i + i { border-left: 2px solid var(--ink); } .m-site .ft i:nth-child(2) { background: var(--color-neutral-400); }

/* 04 app */
.m-app { height: 86%; aspect-ratio: 9/19; background: var(--ink); padding: 6px; box-shadow: var(--shadow-lg); border-radius: 22px; transform: translateY(calc((1 - var(--in)) * 30px)) rotate(calc((1 - var(--in)) * -6deg)); }
.m-app > div { width: 100%; height: 100%; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; border-radius: 17px; overflow: hidden; }
.m-app .st { display: flex; justify-content: space-between; padding: 8px 12px 4px; font-size: 8px; font-weight: 600; }
.m-app .hd { padding: 4px 10px 8px; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11px; }
.m-app .kpi { margin: 0 10px; background: var(--color-accent-700); color: var(--paper); padding: 10px; display: flex; flex-direction: column; gap: 4px; border-radius: 10px; }
.m-app .kpi small { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; } .m-app .kpi b { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.m-app .chart { margin: 10px 10px 0; height: 54px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid #0003; }
.m-app .chart i { flex: 1; height: calc(var(--h) * var(--in) * 100%); background: var(--color-neutral-400); } .m-app .chart i:last-child { background: var(--color-accent-700); }
.m-app ul { flex: 1; list-style: none; margin: 0; padding: 6px 10px; }
.m-app li { padding: 7px 0; border-bottom: 1px solid #0003; display: flex; gap: 6px; align-items: center; }
.m-app li i { width: 14px; height: 14px; background: var(--color-neutral-300); border-radius: 4px; } .m-app li:last-child i { background: var(--color-accent-300); }
.m-app li s { flex: 1; height: 4px; background: var(--color-neutral-400); }
.m-app .tb { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); height: 26px; } .m-app .tb i:first-child { background: var(--color-accent-700); }

/* 05 imprimé — le rapport s’ouvre */
.m-print { width: 86%; aspect-ratio: 3/2; display: flex; perspective: 900px; filter: drop-shadow(0 14px 24px #0007); }
.m-print > div { flex: 1; padding: 12px; }
.m-print .cv { position: relative; background: var(--color-accent-700); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; transform: rotateY(calc(var(--in) * 14deg)); transform-origin: right center; box-shadow: inset -8px 0 12px -8px #0006; }
.m-print .cv .anchor { position: absolute; left: 12px; top: 12px; }
.m-print .cv small { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.m-print .cv b { font-size: clamp(22px, 2.3vw, 32px); line-height: .9; letter-spacing: -.04em; }
.m-print .pg { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: rotateY(calc(var(--in) * -14deg)); transform-origin: left center; border-left: 1px solid var(--color-neutral-400); }
.m-print .pg > div { display: flex; flex-direction: column; gap: 4px; }
.m-print .pg b { font-size: 11px; line-height: 1; } .m-print .pg em { font-style: normal; font-weight: 800; font-size: 22px; color: var(--color-accent-700); line-height: 1; }
.m-print .pg i { height: 3px; background: var(--color-neutral-400); } .m-print .pg i.s { width: 65%; } .m-print .pg u { flex: 1; background: var(--color-neutral-300); margin-top: 4px; }

/* marquee */
.marquee { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); padding: 22px 0; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: clamp(36px, 5.3vw, 76px); line-height: 1; letter-spacing: -.04em; }
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { padding-right: .3em; }
.marquee .sep { color: var(--color-accent-500); }
.marquee .o { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
@keyframes marquee { to { transform: translateX(-50%); } }

.manifesto { margin-top: var(--inset); }
.manifesto .grid-12 > .eyebrow { grid-column: span 3; color: var(--color-neutral-400); padding-top: 12px; }
.manifesto .big-p { grid-column: span 9; }

/* réalisations — liste à survol */
.filters { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.filters a, .filters button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); transition: background .2s, color .2s, border-color .2s; }
.filters a:hover, .filters button:hover { border-color: var(--paper); }
.filters .is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.feature { height: clamp(320px, 43vw, 620px); border-radius: var(--r-lg); }
.feature-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 40px; font-size: 15px; }
.feature-cap strong { font-size: 22px; }
.plist { position: relative; border-top: 2px solid var(--rule); }
.prow { display: grid; grid-template-columns: 80px 1fr 260px 100px 40px; align-items: center; padding: 24px 0; border-bottom: 2px solid var(--rule); transition: color .3s ease, opacity .3s ease; }
.prow .t { font-weight: 800; font-size: clamp(26px, 3.05vw, 44px); letter-spacing: -.03em; line-height: 1; transition: transform .4s var(--ease); }
.prow .thumb { display: none; }
.plist:hover .prow { color: color-mix(in srgb, var(--paper) 35%, transparent); }
.plist .prow:hover { color: var(--paper); }
.prow:hover .t { transform: translateX(24px); }
.plist__preview { position: absolute; left: 0; top: 0; width: 360px; height: 250px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); pointer-events: none; opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .35s var(--ease); z-index: 3; will-change: translate; }
.plist__preview.is-on { opacity: 1; transform: scale(1); }
.plist__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.plist__preview img.is-on { opacity: 1; }
.plist__cursor { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent-700); display: grid; place-items: center; font-size: 12px; font-weight: 800; right: 12px; bottom: 12px; }

/* formes — scroll horizontal épinglé */
.forms-pin { position: relative; }
.forms-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.forms-sticky .panel { width: calc(100% - 2 * var(--inset)); padding: 64px 0 64px 24px; margin-bottom: 0; }
.forms-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-right: 48px; padding-bottom: 40px; }
.forms-prog { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 14px; font-weight: 600; }
.forms-prog .bar { width: 240px; height: 4px; background: var(--rule); } .forms-prog .bar i { display: block; height: 100%; width: 20%; background: var(--paper); }
.forms-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.fcard { width: clamp(260px, 27.8vw, 400px); display: flex; flex-direction: column; gap: 12px; }
.fcard .media { height: clamp(300px, 34.7vw, 500px); border-radius: var(--r-lg); background: var(--color-accent-800); }
.fcard .cap { display: flex; justify-content: space-between; border-top: 2px solid var(--paper); padding-top: 10px; font-weight: 800; font-size: 20px; }
.fcard .cap small { font-size: 14px; }

/* pôles */
.poles-list { border-top: 2px solid var(--rule); }
.pole-row { display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 0 24px; align-items: start; padding: 28px 0; border-bottom: 2px solid var(--rule); transition: color .25s; }
.pole-row .num { padding-top: 14px; }
.pole-row .t { font-weight: 800; font-size: clamp(30px, 3.9vw, 56px); line-height: 1; letter-spacing: -.035em; transition: color .25s, transform .4s var(--ease); }
.pole-row .chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.pole-row svg { margin-top: 14px; transition: transform .3s var(--ease); }
.pole-row:hover .t { color: var(--color-accent-400); transform: translateX(12px); }
.pole-row:hover svg { transform: rotate(45deg); color: var(--color-accent-400); }

/* chiffres */
.stats { padding: 0 var(--inset) var(--inset); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; background: var(--card); }
.stat--red { background: var(--color-accent-700); }
.stat b { font-weight: 800; font-size: clamp(56px, 6.7vw, 96px); line-height: .9; letter-spacing: -.05em; }
.stat span { font-size: 17px; color: var(--color-neutral-300); }
.stat--red span { color: var(--color-accent-100); }

/* témoignage */
.quote { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: pretty; }
.quote q { quotes: none; } .quote .red { font-weight: 600; }
.clients { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.clients div { height: 96px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--color-neutral-400); }

/* méthode */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mcard { padding: 28px; border-radius: 24px; background: var(--card); display: flex; flex-direction: column; gap: 12px; transition: background .3s ease; }
.mcard:first-child, .method:hover .mcard:hover { background: var(--color-accent-700); }
.method:hover .mcard:first-child:not(:hover) { background: var(--card); }
.mcard .n { font-weight: 800; font-size: clamp(64px, 6.7vw, 96px); line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.mcard .t { font-weight: 800; font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.mcard p { font-size: 16px; line-height: 1.5; color: var(--color-neutral-300); }

/* CTA final */
.cta { padding: 88px 48px; display: flex; flex-direction: column; gap: 48px; }
.cta h2 { font-size: clamp(56px, 13.2vw, 190px); line-height: .84; letter-spacing: -.06em; }
.cta .note { margin-left: auto; font-size: 15px; max-width: 320px; }

/* ============================================================
   RÉALISATIONS
   ============================================================ */
.page-head { padding: 72px var(--gutter) 40px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; align-items: end; }
.page-head .eyebrow { grid-column: span 12; }
.page-head h1 { grid-column: span 8; }
.page-head p { grid-column: span 4; }
.filterbar { margin: 0 var(--gutter); display: flex; align-items: center; gap: 8px; padding: 16px 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.filterbar::-webkit-scrollbar { display: none; }
.filterbar button { all: unset; cursor: pointer; flex: none; display: flex; gap: 8px; align-items: baseline; padding: 10px 14px; font-size: 15px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); transition: background .2s, color .2s, border-color .2s; }
.filterbar button:hover { border-color: var(--paper); }
.filterbar button:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }
.filterbar button small { font-size: 12px; opacity: .7; }
.filterbar button.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.filterbar .count { margin-left: auto; font-size: 14px; color: var(--color-neutral-400); flex: none; padding-left: 16px; }
.works { padding: 40px var(--gutter) 96px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; }
.work { display: flex; flex-direction: column; gap: 14px; transition: opacity .35s ease, transform .35s ease; }
.work.is-out { opacity: 0; transform: translateY(12px); }
.work[hidden] { display: none; }
.work .media { height: var(--h, 480px); }
.work .media img { transition: transform .8s var(--ease), filter .5s ease; }
.work:hover .media img { transform: scale(1.04); filter: none; }
.work .cap { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: baseline; border-top: 2px solid var(--paper); padding-top: 12px; }
.work .cap b { font-weight: 800; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.05; letter-spacing: -.02em; display: block; }
.work .cap span.muted { font-size: 15px; }
.work .tag { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent); white-space: nowrap; }
.cta-row { padding: 72px 48px; display: flex; align-items: end; gap: 40px; flex-wrap: wrap; }
.cta-row .btn { margin-left: auto; }

/* ============================================================
   ÉTUDE DE CAS
   ============================================================ */
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--color-neutral-300); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--paper); }
.case-head { padding: 40px var(--gutter) 0; }
.case-head .eyebrow { padding: 48px 0 40px; }
.case-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--rule); }
.case-meta div { padding: 16px 16px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.case-meta span:last-child { font-size: 18px; font-weight: 600; }
.case-hero { margin: 0 var(--inset) var(--inset); border-radius: var(--r-xl); height: clamp(360px, 52vw, 760px); }
.case-block { grid-template-columns: repeat(12, 1fr); gap: 80px 24px; }
.case-block > .eyebrow { grid-column: span 3; color: var(--color-neutral-400); padding-top: 12px; }
.case-block > .col { grid-column: span 9; display: flex; flex-direction: column; gap: 24px; }
.case-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.case-two .mid-p { grid-column: span 2; }
.deliv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.gallery .media:nth-child(1) { grid-column: span 7; height: clamp(300px, 39vw, 560px); }
.gallery .media:nth-child(2) { grid-column: span 5; height: clamp(300px, 39vw, 560px); }
.gallery .media:nth-child(3) { grid-column: span 4; height: clamp(240px, 28vw, 400px); }
.gallery .media:nth-child(4) { grid-column: span 8; height: clamp(240px, 28vw, 400px); }
.ba { position: relative; height: clamp(360px, 44vw, 640px); border-radius: var(--r-lg); overflow: hidden; background: var(--color-neutral-900); touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px; background: var(--color-accent-700); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 48px; height: 48px; margin: -24px 0 0 -24px; background: var(--color-accent-700); border: 2px solid var(--paper); display: grid; place-items: center; pointer-events: none; }
.ba__tag { position: absolute; top: 16px; padding: 6px 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; pointer-events: none; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__knob, .ba:focus-within .ba__knob { outline: 2px solid var(--paper); outline-offset: 3px; }
.results { padding: 88px 48px; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.results > .eyebrow { grid-column: span 12; border-bottom: 2px solid var(--rule-red); padding-bottom: 14px; }
.results .r { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; }
.results .r b { font-weight: 800; font-size: clamp(56px, 6.9vw, 100px); white-space: nowrap; line-height: .86; letter-spacing: -.055em; }
.results .r span { font-size: 18px; max-width: 320px; }
.byline { display: flex; align-items: center; gap: 16px; border-top: 2px solid var(--rule); padding-top: 16px; }
.byline .media { width: 56px; height: 56px; border-radius: 14px; }
.byline .ph { font-size: 9px; padding: 2px; border-width: 1px; }
.next { display: grid; grid-template-columns: 1fr 480px; transition: background .3s; }
.next:hover { background: var(--color-neutral-900); }
.next > div:first-child { padding: 56px 48px; display: flex; flex-direction: column; gap: 20px; }
.next .media { min-height: 420px; border-radius: 0; }
.next .arrow { color: var(--color-accent-400); display: inline-block; transition: transform .35s var(--ease); }
.next:hover .arrow { transform: translateX(16px); }

/* ============================================================
   PÔLE
   ============================================================ */
.pole-tabs { margin: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--rule); font-size: 14px; font-weight: 600; }
.pole-tabs > * { padding: 14px 16px 14px 0; display: flex; gap: 10px; color: var(--color-neutral-400); border-top: 4px solid transparent; }
.pole-tabs > [aria-current] { color: var(--paper); border-top-color: var(--color-accent-500); }
.pole-head { padding: 72px var(--gutter) 72px; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: end; }
.pole-head > .eyebrow, .pole-head > h1 { grid-column: span 12; }
.pole-head > p { grid-column: span 7; font-size: clamp(22px, 2.36vw, 34px); line-height: 1.18; letter-spacing: -.02em; text-wrap: pretty; }
.pole-head > .actions { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 12px; }
.showcase { position: relative; height: clamp(420px, 50vw, 720px); }
.showcase > .eyebrow { position: absolute; left: 48px; top: 40px; }
.dev { position: absolute; box-shadow: var(--shadow-lg); will-change: transform; }
.dev--browser { left: 8.3%; top: 15%; width: 60%; height: 75%; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; }
.dev--browser .bar { height: 30px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink); font-size: 12px; flex: none; }
.dev--browser .bar i { width: 9px; height: 9px; background: var(--ink); } .dev--browser .bar i:nth-child(3) { background: var(--color-accent-700); margin-right: 8px; }
.dev--browser .scr { flex: 1; position: relative; overflow: hidden; }
.dev--browser .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev--phone { background: var(--ink); padding: 8px; }
.dev--phone > div { width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--paper); }
.dev--phone img { width: 100%; height: 100%; object-fit: cover; }
.dev--p1 { left: 62.5%; top: 25%; width: 17.4%; height: 72%; }
.dev--p2 { left: 82.6%; top: 16.7%; width: 13.9%; height: 58%; }
.services .srow { display: grid; grid-template-columns: 80px 5fr 4fr 3fr; gap: 24px; padding: 36px 0; border-bottom: 2px solid var(--rule); }
.srow .num { padding-top: 10px; }
.srow .t { font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; letter-spacing: -.035em; }
.srow p { font-size: 18px; line-height: 1.5; color: var(--color-neutral-300); padding-top: 8px; }
.srow ul { list-style: none; margin: 0; padding: 4px 0 0; }
.srow li { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 2px solid var(--rule); padding-top: 24px; }
.related a { display: flex; flex-direction: column; gap: 12px; }
.related .media { height: clamp(260px, 29vw, 420px); }
.related .media img { transition: transform .8s var(--ease); }
.related a:hover .media img { transform: scale(1.04); }
.related .cap { display: flex; flex-direction: column; gap: 2px; border-top: 2px solid var(--paper); padding-top: 10px; }
.related .cap b { font-size: 24px; line-height: 1.2; }
.faq-wrap > div:first-child { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.faq-wrap > div:first-child p { font-size: 17px; max-width: 340px; }
.faq { grid-column: 6 / span 7; border-top: 2px solid var(--rule); }
.faq details { border-bottom: 2px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-weight: 800; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.25; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary { color: var(--color-accent-400); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--color-accent-400); }
.faq details p { padding: 0 80px 24px 0; font-size: 17px; line-height: 1.55; color: var(--color-neutral-300); }

/* ============================================================
   AGENCE
   ============================================================ */
.team-photo { margin: 0 var(--inset) var(--inset); border-radius: var(--r-xl); height: clamp(320px, 50vw, 720px); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--rule); margin-top: 16px; }
.timeline div { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid transparent; margin-top: -2px; }
.timeline div.is-now { border-top-color: var(--color-accent-500); }
.timeline b { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.timeline span { font-size: 15px; color: var(--color-neutral-300); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; border-top: 2px solid var(--rule); padding-top: 24px; }
.member { display: flex; flex-direction: column; gap: 10px; }
.member .media { aspect-ratio: 4/5; }
.member .cap { display: flex; flex-direction: column; gap: 2px; border-top: 2px solid var(--paper); padding-top: 10px; }
.member .cap b { font-size: 20px; line-height: 1.2; }
.member .cap span { font-size: 14px; color: var(--color-neutral-400); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); }
.values div { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.values b { font-weight: 800; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; letter-spacing: -.04em; }
.values span { font-size: 17px; line-height: 1.5; }
.why { grid-column: 6 / span 7; border-top: 2px solid var(--rule); }
.why > div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-bottom: 2px solid var(--rule); }
.why .num { padding-top: 8px; color: var(--color-accent-400); }
.why b { display: block; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.why p { font-size: 17px; line-height: 1.5; color: var(--color-neutral-300); }
.together { display: flex; align-items: end; gap: 40px; flex-wrap: wrap; padding: 80px 32px; }
.together .actions { margin-left: auto; display: flex; flex-direction: column; gap: 12px; min-width: min(340px, 100%); }

/* ============================================================
   DÉMARRER UN PROJET
   ============================================================ */
.wiz-head { padding: 56px var(--gutter) 0; }
.wiz-prog { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--rule); }
.wiz-prog button { all: unset; cursor: pointer; position: relative; padding: 16px 16px 16px 0; display: flex; gap: 10px; font-size: 14px; font-weight: 600; color: var(--color-neutral-400); }
.wiz-prog button::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 4px; background: transparent; transition: background .3s; }
.wiz-prog button.is-done::before { background: var(--paper); }
.wiz-prog button.is-cur { color: var(--paper); }
.wiz-prog button.is-cur::before { background: var(--color-accent-500); }
.wiz-prog button:disabled { cursor: default; }
.wiz-prog button:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }
.wiz { padding: 48px var(--gutter) 112px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; min-height: 760px; }
.wiz__side { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.wiz__q { display: flex; flex-direction: column; gap: 16px; }
.wiz__q h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1; letter-spacing: -.035em; }
.wiz__q p { font-size: 17px; line-height: 1.5; color: var(--color-neutral-300); }
.wa-box { margin-top: auto; border: 2px solid var(--rule); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.wa-box b { font-size: 22px; }
.wa-box p { font-size: 15px; line-height: 1.5; color: var(--color-neutral-300); }
.wa-box .btn { background: var(--paper); color: var(--ink); font-size: 16px; padding: 16px 18px; }
.wa-box .btn:hover { background: var(--color-neutral-300); }
.wiz__main { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 24px; }
.wiz__anim { display: flex; flex-direction: column; gap: 24px; }
.wiz__anim.is-leaving { animation: stepOut .22s ease forwards; }
.wiz__anim.is-entering { animation: stepIn .32s var(--ease); }
@keyframes stepOut { to { opacity: 0; transform: translateY(-24px); } }
@keyframes stepIn { from { opacity: 0; transform: translateY(24px); } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { position: relative; cursor: pointer; min-height: 96px; border-radius: 20px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border: 2px solid var(--rule); font-weight: 800; font-size: 20px; line-height: 1.2; transition: background .2s, border-color .2s; }
.opt:hover { border-color: var(--paper); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .txt { display: flex; flex-direction: column; gap: 6px; }
.opt .sub { font-weight: 400; font-size: 14px; color: var(--color-neutral-400); }
.opt .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--paper); display: grid; place-items: center; color: var(--color-accent-700); font-size: 14px; line-height: 1; }
.opt:has(input:checked) { background: var(--color-accent-700); border-color: var(--color-accent-700); }
.opt:has(input:checked) .sub { color: var(--paper); }
.opt:has(input:checked) .box { background: var(--paper); }
.opt:has(input:checked) .box::after { content: "✓"; }
.opt:has(input:focus-visible) { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field > span { color: var(--color-neutral-300); font-size: 14px; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); caret-color: var(--color-accent-700); background: var(--color-surface); border: 2px solid transparent; border-radius: 14px; }
.input:hover { border-color: var(--color-neutral-400); }
.input:focus-visible { border-color: var(--color-accent-500); outline: none; }
.input.is-bad { border-color: var(--color-accent-500); }
textarea.input { min-height: 130px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid .full { grid-column: span 2; }
.seg { display: flex; border: 2px solid var(--rule); align-self: flex-start; border-radius: 999px; overflow: hidden; }
.seg label { cursor: pointer; padding: 12px 20px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--paper); color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--color-accent-400); outline-offset: -4px; }
.wiz__nav { display: flex; gap: 12px; border-top: 2px solid var(--rule); padding-top: 24px; }
.wiz__nav .btn--prev { border: 2px solid var(--rule-red); color: var(--paper); font-size: 16px; padding: 16px 20px; gap: 10px; }
.wiz__nav .btn--prev:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); }
.wiz__nav .btn--red { margin-left: auto; font-size: 17px; padding: 18px 22px; min-width: min(280px, 100%); }
.wiz__err { color: var(--color-accent-400); font-size: 14px; font-weight: 600; min-height: 1.4em; }
.done { background: var(--color-accent-700); border-radius: var(--r-xl); padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.done h2 { font-size: clamp(44px, 5vw, 72px); line-height: .9; letter-spacing: -.05em; }
.done p { font-size: 18px; line-height: 1.5; max-width: 560px; }
.recap { border-top: 2px solid var(--rule-red); }
.recap div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 35%, transparent); font-size: 15px; }
.recap b { font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .nav__links { margin-left: 24px; }
  .nav { gap: 20px; }
  .nav .lang { display: none; }
  .nav .btn--paper { margin-left: auto; }
  .prow { grid-template-columns: 56px 1fr 200px 90px 32px; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .menu__links { grid-column: span 7; }
  .menu__side { grid-column: 9 / span 4; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --inset: 12px; --r-xl: 24px; }
  .outline { -webkit-text-stroke-width: 1.5px; }
  .nav { padding: 14px 20px; gap: 12px; }
  .nav__logo img { height: 18px; }
  .nav__links, .nav .lang, .nav .btn--paper { display: none; }
  .nav .btn--ghost { margin-left: auto; min-height: 44px; }
  .panel { padding: 40px 16px 32px; }
  .panel[style] { padding: 40px 16px 32px !important; }
  .grid-12 { grid-template-columns: 1fr; gap: 20px; }
  .grid-12 > * { grid-column: auto !important; }
  .head-row { padding-bottom: 16px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }

  .menu__top { padding: 14px 20px; }
  .menu__top img { height: 28px; }
  .menu__top .eyebrow { display: none; }
  .menu__top .lang { margin-left: 16px; margin-right: auto; }
  .menu__body { grid-template-columns: 1fr; padding: 16px 20px 24px; align-items: start; gap: 28px; }
  .menu__links, .menu__side { grid-column: auto; }
  .menu__link { min-height: 64px; align-items: center; gap: 14px; border-bottom: 2px solid var(--rule-red); color: var(--paper); }
  .menu__link .num { width: 22px; font-size: 12px; }
  .menu__link .lbl { font-size: 40px; }
  .d-only { display: none; } .m-only { display: inline; }
  .menu__preview { display: none; }
  .menu__side { gap: 20px; }
  .menu__side .menu__col:first-child { display: none; }
  .menu__foot { display: none; }

  .footer__card { grid-template-columns: 1fr 1fr; padding: 36px 20px 28px; gap: 28px 12px; }
  .footer__logo, .footer__tag, .footer__bar, .footer__col--contact { grid-column: span 2 !important; }
  .footer__col--poles { display: none; }
  .footer__tag strong { font-size: 19px; }

  /* accueil */
  .hero-pin { height: auto; }
  .hero { position: relative; height: auto; min-height: 0; overflow: visible; }
  .hero__line { display: none; }
  .hero__red { display: none; }
  .hero__main { grid-template-columns: 1fr; padding: 24px 20px 0; gap: 24px; }
  .hero__left { gap: 24px; }
  .hero__meta { display: none; }
  .hero__title { font-size: clamp(48px, 14vw, 72px); }
  .hero__title span { -webkit-text-stroke-width: 1.5px; }
  .hero__meta-wrap { background: var(--color-accent-700); border-radius: 24px; padding: 20px; margin: 0 -8px; }
  .hero__meta-wrap .meta { height: 400px; max-width: none; }
  .m-site .bd b { font-size: 18px; }
  .brand .sw i { height: 26px; }
  .hero__bar { grid-template-columns: 1fr; margin: 24px 20px 40px; border-top: 0; gap: 16px; }
  .hero__bar p { padding: 0; font-size: 17px; }
  .hero__bar a { border: 0; background: var(--paper); color: var(--color-accent-800); border-radius: 999px; padding: 16px 18px; }
  .hero__bar a:hover { color: var(--color-accent-800); background: var(--color-accent-100); }
  .hero__bar > div { display: none; }
  .marquee { padding: 14px 0; }
  .marquee .o { -webkit-text-stroke-width: 1px; }
  .feature, .feature-cap { display: none; }
  .filters { display: none; }
  .prow { grid-template-columns: 1fr 72px; gap: 12px; padding: 14px 0; }
  .prow > .num, .prow > .pole-col, .prow > .year, .prow > svg { display: none; }
  .prow .t { font-size: 21px; line-height: 1.1; letter-spacing: -.01em; }
  .prow .sub { display: block !important; font-size: 13px; color: var(--color-neutral-400); margin-top: 4px; }
  .prow .thumb { display: block; width: 72px; height: 72px; border-radius: 14px; }
  .plist:hover .prow { color: inherit; }
  .prow:hover .t { transform: none; }
  .plist__preview { display: none; }
  .forms-pin { height: auto !important; }
  .forms-sticky { position: static; height: auto; display: block; }
  .forms-sticky .panel { width: auto; margin: 0 var(--inset) var(--inset); padding: 32px 0 32px 16px; }
  .forms-head { flex-direction: column; align-items: flex-start; padding-right: 16px; padding-bottom: 20px; }
  .forms-prog { display: none; }
  .forms-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .forms-viewport::-webkit-scrollbar { display: none; }
  .forms-track { transform: none !important; gap: 12px; padding-right: 16px; }
  .fcard { width: 240px; scroll-snap-align: start; }
  .fcard .media { height: 300px; }
  .fcard .cap { font-size: 16px; }
  .pole-row { grid-template-columns: 32px 1fr 22px; gap: 8px; align-items: center; padding: 12px 0; min-height: 64px; }
  .pole-row .num { padding: 0; font-size: 13px; }
  .pole-row .t { font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
  .pole-row .chips { display: none; }
  .pole-row svg { margin: 0; width: 18px; height: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; border-radius: 20px; }
  .stat span { font-size: 14px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients div { height: 64px; }
  .method { grid-template-columns: 1fr; gap: 12px; }
  .cta { padding: 36px 18px; gap: 14px; }
  .cta h2 { font-size: clamp(44px, 13.5vw, 64px); margin-bottom: 8px; }
  .cta .btn-row { flex-direction: column; align-items: stretch; }
  .cta .btn { min-width: 0; font-size: 16px; padding: 16px 18px; }
  .cta .note { margin: 4px 0 0; font-size: 14px; }

  /* réalisations */
  .page-head { grid-template-columns: 1fr; padding: 36px 20px 24px; }
  .page-head > * { grid-column: auto !important; }
  .filterbar { margin: 0; padding: 12px 20px; }
  .filterbar button { min-height: 44px; align-items: center; padding: 0 14px; font-size: 14px; }
  .filterbar .count { display: none; }
  .works { grid-template-columns: 1fr; padding: 28px 20px 48px; gap: 36px; }
  .work { grid-column: auto !important; }
  .work .media { height: auto; aspect-ratio: 4/5; }
  .work .cap { grid-template-columns: 1fr auto; }
  .work .cap > .num { order: 2; }
  .work .cap .tag { display: none; }
  .work .cap b { font-size: 21px; }
  .cta-row { padding: 40px 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cta-row .btn { margin: 0; min-width: 0; font-size: 16px; padding: 16px 18px; }

  /* étude de cas */
  .case-head { padding: 28px 20px 0; }
  .case-head .eyebrow { padding: 20px 0 18px; }
  .case-meta { grid-template-columns: 1fr 1fr; margin: 28px 0; }
  .case-meta div { border-bottom: 1px solid var(--rule-soft); padding: 12px 8px 12px 0; }
  .case-meta span:last-child { font-size: 15px; }
  .case-meta div:nth-child(5) { display: none; }
  .case-two { grid-template-columns: 1fr; gap: 20px; }
  .case-two .mid-p { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery .media { grid-column: auto !important; height: auto !important; aspect-ratio: 4/5; }
  .gallery .media:nth-child(n+3) { aspect-ratio: 1; }
  .results { padding: 36px 20px; gap: 24px; }
  .results > .eyebrow { border-bottom: 0; padding-bottom: 0; }
  .results .r { border-top: 2px solid var(--rule-red); padding-top: 12px; }
  .next { grid-template-columns: 1fr; }
  .next > div:first-child { padding: 28px 20px; }
  .next .media { min-height: 240px; }

  /* pôle */
  .pole-tabs { margin: 0; padding: 0 20px; overflow-x: auto; grid-template-columns: repeat(4, max-content); gap: 20px; scrollbar-width: none; }
  .pole-head { padding: 36px 20px 40px; gap: 24px; }
  .showcase > .eyebrow { left: 16px; top: 20px; }
  .dev--browser { display: none; }
  .dev--p1 { left: 50%; top: 14%; width: 44%; height: 80%; transform: translateX(-50%); }
  .dev--p2 { display: none; }
  .services .srow { grid-template-columns: 32px 1fr; gap: 12px; padding: 24px 0; }
  .srow .num { padding-top: 6px; }
  .srow p, .srow ul { grid-column: 2; }
  .srow p { font-size: 16px; padding: 0; }
  .related { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }

  /* agence */
  .timeline { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .member .cap b { font-size: 16px; }
  .values { grid-template-columns: 1fr; }
  .values div { padding: 24px 0 0; }
  .why > div { grid-template-columns: 32px 1fr; gap: 12px; padding: 22px 0; }
  .together { padding: 40px 20px; }
  .together .actions { margin: 0; width: 100%; }

  /* wizard */
  .wiz-head { padding: 28px 20px 0; }
  .wiz-prog { margin-top: 28px; }
  .wiz-prog button { padding: 12px 6px 12px 0; }
  .wiz-prog button span:last-child { display: none; }
  .wiz { grid-template-columns: 1fr; padding: 28px 20px 64px; min-height: 0; }
  .wiz__side, .wiz__main { grid-column: auto; }
  .wiz__side { display: contents; }
  .wiz__q { order: 1; }
  .wiz__main { order: 2; }
  .wa-box { order: 3; margin-top: 16px; }
  .opts { grid-template-columns: 1fr; }
  .opt { min-height: 72px; font-size: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .full { grid-column: auto; }
  .wiz__nav .btn--red { min-width: 0; flex: 1; }
  .done { padding: 28px 20px; }
  .recap div { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-pin { height: auto; }
  .hero { position: relative; height: auto; min-height: min(920px, 100svh); }
}

/* ============================================================
   EFFETS — ouverture, transitions, curseur, révélations
   ============================================================ */
/* rideau posé dès le premier affichage (voir le script en tête de page) ; sécurité : il s’efface seul après 4 s */
html.is-covered::before { content: ""; position: fixed; inset: 0; z-index: 10000; background: var(--color-accent-700); animation: coverFailsafe 0s linear 4s forwards; }
@keyframes coverFailsafe { to { visibility: hidden; } }

/* écran d’ouverture (une fois par visite) */
@property --lp { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.loader { position: fixed; inset: 0; z-index: 10001; background: var(--color-accent-700); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding: 22px var(--gutter) 28px; cursor: pointer; transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.loader.is-out { transform: translateY(-100%); }
.loader__top { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--rule-red); padding-bottom: 14px; }
.loader__mid { display: grid; place-items: center; }
.loader__e { width: min(30vw, 230px); aspect-ratio: 31.13 / 31.08; position: relative; }
.loader__e img { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(0) invert(1); }
.loader__e .ghost { opacity: .15; }
.loader__e .ink { -webkit-mask-image: conic-gradient(#000 var(--lp), transparent 0); mask-image: conic-gradient(#000 var(--lp), transparent 0); animation: lpaint 1.25s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
@keyframes lpaint { to { --lp: 360deg; } }
.loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.loader__count { font-weight: 800; font-size: clamp(88px, 13vw, 190px); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader__words { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: clamp(22px, 2.6vw, 38px); line-height: 1; letter-spacing: -.03em; }
.loader__words span { overflow: hidden; display: block; padding-bottom: .08em; }
.loader__words b { display: block; transform: translateY(110%); animation: wordUp .7s var(--ease) forwards; }
.loader__words span:nth-child(1) b { animation-delay: .25s; } .loader__words span:nth-child(2) b { animation-delay: .6s; } .loader__words span:nth-child(3) b { animation-delay: .95s; }
@keyframes wordUp { to { transform: none; } }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* rideau de transition entre les pages */
.curtain { position: fixed; inset: 0; z-index: 10001; background: var(--color-accent-700); display: grid; place-items: center; transform: translateY(100%); transition: transform .6s cubic-bezier(.76, 0, .24, 1); pointer-events: none; }
.curtain.is-in { transform: none; pointer-events: auto; }
.curtain.is-leave { transform: translateY(-100%); }
.curtain.no-anim { transition: none; }
.curtain img { width: 56px; height: auto; filter: brightness(0) invert(1); }

/* barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9998; background: var(--color-accent-500); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* curseur personnalisé (souris uniquement) */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor summary, html.has-cursor .ba__range { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cursor { position: fixed; left: 0; top: 0; z-index: 10002; pointer-events: none; transition: opacity .3s; }
.cursor.is-hidden { opacity: 0; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--paper); mix-blend-mode: difference; }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--paper); mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s; }
.cursor__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--paper); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--color-accent-700); border-color: var(--color-accent-700); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* boutons aimantés */
.is-magnetic { transition: translate .35s var(--ease), background .2s ease, color .2s ease, transform .2s ease; }

/* titres révélés mot à mot */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .03em .1em; margin: -.14em -.03em -.1em; }
.wd-i { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 45ms); }
.is-split.is-in .wd-i { transform: none; }

/* images révélées de bas en haut */
.media.is-pre { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.media.is-pre img { scale: 1.25; transition: scale 1.6s var(--ease), transform .8s var(--ease), filter .5s ease; }
.media.is-pre.is-in { clip-path: inset(0 0 0 0); }
.media.is-pre.is-in img { scale: 1; }

/* manifeste qui s’allume au défilement */
[data-light] .lw { color: color-mix(in srgb, var(--paper) 16%, transparent); transition: color .35s ease; }
[data-light] .lw.on { color: inherit; }

/* horloge de Conakry */
.clock { display: inline-flex; align-items: center; gap: 8px; }
.clock b { color: var(--paper); font-variant-numeric: tabular-nums; }
.clock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-500); box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-500) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* clients en défilement continu */
.clients { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients .clients__track { display: flex; width: max-content; height: auto; animation: marquee 32s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients .clients__track div { width: 200px; flex: none; justify-content: center; border-left: 2px solid var(--rule); }

/* pôles dépliables */
.pole-item { border-bottom: 2px solid var(--rule); }
.pole-row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 0 24px; align-items: start; padding: 28px 0; }
.pole-row:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 4px; }
.pole-row__plus { position: relative; width: 26px; height: 26px; margin-top: 14px; transition: transform .5s var(--ease); }
.pole-row__plus i { position: absolute; left: 0; right: 0; top: 50%; height: 2.4px; margin-top: -1.2px; background: currentColor; transition: transform .45s var(--ease); }
.pole-row__plus i:last-child { transform: rotate(90deg); }
.pole-row:hover .pole-row__plus { transform: rotate(90deg); color: var(--color-accent-400); }
.pole-item.is-open .pole-row__plus { transform: rotate(180deg); color: var(--color-accent-400); }
.pole-item.is-open .pole-row__plus i:last-child { transform: rotate(0deg); }
.pole-item.is-open .pole-row .t { color: var(--color-accent-400); }
.pole-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.pole-item.is-open .pole-panel { grid-template-rows: 1fr; }
.pole-panel__in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; padding-left: 104px; }
.pole-panel__in > * { margin-bottom: 36px; opacity: 0; translate: 0 16px; transition: opacity .4s ease, translate .6s var(--ease); }
.pole-item.is-open .pole-panel__in > * { opacity: 1; translate: 0 0; }
.pole-item.is-open .pole-panel__in > :nth-child(2) { transition-delay: .08s; } .pole-item.is-open .pole-panel__in > :nth-child(3) { transition-delay: .16s; }
.pole-panel__desc { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.01em; }
.pole-panel ul { list-style: none; margin: 8px 0 0; padding: 0; }
.pole-panel li { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.pole-panel__in > div > p { margin: 8px 0 18px; font-size: 15px; line-height: 1.5; color: var(--color-neutral-300); }

/* anatomie d’un projet — défilement épinglé */
.anat { padding: 56px 24px 24px; }
.anat__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; border-top: 2px solid var(--rule); }
.anat__sticky { position: sticky; top: 10vh; height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-left: 40px; }
.anat__track { position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px; background: var(--rule); }
.anat__track i { position: absolute; inset: 0; background: var(--color-accent-500); transform-origin: top; transform: scaleY(var(--p, 0)); }
.anat__track b { position: absolute; left: -5px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--panel); border: 2px solid var(--rule); transition: background .3s, border-color .3s; }
.anat__track b.on { background: var(--color-accent-500); border-color: var(--color-accent-500); }
.anat__num { height: 1em; overflow: hidden; font-weight: 800; font-size: clamp(120px, 15vw, 230px); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--paper); }
.anat__name { height: 1.1em; overflow: hidden; font-weight: 800; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.1; letter-spacing: -.035em; color: var(--color-accent-400); }
.anat__roll { display: flex; flex-direction: column; transition: transform .8s var(--ease); }
.anat__num .anat__roll span { display: block; height: 1em; }
.anat__name .anat__roll span { display: block; height: 1.1em; }
.anat__step { min-height: 78vh; padding: 12vh 0 12vh; border-bottom: 2px solid var(--rule); display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: .22; transition: opacity .6s ease; }
.anat__step:last-child { border-bottom: 0; }
.anat__step.is-active { opacity: 1; }
.anat__step h3 { font-size: clamp(40px, 4.4vw, 64px); line-height: .95; letter-spacing: -.045em; }
.anat__lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.01em; max-width: 620px; }
.anat__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.anat__cols ul { list-style: none; margin: 8px 0 0; padding: 0; }
.anat__cols li { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.anat__role { border-left: 4px solid var(--color-accent-500); padding: 4px 0 4px 16px; font-size: 16px; color: var(--color-neutral-300); display: flex; flex-direction: column; gap: 4px; }
.anat__role .eyebrow { color: var(--paper); }

@media (max-width: 900px) {
  .pole-row { grid-template-columns: 32px 1fr 22px; gap: 8px; align-items: center; padding: 12px 0; min-height: 64px; }
  .pole-row__plus { width: 18px; height: 18px; margin: 0; }
  .pole-panel__in { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .pole-panel__in > * { margin-bottom: 20px; }
  .clients .clients__track div { width: 150px; }
  .anat { padding: 40px 16px 16px !important; }
  .anat__grid { grid-template-columns: 1fr; }
  .anat__aside { display: none; }
  .anat__step { min-height: 0; padding: 32px 0; opacity: 1; }
  .anat__cols { grid-template-columns: 1fr; }
  .loader__words { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wd-i { transform: none; }
  .media.is-pre { clip-path: none; } .media.is-pre img { scale: 1; }
  [data-light] .lw { color: inherit; }
  .anat__step { opacity: 1; }
}

/* ---------- apparition en cascade des listes et grilles ---------- */
.st-item { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(var(--si, 0) * 70ms); }
.st-item.is-in:not(.is-out) { opacity: 1; transform: none; }

/* titres en contour qui se remplissent mot à mot au défilement */
.outline .wd-i { background-image: linear-gradient(90deg, var(--paper) var(--fill, 0%), transparent var(--fill, 0%)); -webkit-background-clip: text; background-clip: text; }

/* parallaxe dans les grandes images */
.px { overflow: hidden; }
.px img { height: 116%; will-change: translate; }

/* logo du pied de page qui se dévoile */
.footer__logo.is-pre { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
.footer__logo.is-pre.is-in { clip-path: inset(0 0 0 0); }

/* FAQ : la réponse glisse à l’ouverture */
.faq details[open] p { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-10px); } }

/* formulaire : les options arrivent en cascade à chaque étape */
.wiz__anim.is-entering .opt, .wiz__anim.is-entering .field { animation: optIn .55s var(--ease) both; }
.wiz__anim.is-entering .opt:nth-child(2) { animation-delay: .04s; } .wiz__anim.is-entering .opt:nth-child(3) { animation-delay: .08s; }
.wiz__anim.is-entering .opt:nth-child(4) { animation-delay: .12s; } .wiz__anim.is-entering .opt:nth-child(5) { animation-delay: .16s; }
.wiz__anim.is-entering .opt:nth-child(6) { animation-delay: .2s; } .wiz__anim.is-entering .opt:nth-child(7) { animation-delay: .24s; }
@keyframes optIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  .st-item { opacity: 1; transform: none; }
  .footer__logo.is-pre { clip-path: none; }
}

/* ============================================================
   MOCKUPS DE PROJETS — navigateur + téléphone, dans la charte
   ============================================================ */
.mk { position: relative; overflow: hidden; border-radius: var(--r-lg); background-color: var(--color-accent-700);
  background-image: linear-gradient(color-mix(in srgb, var(--paper) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--paper) 9%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; }
.mk--ink { background-color: var(--color-neutral-900); }
.mk__label { position: absolute; left: 16px; top: 14px; z-index: 3; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mk__browser { position: absolute; left: 7%; top: 13%; width: 74%; bottom: -4%; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.mk__bar { height: 26px; flex: none; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 5px; padding: 0 10px; color: var(--ink); font-size: 11px; }
.mk__bar i { width: 8px; height: 8px; background: var(--ink); flex: none; } .mk__bar i:nth-child(3) { background: var(--color-accent-700); margin-right: 8px; }
.mk__bar span { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk__screen { position: relative; flex: 1; overflow: hidden; background: #fff; }
.mk__screen img, .mk__phone img { display: block; width: 100%; height: auto; }
.mk__scroll { transition: transform 5s cubic-bezier(.45, 0, .25, 1); will-change: transform; }
/* capture absente : un emplacement clair, en attendant le fichier */
.mk__scroll.is-missing { height: 100%; display: grid; place-items: center; padding: 12px; text-align: center; background: repeating-linear-gradient(-45deg, var(--color-surface) 0 12px, #e2e0e0 12px 24px); color: var(--color-neutral-600); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mk__scroll.is-missing img { display: none; }
.mk__scroll.is-missing::before { content: "Capture à ajouter"; }
.mk__phone { position: absolute; right: 5%; bottom: -10%; width: 19%; aspect-ratio: 390 / 844; background: var(--ink); padding: 6px; border-radius: 22px; box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.mk__phone > div { width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #fff; }
.mk__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 12px; font-weight: 600; color: var(--color-neutral-600); background: var(--color-surface); }
/* au survol d’une carte : l’écran défile et les appareils se soulèvent */
a:hover > .mk .mk__screen .mk__scroll, .mk:hover .mk__screen .mk__scroll { transform: translateY(calc(var(--scroll, 0) * -1px)); }
a:hover > .mk .mk__browser, .mk:hover .mk__browser { transform: translateY(-8px); }
a:hover > .mk .mk__phone, .mk:hover .mk__phone { transform: translateY(-18px) rotate(-2deg); }

/* ============================================================
   PAGES PROJET
   ============================================================ */
.pj-head { padding: 40px var(--gutter) 0; }
.pj-head .eyebrow.red { padding: 48px 0 32px; }
.pj-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--rule); }
.pj-meta div { padding: 16px 16px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.pj-meta span:last-child, .pj-meta a { font-size: 18px; font-weight: 600; }
.pj-meta a { display: inline-flex; gap: 8px; align-items: center; color: var(--color-accent-400); }
.pj-meta a:hover { color: var(--color-accent-300); }
.pj-stage { margin: 0 var(--inset) var(--inset); border-radius: var(--r-xl); height: clamp(420px, 56vw, 820px); }
.pj-stage .mk__browser { left: 6%; top: 12%; width: 70%; bottom: -3%; }
.pj-stage .mk__phone { right: 6%; bottom: -8%; width: 17%; border-radius: 28px; padding: 8px; }
.pj-stage .mk__phone > div { border-radius: 21px; }
.pj-intro { grid-template-columns: repeat(12, 1fr); gap: 56px 24px; }
.pj-intro > .eyebrow { grid-column: span 3; color: var(--color-neutral-400); padding-top: 12px; }
.pj-intro > .col { grid-column: span 9; display: flex; flex-direction: column; gap: 24px; }
.pj-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; border-top: 2px solid var(--rule); }
.pj-features li { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: 40px 1fr; gap: 12px; font-size: 17px; }
.pj-features li b { color: var(--color-accent-400); font-size: 13px; padding-top: 3px; }
.pj-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pj-facts div { border-top: 2px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pj-facts b { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
/* visite guidée : la capture pleine page défile avec la page */
.pj-tour { position: relative; height: 280vh; }
.pj-tour__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 0 var(--inset); }
.pj-tour__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 24px; }
.pj-tour__browser { position: relative; height: 74vh; max-width: 1240px; width: 100%; margin: 0 auto; background: var(--paper); border: 2px solid var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.pj-tour__browser .mk__bar { background: var(--paper); }
.pj-tour__browser .mk__screen img { transition: none; will-change: transform; }
.pj-tour__progress { position: absolute; right: -14px; top: 0; bottom: 0; width: 3px; background: var(--rule); }
.pj-tour__progress i { position: absolute; inset: 0; background: var(--color-accent-500); transform-origin: top; transform: scaleY(var(--p, 0)); }
/* trois écrans mobiles */
.pj-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0 0; }
.pj-phones .mk__phone { position: relative; right: auto; bottom: auto; width: min(100%, 300px); margin: 0 auto; border-radius: 30px; padding: 9px; }
.pj-phones .mk__phone > div { border-radius: 22px; }
.pj-phones .mk__phone img { height: 100%; object-fit: cover; }
.pj-phones > div:nth-child(2) { translate: 0 60px; }
.pj-phones figure { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pj-phones figcaption { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-400); }
.pj-visit { display: flex; align-items: end; gap: 40px; flex-wrap: wrap; padding: 80px 48px; }
.pj-visit .btn-row { margin-left: auto; }

/* grille des projets web (réalisations), liés, projet phare */
.work .mk { height: var(--h, 480px); }
.related .mk { height: clamp(260px, 29vw, 420px); }
.feature-mk { height: clamp(320px, 43vw, 620px); }
.feature-mk .mk__browser { left: 6%; width: 72%; }
.next .mk { border-radius: 0; min-height: 420px; }
.pj-stage .mk__browser, .pj-stage .mk__phone { will-change: transform; }

@media (max-width: 900px) {
  .pj-head { padding: 28px 20px 0; }
  .pj-head .eyebrow.red { padding: 20px 0 18px; }
  .pj-meta { grid-template-columns: 1fr 1fr; margin: 28px 0; }
  .pj-meta div { border-bottom: 1px solid var(--rule-soft); padding: 12px 8px 12px 0; }
  .pj-meta span:last-child, .pj-meta a { font-size: 15px; }
  .pj-stage { height: 380px; }
  .pj-stage .mk__browser { left: 5%; width: 84%; top: 14%; }
  .pj-stage .mk__phone { width: 30%; right: 4%; }
  .pj-intro { grid-template-columns: 1fr; gap: 20px; }
  .pj-features { grid-template-columns: 1fr; }
  .pj-features li { font-size: 15px; }
  .pj-facts { grid-template-columns: 1fr; }
  .pj-tour { height: auto; }
  .pj-tour__sticky { position: relative; height: auto; padding: 0 var(--inset) var(--inset); }
  .pj-tour__browser { height: 60vh; }
  .pj-tour__browser .mk__screen { overflow-y: auto; }
  .pj-tour__progress { display: none; }
  .pj-tour__head { padding: 0 8px; flex-direction: column; align-items: flex-start; }
  .pj-phones { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
  .pj-phones > * { scroll-snap-align: center; }
  .pj-phones > div:nth-child(2) { translate: none; }
  .pj-visit { padding: 40px 20px; flex-direction: column; align-items: stretch; }
  .pj-visit .btn-row { margin: 0; flex-direction: column; align-items: stretch; }
  .work .mk { height: auto; aspect-ratio: 4 / 5; }
  .feature-mk { display: none; }
  .next .mk { min-height: 260px; }
  .work .mk .mk__browser { width: 86%; left: 7%; }
  .work .mk .mk__phone { width: 30%; }
}

/* ============================================================
   TÉMOIGNAGES ET LOGOS CLIENTS
   ============================================================ */
.testi__slider { border-top: 2px solid var(--rule); padding-top: 40px; }
.testi__stage { display: grid; }
.testi__item { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .6s ease, transform .9s var(--ease), visibility 0s linear .6s; }
.testi__item.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease .15s, transform .9s var(--ease) .15s, visibility 0s; }
.testi__item .quote { max-width: 1180px; margin: 0; }
.testi__item figcaption { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 16px; }
.testi__nav { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.testi__bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.testi__bar { all: unset; cursor: pointer; height: 20px; display: flex; align-items: center; }
.testi__bar i { display: block; width: 100%; height: 3px; background: var(--rule); position: relative; overflow: hidden; }
.testi__bar i::after { content: ""; position: absolute; inset: 0; background: var(--color-accent-500); transform-origin: left; transform: scaleX(0); }
.testi__bar.is-done i::after { transform: scaleX(1); }
.testi__bar.is-on i::after { animation: testiBar var(--testi-dur, 7s) linear forwards; }
.testi__slider:hover .testi__bar.is-on i::after { animation-play-state: paused; }
@keyframes testiBar { to { transform: scaleX(1); } }
.testi__bar:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 4px; }
.testi__count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.testi__arrow { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.testi__arrow:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.testi__arrow:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 3px; }
.testi .clients { margin-top: 56px; }

/* logos clients : en blanc, pleine intensité au survol */
.clients .clients__track .client-logo { width: 220px; height: 110px; padding: 22px 30px; display: grid; place-items: center; }
.client-logo img, .client-cell img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .55; transition: opacity .3s ease, transform .4s var(--ease); }
.client-logo:hover img, .client-cell:hover img { opacity: 1; transform: scale(1.06); }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--rule); border-left: 2px solid var(--rule); }
.client-cell { height: 180px; padding: 36px 44px; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); display: grid; place-items: center; transition: background .3s; }
.client-cell:hover { background: color-mix(in srgb, var(--paper) 5%, transparent); }

@media (max-width: 900px) {
  .testi__slider { padding-top: 24px; }
  .testi__nav { margin-top: 28px; gap: 10px; }
  .testi__count { display: none; }
  .testi__arrow { width: 44px; height: 44px; }
  .clients .clients__track .client-logo { width: 160px; height: 84px; padding: 18px 20px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-cell { height: 120px; padding: 24px 22px; }
}

/* ---------- barre de navigation fixe (apparaît au défilement) ---------- */
.nav.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding-top: 12px; padding-bottom: 12px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 2px solid var(--rule); transform: translateY(-110%); transition: transform .45s var(--ease); }
.nav.topbar.is-shown { transform: none; }
.nav.topbar .nav__logo img { height: 22px; }
.nav.topbar .lang { display: none; }
.nav.topbar .btn--paper { margin-left: auto; }
.nav.topbar .btn { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 900px) {
  .nav.topbar { padding: 10px 20px; }
  .nav.topbar .nav__logo img { height: 17px; }
}
@media (prefers-reduced-motion: reduce) { .nav.topbar { transition: none; } }

/* ============================================================
   COHÉRENCE : plus aucun bouton ni capture à angle droit
   ============================================================ */
.filterbar button { border-radius: 999px; padding-left: 16px; padding-right: 16px; }
.mk__browser { border-radius: 14px; overflow: hidden; }
.pj-tour__browser { border-radius: 18px; overflow: hidden; }
.pj-tour__progress { right: 10px; top: 40px; bottom: 12px; border-radius: 3px; }
.dev--browser { border-radius: 16px; overflow: hidden; }
.dev--phone { border-radius: 28px; padding: 9px; }
.dev--phone > div { border-radius: 20px; }
.m-site { border-radius: 12px; overflow: hidden; }
.ba__knob { border-radius: 50%; }
.ba__tag { border-radius: 999px; padding: 6px 12px; }
.opt .box { border-radius: 7px; }
.brand .sw { border-radius: 10px; overflow: hidden; }
.mk__bar i, .m-site .bar i, .dev--browser .bar i { border-radius: 50%; }

/* ============================================================
   HERO 3D — les objets flottent sur le fond, sans panneau
   ============================================================ */
.hero__meta-wrap .meta { max-width: 520px; }
.meta__stage { border: 0; background: none; overflow: visible; perspective: 1300px; perspective-origin: 50% 40%; }
.meta__label, .meta__count { top: 0; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 7%, transparent); border: 1px solid var(--rule); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 6; }
.meta__label { left: 0; } .meta__count { right: 0; }
.meta__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.meta__stage.is-measuring .meta__scene { transform: none !important; }
.meta__glow { position: absolute; inset: 8% 4% 16%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent-700) 55%, transparent), transparent); filter: blur(30px); transform: translateZ(-260px) scale(1.4); opacity: .9; pointer-events: none; }
.meta__floor { position: absolute; left: 14%; right: 14%; bottom: 4%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(8px); transform: rotateX(78deg) translateZ(-30px); pointer-events: none; }
/* chaque écran arrive du fond en basculant, puis s’échappe vers l’avant en pivotant */
.mx { clip-path: none; transform-style: preserve-3d;
  transform: translate3d(0, calc((1 - var(--in)) * 70px), calc((1 - var(--in)) * -420px + var(--out) * 260px)) rotateX(calc((1 - var(--in)) * 32deg)) rotateY(calc(var(--out) * -34deg));
  opacity: calc(var(--in) * (1 - var(--out))); }
.m-site, .m-app, .m-print { box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.mx-logo { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); }
.mx-sketch { stroke: color-mix(in srgb, var(--paper) 80%, transparent); }
/* étiquettes flottantes */
.sat { position: absolute; transform: translate3d(0, 0, var(--z, 60px)); pointer-events: none; z-index: 5; }
.sat__in { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: color-mix(in srgb, var(--paper) 8%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); color: var(--paper);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6);
  opacity: .5; transform: scale(.92); transition: opacity .5s ease, transform .6s var(--ease), background .4s ease, color .4s ease;
  animation: satBob var(--bob, 4.5s) ease-in-out infinite alternate; }
.sat.is-hot .sat__in { opacity: 1; transform: scale(1.08); background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sat__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent-700); box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 30%, transparent); }
.sat__aa { font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
@keyframes satBob { from { translate: 0 -7px; } to { translate: 0 7px; } }
/* étapes en pilules */
.meta__steps { border: 0; gap: 6px; margin-top: 14px; }
.meta__steps button { border-radius: 999px; padding: 10px 12px 9px; background: color-mix(in srgb, var(--paper) 6%, transparent); isolation: isolate; overflow: hidden; align-items: center; text-align: center; opacity: .75; }
.meta__steps button + button { border-left: 0; }
.meta__steps button::before { top: 0; bottom: 0; height: auto; z-index: -1; background: var(--color-accent-700); }
.meta__steps button.is-cur { opacity: 1; }
.meta__steps button:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero__meta-wrap { background: none; padding: 12px 0 0; margin: 0; }
  .hero__meta-wrap .meta { height: 440px; }
  .hero { overflow-x: clip; }
  .sat[data-hot="1"] + .sat[data-hot="1"], .sat[data-hot="2"], .sat[data-hot="3"] { display: none; }
  .sat[data-hot="0"] { left: 0 !important; }
  .sat[data-hot="1"] { left: auto !important; right: 0; }
  .sat[data-hot="4"] { left: auto !important; right: 0; }
  .sat__in { font-size: 11px; padding: 6px 10px; }
  .meta__steps button { padding: 9px 4px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sat__in { animation: none; } }

/* ============================================================
   HERO — version épurée : un seul objet, un seul geste
   ============================================================ */
.meta__stage { perspective: none; }
.meta__scene { transform: none; transform-style: flat; }
.meta__glow { inset: -6% -10% 4%; filter: none; transform: none; opacity: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent-700) 34%, transparent), color-mix(in srgb, var(--color-accent-700) 10%, transparent) 55%, transparent); }
/* les supports montent du bas avec un léger rebond, puis s’effacent vers le haut */
.mx { transform-style: flat;
  transform: translate3d(0, calc((1 - var(--inb, 1)) * 110px - var(--out) * 70px), 0) scale(calc(.9 + var(--inb, 1) * .1 + var(--out) * .06)) rotate(calc((1 - var(--inb, 1)) * -4deg));
  opacity: calc(var(--in) * (1 - var(--out))); }
/* le « e » : l’ombre sur l’enveloppe, le masque (peinture) sur l’intérieur — l’ombre n’est plus coupée */
.mx-logo { -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
.mx-logo__ink { position: absolute; inset: 0; -webkit-mask-image: conic-gradient(#000 var(--paint, 0deg), transparent 0); mask-image: conic-gradient(#000 var(--paint, 0deg), transparent 0); }
.m-site, .m-app, .m-print { box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .65); }
/* onde à l’atterrissage du logo */
.mx-ring { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--color-accent-500); opacity: 0; pointer-events: none; z-index: 2; }
.mx-ring.is-go { animation: ring .9s var(--ease) forwards; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(var(--rs, 18)); } }

/* logos Ellon (SVG) */
.nav__logo img { height: 34px; width: auto; }
.nav.topbar .nav__logo img { height: 28px; }
.footer__logo { width: min(100%, 520px); height: auto; }
.menu__top img { height: 34px; }
@media (max-width: 900px) {
  .nav__logo img { height: 26px; }
  .nav.topbar .nav__logo img { height: 24px; }
  .footer__logo { width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) { .mx-ring { display: none; } }

/* logo animé du pied de page */
svg.footer__logo { display: block; overflow: visible; }
svg.footer__logo:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 8px; }

/* ============================================================
   VITRINES DES PÔLES (identité, communication, édition)
   ============================================================ */
.sc-show { height: clamp(460px, 50vw, 720px); }
.sc { position: absolute; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); will-change: translate; overflow: hidden; }
.sc__tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
/* identité */
.sc--sheet { left: 7%; top: 15%; width: 50%; height: 64%; background: var(--ink); display: grid; place-items: center; padding: 28px; }
.sc--sheet .sc__tag { position: absolute; left: 20px; top: 16px; color: var(--paper); }
.sc--sheet img { width: 72%; height: auto; position: relative; z-index: 1; }
.sc__guide { position: absolute; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.sc__guide.h { left: 0; right: 0; top: 50%; height: 1px; } .sc__guide.v { top: 0; bottom: 0; left: 50%; width: 1px; }
.sc--swatches { left: 60%; top: 12%; width: 32%; padding: 16px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.sc--swatches > div { display: flex; height: 120px; border-radius: 10px; overflow: hidden; }
.sc--swatches i { flex: 1; background: var(--c); display: flex; align-items: flex-end; padding: 8px; color: var(--paper); }
.sc--swatches b { font-size: 10px; font-weight: 600; writing-mode: vertical-rl; transform: rotate(180deg); }
.sc--type { left: 60%; top: 52%; width: 25%; padding: 18px; background: var(--color-accent-900); color: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.sc--type b { font-size: 72px; line-height: 1; letter-spacing: -.04em; }
.sc--type small { font-size: 9px; line-height: 1.5; opacity: .6; margin-top: 6px; }
.sc--card { left: 36%; top: 68%; width: 30%; aspect-ratio: 85 / 55; padding: 18px; background: var(--paper); color: var(--ink); display: flex; gap: 14px; align-items: flex-end; transform: rotate(-6deg); }
.sc--card img { width: 34%; height: auto; align-self: flex-start; }
.sc--card div { display: flex; flex-direction: column; gap: 2px; font-size: 10px; }
.sc--card b { font-size: 14px; }
/* communication */
.sc--phone { left: 9%; top: 9%; width: 23%; height: 88%; background: var(--ink); padding: 8px; border-radius: 30px; }
.sc__screen { width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; }
.feed__head { display: flex; align-items: center; gap: 8px; padding: 26px 12px 10px; font-size: 12px; }
.feed__head img { width: 26px; height: 26px; } .feed__head b { flex: 1; }
.feed__head span { background: var(--color-accent-700); color: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 800; }
.feed__stats { display: flex; gap: 12px; padding: 0 12px 10px; font-size: 10px; color: var(--color-neutral-700); }
.feed__stats b { color: var(--ink); }
.feed__grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3px; }
.feed__grid i { background: var(--c); color: var(--paper); font-style: normal; font-size: 10px; font-weight: 800; display: grid; place-items: center; text-align: center; padding: 4px; letter-spacing: -.01em; }
.sc--post { left: 38%; top: 14%; width: 30%; background: var(--paper); color: var(--ink); }
.post__img { aspect-ratio: 1; background: var(--color-accent-900); color: var(--paper); display: flex; align-items: flex-end; padding: 22px; }
.post__img b { font-size: clamp(20px, 2.2vw, 32px); line-height: .95; letter-spacing: -.04em; }
.post__bar { display: flex; gap: 12px; padding: 12px 16px; font-size: 11px; font-weight: 600; }
.sc--stats { left: 72%; top: 12%; width: 22%; padding: 18px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.sc--stats b { font-size: 44px; line-height: 1; letter-spacing: -.04em; color: var(--color-accent-400); }
.sc--stats .bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 8px; }
.sc--stats .bars i { flex: 1; height: calc(var(--h) * 100%); background: color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 3px 3px 0 0; }
.sc--stats .bars i:last-child { background: var(--color-accent-500); }
.sc--cal { left: 70%; top: 56%; width: 25%; padding: 18px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 6px; background: var(--color-surface); }
.cal i.on { background: var(--ink); } .cal i.r { background: var(--color-accent-700); }
/* édition */
.sc--mag { left: 8%; top: 10%; width: 25%; aspect-ratio: 210 / 297; padding: 20px; background: var(--color-accent-800); color: var(--paper); display: flex; flex-direction: column; gap: 8px; border-radius: 6px; }
.sc--mag img { width: 30%; filter: brightness(0) invert(1); }
.sc--mag small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-top: auto; }
.sc--mag b { font-size: clamp(30px, 3.4vw, 50px); line-height: .88; letter-spacing: -.05em; }
.sc--mag span { font-size: 11px; opacity: .8; }
.sc--spread { left: 38%; top: 18%; width: 42%; aspect-ratio: 3 / 2; display: flex; border-radius: 6px; background: var(--paper); color: var(--ink); }
.sc--spread > div { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.sc--spread > div + div { border-left: 1px solid var(--color-neutral-300); }
.sc--spread small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); }
.sc--spread b { font-size: 18px; line-height: 1.05; }
.sc--spread em { font-style: normal; font-weight: 800; font-size: 48px; line-height: 1; color: var(--color-accent-700); }
.sc--spread span { font-size: 11px; }
.sc--spread i { height: 4px; border-radius: 2px; background: var(--color-neutral-300); } .sc--spread i.s { width: 60%; }
.sc--spread u { flex: 1; border-radius: 6px; background: var(--color-surface); margin-top: 6px; }
.sc--poster { left: 70%; top: 40%; width: 22%; aspect-ratio: 42 / 59; padding: 16px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; border-radius: 6px; transform: rotate(4deg); }
.sc--poster small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.sc--poster b { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.sc--poster span { font-size: 11px; }
.sc--stamp { left: 30%; top: 70%; width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--paper); color: var(--paper); background: color-mix(in srgb, var(--color-accent-900) 60%, transparent); display: grid; place-content: center; text-align: center; transform: rotate(-14deg); box-shadow: none; }
.sc--stamp b { font-size: 34px; line-height: 1; letter-spacing: -.03em; } .sc--stamp span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 900px) {
  .sc-show { height: 440px; }
  .sc-show .sc { translate: none !important; }
  .sc--swatches, .sc--type, .sc--stats, .sc--cal, .sc--poster, .sc--stamp { display: none; }
  .sc--sheet { left: 6%; right: 6%; width: auto; top: 16%; height: 50%; }
  .sc--card { left: 22%; width: 60%; top: 62%; }
  .sc--phone { left: 8%; width: 46%; top: 12%; height: 84%; }
  .sc--post { left: 46%; width: 48%; top: 30%; }
  .sc--mag { left: 8%; width: 44%; top: 14%; }
  .sc--spread { left: 30%; width: 64%; top: 46%; }
}

/* ---------- pôles : raccourcis ronds à côté du bouton WhatsApp ---------- */
.fab-row { position: fixed; right: 32px; bottom: 32px; z-index: 50; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.fab-row > * { pointer-events: auto; }
.fab-row .wa-float { position: static; }
.pdock { display: flex; align-items: center; gap: 10px; }
.pdock__item { position: relative; display: flex; align-items: center; height: 52px; min-width: 52px; border-radius: 999px; padding: 0 4px;
  color: var(--paper); background: color-mix(in srgb, var(--ink) 78%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(18px) scale(.6); pointer-events: none;
  transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1), background .3s ease, color .3s ease, border-color .3s ease;
  transition-delay: calc(var(--i, 0) * 60ms); }
.pdock.is-shown .pdock__item { opacity: 1; transform: none; pointer-events: auto; }
.pdock__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: background .3s ease, transform .4s var(--ease); }
.pdock__label { display: flex; align-items: baseline; gap: 8px; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 14px; font-weight: 800; letter-spacing: -.01em; transform: translateX(10px);
  transition: max-width .5s var(--ease), opacity .25s ease, transform .5s var(--ease), padding .5s var(--ease); }
.pdock__label small { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--color-accent-700); }
.pdock__item:hover, .pdock__item:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); transition-delay: 0s; }
.pdock__item:hover .pdock__label, .pdock__item:focus-visible .pdock__label { max-width: 260px; opacity: 1; transform: none; padding-left: 14px; transition-delay: 0s, .08s, 0s, 0s; }
.pdock__item:hover .pdock__ico, .pdock__item:focus-visible .pdock__ico { background: var(--color-accent-700); color: var(--paper); transform: rotate(-8deg); }
.pdock__item:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: 3px; }
.pdock__item:active { transform: scale(.96); }
@media (max-width: 900px) {
  .fab-row { right: 16px; bottom: 16px; gap: 8px; }
  .pdock { gap: 8px; }
  .pdock__item { height: 48px; min-width: 48px; padding: 0 3px; }
  .pdock__ico { width: 40px; height: 40px; }
  .pdock__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pdock__item, .pdock__label { transition-duration: .01ms; } }

/* ---------- bilingue ---------- */
:lang(en) .mk__scroll.is-missing::before { content: "Screenshot coming soon"; }
.lang a { padding: 6px 10px; color: inherit; transition: background .2s, color .2s; }
.lang a:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); }
.lang a:focus-visible { outline: 2px solid var(--color-accent-400); outline-offset: -2px; }
.footer__bar .end a:hover, .footer__bar .end a[aria-current] { color: var(--paper); }

/* champ piège anti-robots du formulaire (invisible pour les humains) */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Blog (pages blog/ et en/blog/, rendues par PHP depuis le back-office)
   ========================================================================== */
.blog-head { padding: 72px var(--gutter) 40px; }
.blog-head .eyebrow { padding-bottom: 28px; }
.blog-intro { max-width: 640px; margin-top: 36px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--color-neutral-300); text-wrap: pretty; }
.blog-filtres { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 var(--gutter) 40px; }
.blog-filtres a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); font-size: 15px; font-weight: 600; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.blog-filtres a sup { font-size: 11px; color: var(--color-neutral-400); top: -.4em; }
.blog-filtres a:hover { border-color: var(--paper); }
.blog-filtres a[aria-current] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.blog-filtres a[aria-current] sup { color: var(--color-accent-700); }
.blog-vide { padding: 40px var(--gutter) 96px; color: var(--color-neutral-400); font-size: 18px; }

.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--color-neutral-400); }
.post__cat { color: var(--color-accent-400); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
a.post__cat:hover { color: var(--paper); }
.post__lang { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: var(--ink); font-size: 12px; font-weight: 600; }

/* article à la une */
.blog-une { padding: 0 var(--inset) var(--inset); }
.post-une { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: var(--r-xl); background: var(--panel); overflow: hidden; }
.post-une__media { position: relative; min-height: 420px; overflow: hidden; background: var(--color-neutral-900); }
.post-une__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-une:hover .post-une__media img { transform: scale(1.04); }
.post-une__txt { display: flex; flex-direction: column; gap: 22px; padding: 48px 40px; }
.post-une h3 { font-size: clamp(34px, 3.6vw, 60px); line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.post-une p { color: var(--color-neutral-300); font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.post-une__lire { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-weight: 800; align-self: flex-start; padding: 14px 18px; border-radius: 999px; background: var(--paper); color: var(--color-accent-800); transition: gap .3s var(--ease), background .2s; }
.post-une:hover .post-une__lire { gap: 20px; background: var(--color-accent-100); }

/* grille d’articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px var(--inset) 72px; }
.post { display: flex; flex-direction: column; gap: 18px; }
.post__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--color-neutral-900); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__txt { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.post h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; transition: color .25s var(--ease); }
.post:hover h3 { color: var(--color-accent-400); }
.post p { color: var(--color-neutral-400); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-pages { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gutter) 72px; color: var(--color-neutral-400); font-weight: 600; }

/* article */
.art-apercu { margin: 16px var(--inset) 0; padding: 12px 18px; border-radius: 999px; background: var(--color-accent-700); font-weight: 800; text-align: center; }
.art-head { max-width: 1040px; margin: 0 auto; padding: 56px var(--gutter) 48px; display: flex; flex-direction: column; gap: 26px; }
.art-back { align-self: flex-start; font-weight: 800; font-size: 15px; color: var(--color-neutral-300); transition: color .2s, transform .3s var(--ease); }
.art-back:hover { color: var(--paper); transform: translateX(-4px); }
.art-title { font-size: clamp(44px, 6.4vw, 96px); line-height: .92; letter-spacing: -.05em; text-wrap: balance; }
.art-chapeau { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.38; letter-spacing: -.01em; color: var(--color-neutral-300); text-wrap: pretty; max-width: 860px; }
.art-author { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.art-author__av { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.art-author__av img { width: 24px; height: 24px; }
.art-author b { display: block; font-size: 16px; }
.art-author small { color: var(--color-neutral-400); font-size: 13px; }
.art-cover { margin: 0 var(--inset); aspect-ratio: 16 / 8.5; max-height: 82vh; border-radius: var(--r-xl); }
.art-note { max-width: 760px; margin: 32px auto 0; padding: 14px 20px; border-radius: 16px; border: 1px solid var(--rule); color: var(--color-neutral-300); font-size: 15px; }
.art-body { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; gap: 32px; padding: 64px var(--gutter) 24px; }
.art-body .prose { grid-column: 2; }
.art-share { grid-column: 1; justify-self: end; position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.art-share .eyebrow { color: var(--color-neutral-400); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.art-share a, .art-share button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: none; display: grid; place-items: center; font-weight: 800; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.art-share a:hover, .art-share button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }
.art-share button.is-ok { background: var(--color-accent-700); border-color: var(--color-accent-700); color: var(--paper); }
.art-tags { max-width: 720px; margin: 0 auto; padding: 8px var(--gutter) 72px; box-sizing: content-box; display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags span { padding: 6px 12px; border-radius: 999px; background: var(--panel); color: var(--color-neutral-300); font-size: 14px; }
.art-related { padding: 56px var(--inset) 0; border-top: 2px solid var(--rule-soft); margin: 0 var(--inset); }
.art-related .head-row { padding: 0 8px 8px; }
.art-related .posts { padding: 24px 0 72px; }

/* typographie des articles */
.prose { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.7; color: color-mix(in srgb, var(--paper) 88%, transparent); text-wrap: pretty; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -.04em; color: var(--paper); margin-top: 1.8em; text-wrap: balance; }
.prose h3 { font-size: clamp(23px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -.03em; color: var(--paper); margin-top: 1.6em; }
.prose h4 { font-size: 19px; color: var(--paper); margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--color-accent-400); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--paper); }
.prose strong, .prose b { color: var(--paper); font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--color-accent-400); }
.prose ol li::marker { color: var(--color-accent-400); font-weight: 800; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--color-accent); font-size: 1.22em; line-height: 1.45; letter-spacing: -.015em; color: var(--paper); }
.prose img { width: 100%; height: auto; border-radius: var(--r-lg); margin-top: 1.6em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--color-neutral-400); }
.prose hr { border: 0; height: 2px; background: var(--rule-soft); margin: 2.2em 0; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--panel); }

/* derniers articles sur l’accueil */
.home-blog[hidden] { display: none; }
.home-blog .posts { padding: 8px 0 8px; }

@media (max-width: 1180px) {
  .post-une { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .blog-head { padding: 40px 16px 28px; }
  .blog-filtres { padding: 0 16px 28px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .blog-filtres a { flex: none; }
  .blog-une { padding: 0 8px 8px; }
  .post-une { grid-template-columns: 1fr; border-radius: 22px; }
  .post-une__media { min-height: 0; aspect-ratio: 16 / 11; }
  .post-une__txt { padding: 26px 20px 24px; gap: 16px; }
  .posts { grid-template-columns: 1fr; gap: 36px; padding: 24px 16px 56px; }
  .art-head { padding: 32px 16px 28px; gap: 20px; }
  .art-cover { margin: 0 8px; aspect-ratio: 4 / 3; border-radius: 22px; }
  .art-body { display: block; padding: 36px 16px 16px; }
  .art-share { position: static; flex-direction: row; justify-content: flex-start; margin-bottom: 28px; }
  .art-share .eyebrow { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
  .art-tags { padding: 8px 16px 48px; }
  .art-related { margin: 0 8px; padding: 40px 8px 0; }
  .blog-pages { padding: 0 16px 56px; }
  .blog-pages .btn { font-size: 14px; padding: 10px 14px; gap: 8px; }
}

/* ==========================================================================
   Réalisations ajoutées depuis le back-office : publications (maquettes 3D)
   ========================================================================== */
.ed-scene { position: relative; display: grid; place-items: center; padding: 48px var(--gutter) 110px; perspective: 1800px; }
.ed-livre { --w: 380px; position: relative; width: var(--w); aspect-ratio: var(--ratio, .707); transform-style: preserve-3d;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, 42deg)) rotateZ(var(--rz, 0deg)); transition: transform 1.1s var(--ease); }
.ed-livre--hero { --w: min(430px, 62vw); animation: ed-flotte 6s ease-in-out infinite; }
.ed-livre--petit { --w: 190px; }
@keyframes ed-flotte { 50% { translate: 0 -12px; } }
.ed-livre__f { position: absolute; backface-visibility: hidden; }
.ed-livre__avant, .ed-livre__arriere { inset: 0; overflow: hidden; background: #fff; }
.ed-livre__avant { transform: translateZ(calc(var(--dos) / 2)); border-radius: 1px 5px 5px 1px; }
.ed-livre__arriere { transform: rotateY(180deg) translateZ(calc(var(--dos) / 2)); border-radius: 5px 1px 1px 5px; background: #eceae8; }
.ed-livre img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-livre__avant::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 3.5%, rgba(255,255,255,.14) 5%, rgba(255,255,255,0) 30%, rgba(0,0,0,0) 78%, rgba(0,0,0,.1)); }
.ed-livre__dos { top: 0; bottom: 0; left: calc(var(--dos) / -2); width: var(--dos); transform: rotateY(-90deg); background-size: auto 100%; background-position: left center; }
.ed-livre__dos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.2) 22%, rgba(255,255,255,.28) 50%, rgba(0,0,0,.15) 72%, rgba(0,0,0,.55)); }
.ed-livre__tranche { top: 3px; bottom: 3px; left: calc(var(--w) - var(--dos) / 2 - 2px); width: var(--dos); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f7f5f2 0 1px, #d9d4cf 1px 2px); }
.ed-livre__haut { top: calc(var(--dos) / -2); left: 1px; width: calc(var(--w) - 4px); height: var(--dos); transform: rotateX(90deg);
  background: repeating-linear-gradient(0deg, #f7f5f2 0 1px, #d9d4cf 1px 2px); }
/* piqûre à cheval : dos plié très fin, agrafes visibles */
.ed-livre--piqure .ed-livre__dos { background: #f1efec; }
.ed-livre--piqure .ed-livre__dos::after { background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.4) 50%, rgba(0,0,0,.25)); }
.ed-livre--piqure .ed-livre__tranche, .ed-livre--piqure .ed-livre__haut { background: #e9e5e1; }
.ed-agrafe { position: absolute; left: 50%; top: 27%; width: 2px; height: 18px; margin-left: -1px; border-radius: 2px; background: linear-gradient(#f4f4f4, #8d8d8d); z-index: 2; }
.ed-agrafe + .ed-agrafe { top: auto; bottom: 27%; }
.ed-ombre { position: absolute; bottom: 64px; left: 50%; width: min(520px, 70vw); height: 46px; transform: translateX(-42%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); filter: blur(10px); pointer-events: none; }

.ed-section { padding: 64px 32px 80px; }
.ed-doubles { display: grid; gap: 72px; padding: 32px 0 16px; }
.ed-ouvert { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(1120px, 100%); margin: 0 auto; perspective: 2600px;
  filter: drop-shadow(0 34px 38px rgba(0,0,0,.5)); }
.ed-ouvert__p { position: relative; aspect-ratio: var(--ratio, .707); overflow: hidden; background: #fff; }
.ed-ouvert__p img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-ouvert__g { transform-origin: right center; transform: rotateY(9deg); border-radius: 4px 0 0 4px; }
.ed-ouvert__d { transform-origin: left center; transform: rotateY(-9deg); border-radius: 0 4px 4px 0; }
.ed-ouvert__g::after, .ed-ouvert__d::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ed-ouvert__g::after { background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 80%, rgba(0,0,0,.34)); }
.ed-ouvert__d::after { background: linear-gradient(270deg, rgba(255,255,255,.06), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 82%, rgba(0,0,0,.26)); }
.ed-ouvert--dos-carre .ed-ouvert__g { transform: rotateY(14deg); }
.ed-ouvert--dos-carre .ed-ouvert__d { transform: rotateY(-14deg); }
.ed-ouvert--dos-carre .ed-ouvert__g::after { background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 74%, rgba(0,0,0,.48)); }
.ed-ouvert__pli { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(0,0,0,.25); }
.ed-ouvert--piqure .ed-agrafe { height: 26px; top: 30%; }
.ed-ouvert--piqure .ed-agrafe + .ed-agrafe { top: auto; bottom: 30%; }
.ed-ouvert.reveal { opacity: 0; transform: translateY(40px) rotateX(18deg); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.ed-ouvert.reveal.is-in { opacity: 1; transform: none; }

.ed-feuilles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 28px; padding: 28px 0 8px; }
.ed-feuilles figure, .ed-couvs figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-feuille { aspect-ratio: var(--ratio, .707); overflow: hidden; background: #fff; border-radius: 3px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.ed-feuille img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-feuilles figure:nth-child(3n+1) .ed-feuille { transform: rotate(-1.6deg); }
.ed-feuilles figure:nth-child(3n+2) .ed-feuille { transform: rotate(1.2deg) translateY(10px); }
.ed-feuilles figure:nth-child(3n) .ed-feuille { transform: rotate(-.6deg) translateY(-6px); }
.ed-feuilles figure:hover .ed-feuille, .ed-couvs figure:hover .ed-feuille { transform: translateY(-10px) rotate(0) scale(1.02); box-shadow: 0 30px 60px -14px rgba(0,0,0,.6); }
.ed-feuilles figcaption, .ed-couvs figcaption { font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.ed-couvs { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 32px; align-items: center; padding: 28px 0 8px; }
.ed-couvs__livre { display: grid; place-items: center; perspective: 1400px; padding: 30px 0; }
.ed-scene--next { padding: 0; }
.next .ed-scene--next { height: 100%; }

/* cartes de la page Réalisations */
.ed-carte { position: relative; height: var(--h, 480px); border-radius: var(--r-md); background: var(--panel); overflow: hidden; display: grid; place-items: center; perspective: 1600px; }
.ed-carte::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 40%, transparent), transparent); filter: blur(30px); opacity: .55; }
.ed-carte .ed-livre { --w: clamp(150px, 16vw, 250px); }
.work:hover .ed-carte .ed-livre { --ry: 16deg; --rx: 6deg; }

@media (max-width: 900px) {
  .ed-scene { padding: 32px 16px 80px; }
  .ed-section { padding: 48px 16px 56px; }
  .ed-doubles { gap: 44px; }
  .ed-ouvert__g, .ed-ouvert--dos-carre .ed-ouvert__g { transform: rotateY(6deg); }
  .ed-ouvert__d, .ed-ouvert--dos-carre .ed-ouvert__d { transform: rotateY(-6deg); }
  .ed-feuilles { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .ed-couvs { grid-template-columns: 1fr 1fr; }
  .ed-couvs__livre { grid-column: 1 / -1; }
  .ed-carte { height: auto; aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { .ed-livre--hero { animation: none; } }
