/* Kōdo Corp — design system « Brutaliste lime »
   Encre sur lime, filets épais, ombres dures, typo Syne massive.
   Le canevas de particules (#kp) est fixe, entre les fonds de section et le contenu. */

:root {
  --lime: #d2f04a;
  --lime-deep: #b9d82f;
  --ink: #14100b;
  --ink-2: #221c15;
  --cream: #f3efe6;
  --paper: #e9e4d6;
  --mute: #5d5848;
  --mute-ink: #a49e90;
  --line: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lime: 6px 6px 0 var(--lime);
  --r: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --f-display: "Syne", "Arial Black", sans-serif;
  --f-text: "DM Sans", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --f-script: "Great Vibes", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
main, .site-footer { overflow-x: clip; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  /* pas d'overflow ici : il ferait de body un conteneur de défilement et casserait les sections sticky (html porte le clip) */
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.t-ink :focus-visible { outline-color: var(--lime); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--lime); padding: 10px 16px; border-radius: 99px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Particules */
#kp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.wrap, .site-nav, .site-footer .wrap { position: relative; z-index: 2; }

/* ---------- Thèmes de section */
section, .band { position: relative; }
.t-lime { background: var(--lime); color: var(--ink); }
.t-ink { background: var(--ink); color: var(--cream); }
.t-cream { background: var(--cream); color: var(--ink); }
.t-ink .muted { color: var(--mute-ink); }
.muted { color: var(--mute); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.pad { padding-block: clamp(80px, 12vw, 160px); }
.rule { border-top: var(--line); }
.t-ink.rule, .t-ink .rule { border-color: var(--cream); }

/* ---------- Typo */
.mono, .label {
  font: 500 12px/1.3 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label { display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 10px; height: 10px; background: currentColor; border-radius: 50%; }
.t-ink .label::before { background: var(--lime); box-shadow: 0 0 12px var(--lime); }

.d1, .d2, .d3 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.055em;
  line-height: .86;
}
.d1 { font-size: clamp(52px, 10.4vw, 168px); line-height: .9; }
.d2 { line-height: .92; }
.d2 { font-size: clamp(36px, 5vw, 80px); }
.stage-col .d2, .contact-grid .d2 { font-size: clamp(34px, 4vw, 64px); }

/* Les grands titres se calent sur la largeur de leur colonne (cqi) : un mot long comme
   « FRÉQUENTES » ou « TRANSPARENTES » ne peut plus déborder sur la colonne voisine. */
.hero-title, .sec-head > div, .stage-col, .contact-grid > div, .pin-main, .manifesto .wrap > div { container-type: inline-size; }
.d2 { font-size: min(clamp(36px, 5vw, 80px), 7.2cqi); }
.stage-col .d2, .contact-grid .d2 { font-size: min(64px, 7.4cqi); }
.err-grid > div:first-child { container-type: inline-size; }
.err h1 { font-size: min(120px, 8.6cqi); }
.d3 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.04em; line-height: .95; }
/* Surlignage : bandeau de la hauteur des capitales (et non de toute la boîte de ligne),
   pour ne pas mordre sur la ligne du dessus avec des interlignes serrés. */
.hl { --hlbg: var(--ink); background: linear-gradient(var(--hlbg), var(--hlbg)) 0 52% / 100% .98em no-repeat; color: var(--lime); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.t-ink .hl { --hlbg: var(--lime); color: var(--ink); }
.outline { color: transparent; -webkit-text-stroke: 2px currentColor; }
.t-lime .outline, .t-cream .outline { -webkit-text-stroke-color: var(--ink); }
.t-ink .outline { -webkit-text-stroke-color: var(--cream); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34em; }
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border: var(--line);
  border-radius: 999px;
  font: 700 15px/1 var(--f-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  background: var(--ink); color: var(--lime);
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.btn:active { transform: none; box-shadow: none; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.t-ink .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.t-ink .btn:hover { box-shadow: 6px 6px 0 var(--cream); }
.t-ink .btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Navigation */
.site-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max) - 2 * 24px, calc(100% - 2 * var(--gutter)));
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--f-display); letter-spacing: -.03em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 99px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--cream);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.nav-cta { padding: 12px 18px; font-size: 14px; background: var(--lime); color: var(--ink); border-color: var(--lime); }
.nav-cta:hover { box-shadow: 4px 4px 0 var(--cream); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lime); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink); color: var(--cream);
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%); transition: transform .45s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu nav a { display: block; font: 800 clamp(40px, 11vw, 64px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.05em; text-decoration: none; padding: 6px 0; }
.mobile-menu nav a:hover { color: var(--lime); }
.mobile-menu .mono { color: var(--mute-ink); }

/* ---------- Hero */
.hero { min-height: 100svh; padding-top: 128px; display: flex; flex-direction: column; overflow: hidden; }
.hero .wrap { flex: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 24px; padding-bottom: 40px; }
.hero-title { grid-column: 1 / -1; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.6vw, 82px); font-size: min(82px, 6.6cqi); line-height: .9; }
.hero h1 .row { display: block; white-space: nowrap; }
@media (max-width: 860px) { .hero h1 .row { white-space: normal; } }
.hero-copy { align-self: end; padding-top: 34px; }
.hero .lead { font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-side { position: relative; min-height: 300px; }
.sticker {
  position: absolute; right: 0; top: 28px;
  width: clamp(130px, 13vw, 190px); aspect-ratio: 1;
  border-radius: 50%; background: var(--ink); color: var(--lime);
  display: grid; place-items: center;
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.sticker b { font: 400 clamp(26px, 2.6vw, 38px)/.9 var(--f-script); text-align: center; transform: rotate(-8deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.price-tag {
  position: absolute; right: 0; bottom: 0; width: min(100%, 270px);
  background: var(--cream); border: var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow); transform: rotate(2.5deg);
}
.price-tag strong { display: block; font: 800 38px/1 var(--f-display); letter-spacing: -.04em; margin: 8px 0 6px; }
.price-tag p { font-size: 14px; color: var(--mute); }
.rating { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: 14px; font-weight: 500; }
.rating b { font: 800 30px/1 var(--f-display); }

/* ---------- Rubans */
.tape { position: relative; z-index: 3; background: var(--ink); color: var(--lime); overflow: hidden; white-space: nowrap; border-block: var(--line); }
.tape.alt { background: var(--cream); color: var(--ink); transform: rotate(-1.6deg); margin: -14px -10px 0; }
.tape-track { display: inline-flex; animation: tape 30s linear infinite; }
.tape.alt .tape-track { animation-direction: reverse; animation-duration: 36s; }
.tape span { font: 800 clamp(20px, 2.4vw, 30px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; padding: 16px 0; }
.tape span::after { content: "✳"; margin: 0 .7em; font-size: .8em; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Têtes de section */
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .label { margin-bottom: 22px; }
.sec-head p { max-width: 34em; }
.sec-head .side { display: grid; gap: 14px; justify-items: start; max-width: 34em; }

/* Mise en page « scène » : colonne sticky (titre + zone de particules) / contenu */
.stage-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); }
.stage-col { position: sticky; top: 110px; align-self: start; min-height: calc(100svh - 140px); display: flex; flex-direction: column; }
.stage-col .label { margin-bottom: 22px; }
.stage-col p { margin-top: 22px; max-width: 30em; }
.stage-zone { flex: 1; min-height: 200px; }

/* ---------- Services (lignes) */
.svc-list { border-top: var(--line); }
.svc {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 18px; align-items: start;
  padding: 28px 18px; border-bottom: var(--line);
  text-decoration: none; position: relative;
  transition: background .25s, color .25s, padding .25s var(--ease);
}
.svc:hover { background: var(--ink); color: var(--lime); padding-left: 28px; }
.svc .num { font: 500 13px var(--f-mono); padding-top: 10px; }
.svc h3 { font: 800 clamp(30px, 3.6vw, 52px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.05em; }
.svc p { margin-top: 12px; max-width: 34em; }
.svc:hover p { color: var(--cream); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 99px; padding: 6px 10px; }
.svc .go { width: 44px; height: 44px; border-radius: 50%; border: var(--line); display: grid; place-items: center; font-size: 20px; transition: transform .25s var(--ease), background .25s; }
.svc:hover .go { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: rotate(-45deg); }
.note-card { margin-top: 32px; background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 22px 24px; }
.note-card strong { display: block; font: 800 22px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; color: var(--lime); margin-bottom: 8px; }

/* ---------- Projets */
.proj-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.proj { grid-column: span 2; min-width: 0; position: relative; border: 2px solid var(--cream); border-radius: var(--r); overflow: hidden; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.proj:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-lime); }
.proj-grid.duo .proj { grid-column: span 3; }
.proj-grid.duo .proj .media { min-height: 320px; }
.proj-grid.solo .proj { grid-column: 1 / -1; flex-direction: row; }
.proj-grid.solo .proj .media { flex: 1.3; min-height: 380px; border-bottom: 0; border-right: 2px solid var(--ink); }
.proj-grid.solo .proj .body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 40px); }
.t-lime .proj .body { background: var(--ink); }

/* ---------- Études de cas : fonctionnalités, stack, galerie, suite */
.feat-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; border-top: 1px solid rgba(243, 239, 230, .2); }
.feat-list li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid rgba(243, 239, 230, .2); font-weight: 500; }
.feat-list li::before { content: "✳"; position: absolute; left: 0; color: var(--lime); }
.stack { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stack .mono { color: var(--mute-ink); }
.stack .tags { margin: 0; }
.stack .tags li { color: var(--lime); }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.g1 { grid-template-columns: minmax(0, 1fr); }
.gallery.g3 .gal-item:first-child { grid-column: 1 / -1; }
.gal-item { margin: 0; border: 2px solid var(--cream); border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.gal-item img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: top; }
.gal-item figcaption { padding: 12px 16px; color: var(--mute-ink); border-top: 1px solid rgba(243, 239, 230, .2); }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip-link { display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border: var(--line); border-radius: 99px; text-decoration: none; font-weight: 700; transition: background .15s, color .15s; }
.chip-link:hover { background: var(--ink); color: var(--lime); }
.case-stats > div { container-type: inline-size; }
.case-stats > div strong { font-size: min(84px, 16cqi); }
.next-case { container-type: inline-size; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: var(--line); padding-top: 26px; }
.next-case a { font: 800 min(64px, 6.4cqi)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.05em; text-decoration: none; }
.next-case a:hover { color: var(--ink); background: var(--lime); }
.side-note { font-size: 15px; }
.case-meta dd a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.proj .media, .proj .type-art { position: relative; flex: 1; min-height: 220px; overflow: hidden; border-bottom: 2px solid var(--ink); }
.proj:nth-child(1) .media, .proj:nth-child(2) .type-art { min-height: 340px; }
.proj .media { background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.proj:hover .media { transform: scale(1.04); }
.proj .type-art { display: grid; place-items: center; font: 800 clamp(64px, 8vw, 132px)/.8 var(--f-display); letter-spacing: -.07em; text-transform: uppercase; color: var(--ink); transition: letter-spacing .5s var(--ease); }
.proj:hover .type-art { letter-spacing: -.03em; }
.proj .body { position: relative; padding: 22px; background: var(--ink); }
.proj h3 { overflow-wrap: anywhere; font: 800 clamp(24px, 2.3vw, 36px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.045em; margin: 12px 0 8px; }
.proj p { font-size: 15px; color: #cfc9bc; max-width: 32em; }
.proj .tags li { color: var(--lime); }
.c-lime { background: var(--lime); } .c-cream { background: var(--cream); } .c-paper { background: #d9cdb6; } .c-coral { background: #ff7a59; } .c-lilac { background: #cfc9ff; }

/* ---------- Méthode */
.steps { display: grid; gap: 18px; counter-reset: s; }
.step { border: var(--line); border-radius: var(--r); background: var(--cream); padding: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow); }
.step .big { grid-row: span 2; font: 800 64px/.8 var(--f-display); letter-spacing: -.06em; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.step:hover .big { color: var(--lime); }
.step h3 { font: 800 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: -.04em; }
.step .tag { grid-column: 2; justify-self: start; margin-top: 6px; background: var(--ink); color: var(--lime); padding: 6px 10px; border-radius: 99px; }

/* ---------- Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--cream); border: var(--line); border-radius: var(--r); padding: 28px; }
.plan.featured { background: var(--ink); color: var(--cream); transform: rotate(-1.2deg); box-shadow: 10px 10px 0 var(--ink-2); }
.plan .ribbon { position: absolute; top: -16px; right: 20px; background: var(--lime); color: var(--ink); border: var(--line); border-radius: 99px; padding: 7px 12px; transform: rotate(4deg); }
.plan h3 { font: 800 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: -.045em; }
.plan .kind { margin-top: 6px; color: var(--mute); }
.plan.featured .kind { color: var(--mute-ink); }
.plan .price { margin: 24px 0 4px; font: 800 clamp(48px, 5vw, 66px)/.9 var(--f-display); letter-spacing: -.06em; }
.plan.featured .price { color: var(--lime); }
.plan .unit { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.plan .desc { margin: 18px 0; font-size: 15px; }
.plan ul { border-top: 1.5px solid currentColor; margin-bottom: 26px; flex: 1; }
.plan li { padding: 11px 0 11px 26px; border-bottom: 1px solid rgba(20, 16, 11, .18); position: relative; font-size: 15px; }
.plan.featured li { border-color: rgba(243, 239, 230, .18); }
.plan li::before { content: "✳"; position: absolute; left: 0; top: 11px; }
.plan.featured li::before { color: var(--lime); }
.plan .btn { justify-content: center; }
.plan.featured .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.plan.featured .btn:hover { box-shadow: 5px 5px 0 var(--cream); }

.compare { margin-top: 56px; border: var(--line); border-radius: var(--r); background: var(--cream); overflow: hidden; }
.compare summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font: 800 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary .mono { font-family: var(--f-mono); }
.compare .scroll { overflow-x: auto; border-top: var(--line); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 24px; border-bottom: 1px solid rgba(20, 16, 11, .15); }
.compare thead th { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); }
.compare tbody th { font-weight: 700; }
.compare .hi { background: var(--lime); }

/* ---------- Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 22px; border: 2px solid var(--cream); }
.quote:nth-child(2) { background: var(--lime); border-color: var(--lime); transform: translateY(32px); }
.quote .stars { letter-spacing: .2em; }
.quote blockquote { font: 700 clamp(20px, 1.8vw, 24px)/1.25 var(--f-display); letter-spacing: -.02em; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font: 800 18px var(--f-display); }
.quote figcaption b { display: block; font-size: 15px; }

/* ---------- FAQ */
.faq { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font: 700 clamp(19px, 1.7vw, 23px)/1.25 var(--f-display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 40px; height: 40px; border: var(--line); border-radius: 50%; display: grid; place-items: center; font: 400 24px/1 var(--f-text); transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--lime); }
.faq details p { padding: 0 60px 26px 4px; max-width: 46em; }

/* ---------- Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-direct { display: grid; gap: 10px; margin-top: 30px; }
.contact-direct a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: var(--line); text-decoration: none; font: 700 clamp(17px, 1.6vw, 21px)/1.2 var(--f-display); word-break: break-word; }
.contact-direct a:hover { padding-left: 8px; }
.form { background: var(--cream); border: var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: 10px 10px 0 var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: #fff; border: var(--line); border-radius: 10px; font-size: 16px;
  transition: box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.form-status { font-size: 14px; font-weight: 500; }
.form-help { font-size: 13px; color: var(--mute); margin-top: 14px; }

/* ---------- Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 90px 0 30px; overflow: hidden; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { text-decoration: none; color: var(--cream); }
.foot-grid a:hover { color: var(--lime); }
.foot-grid p { color: var(--mute-ink); max-width: 26em; margin-top: 14px; }
.giant { margin: 70px 0 24px; }
.giant svg { width: 100%; height: auto; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(243, 239, 230, .2); padding-top: 22px; font-size: 14px; color: var(--mute-ink); }
.foot-bottom nav { display: flex; gap: 18px; }
.foot-bottom a { color: var(--mute-ink); text-decoration: none; }
.foot-bottom a:hover { color: var(--lime); }

/* ---------- Compteur de chapitres */
.chapter-counter {
  position: fixed; left: var(--gutter); bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream); border-radius: 99px; padding: 10px 16px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), background .3s, color .3s;
  pointer-events: none;
}
.chapter-counter.on { opacity: 1; transform: none; }
.chapter-counter.on.off { opacity: 0; transform: translateY(12px); }
.chapter-counter .n { color: var(--lime); font-weight: 500; }
.chapter-counter.on-ink { background: var(--lime); color: var(--ink); }
.chapter-counter.on-ink .n { color: var(--ink); }

/* ---------- Manifeste */
.manifesto .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: end; }
.manifesto .d1 { font-size: clamp(48px, 9vw, 150px); font-size: min(150px, 12.5cqi); }
.manifesto .cols { display: grid; gap: 18px; margin-top: 40px; max-width: 40em; }

/* ---------- Services épinglés (SV3) */
.svc-pin { height: calc(100svh + 6 * 70svh); }
.pin-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: stretch; }
.pin-sticky .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; padding-top: 120px; padding-bottom: 40px; }
.pin-main { display: flex; flex-direction: column; min-height: 0; }
.pin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.pin-head h2 { font: 800 clamp(18px, 1.6vw, 22px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; margin-top: 16px; color: var(--mute-ink); max-width: 22em; }
.pin-stack { position: relative; flex: 1; min-height: 340px; }
.pin-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(40px); visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.pin-step.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.pin-step .num { font: 500 13px var(--f-mono); letter-spacing: .14em; color: var(--lime); }
.pin-step h3 { margin: 16px 0 22px; font-size: clamp(44px, 6vw, 96px); font-size: min(96px, 8.8cqi); color: var(--cream); }
.pin-step h3 .hl { line-height: 1.02; }
.pin-step p { max-width: 30em; color: #d6d0c3; font-size: clamp(17px, 1.4vw, 20px); }
.pin-step .tags { margin: 20px 0 28px; }
.pin-step .tags li { color: var(--lime); }
.pin-step .btn { align-self: flex-start; }
.pin-foot { display: flex; align-items: center; gap: 18px; }
.pin-progress { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.pin-progress i { flex: 1; height: 4px; background: rgba(243, 239, 230, .2); border-radius: 2px; transition: background .3s; }
.pin-progress i.on { background: var(--lime); }
.pin-foot .mono { color: var(--mute-ink); }
.pin-foot .pin-count { color: var(--lime); }

/* ---------- Projets sur fond lime */
.t-lime .proj { border-color: var(--ink); }
.t-lime .proj:hover { box-shadow: var(--shadow); }
.proj .type-art span { display: block; transform: rotate(-6deg); white-space: nowrap; }
.proj .badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--ink); color: var(--lime); border-radius: 99px; padding: 7px 11px; }
.sec-more { margin-top: 36px; display: flex; justify-content: flex-end; }

/* ---------- Zone particules du contact + terrain de jeu */
.contact-zone { min-height: 240px; margin-top: 24px; }
.playground { margin-top: 34px; }
.pg-row { display: flex; gap: 10px; margin-top: 10px; }
.pg-row input {
  flex: 1; min-width: 0; padding: 14px 18px; border: var(--line); border-radius: 999px; background: var(--cream);
  font: 800 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em;
}
.pg-row input::placeholder { color: rgba(20, 16, 11, .35); }
.pg-row input:focus { outline: none; box-shadow: 4px 4px 0 var(--ink); }
.playground .form-help { margin-top: 10px; }

/* ---------- Estimateur */
.estimator { margin-top: 56px; border: var(--line); border-radius: var(--r); background: var(--cream); padding: clamp(22px, 3vw, 36px); }
.est-head { display: grid; justify-items: start; gap: 16px; margin-bottom: 28px; }
.est-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.est-controls { display: grid; gap: 26px; }
.est-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.est-field legend, .est-field > label { display: flex; justify-content: space-between; width: 100%; margin-bottom: 12px; }
.est-field output { font: 800 20px/1 var(--f-display); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border: var(--line); border-radius: 999px; font-weight: 500; font-size: 15px; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.chips label:hover span { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--lime); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: var(--line); border-radius: 99px; background: #fff; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); border: var(--line); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: var(--line); cursor: grab; }
.est-result { display: flex; flex-direction: column; gap: 6px; background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 26px; box-shadow: 8px 8px 0 var(--lime-deep); position: sticky; top: 110px; }
.est-offer { color: var(--lime); }
.est-price { font: 800 clamp(44px, 5vw, 68px)/.9 var(--f-display); letter-spacing: -.06em; color: var(--lime); margin-top: 6px; }
.est-result > .mono:not(.est-offer) { color: var(--mute-ink); }
.est-meta { display: grid; gap: 12px; margin: 18px 0 6px; border-top: 1px solid rgba(243, 239, 230, .2); padding-top: 16px; }
.est-meta dt { color: var(--mute-ink); margin-bottom: 3px; }
.est-meta dd { font-size: 15px; }
.est-tip { font-size: 14px; color: var(--lime); min-height: 1em; }
.est-result .btn { margin-top: 12px; justify-content: center; background: var(--lime); color: var(--ink); border-color: var(--lime); }
.est-result .btn:hover { box-shadow: 5px 5px 0 var(--cream); }
.estimator > .form-help { margin-top: 18px; }

/* ---------- Étude de cas */
.case-hero { padding: 140px 0 70px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.case-hero .label { display: flex; }
.case-title { margin: 22px 0 26px; }
.case-hero .wrap { container-type: inline-size; }
.case-title { font-size: min(130px, 7.6cqi); }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 34px; border-top: var(--line); border-bottom: var(--line); }
.case-meta div { padding: 16px 18px 16px 0; }
.case-meta div + div { border-left: var(--line); padding-left: 18px; }
.case-meta dt { margin-bottom: 6px; color: var(--mute); }
.case-meta dd { font-weight: 700; }
.case-shot { padding: clamp(50px, 7vw, 100px) 0; }
.browser-frame { border: 2px solid var(--cream); border-radius: var(--r); overflow: hidden; background: var(--ink-2); box-shadow: 12px 12px 0 var(--lime); }
.bf-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 2px solid var(--cream); }
.bf-bar i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--cream); }
.bf-bar i:first-child { background: var(--lime); border-color: var(--lime); }
.bf-bar span { margin-left: 12px; color: var(--mute-ink); }
.browser-frame img, .case-photo img { width: 100%; height: auto; }
.case-photo { border: 2px solid var(--cream); border-radius: var(--r); overflow: hidden; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.case-stats div { background: var(--cream); border: var(--line); border-radius: var(--r); padding: 26px; }
.case-stats strong { display: block; font: 800 clamp(48px, 6vw, 88px)/.9 var(--f-display); letter-spacing: -.06em; }
.case-next .wrap, .case-next { container-type: inline-size; }

/* ---------- Transitions entre pages (View Transitions API, navigateurs compatibles) */
@view-transition { navigation: auto; }
.site-nav { view-transition-name: nav; }
#kp { view-transition-name: particles; }
.chapter-counter { view-transition-name: counter; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
::view-transition-old(particles), ::view-transition-new(particles) { animation-duration: .25s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Palette de commandes (⌘K) */
.pal-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1.5px solid rgba(243, 239, 230, .3); border-radius: 99px; background: transparent; color: var(--cream); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pal-btn:hover { border-color: var(--lime); }
.pal-btn kbd { font: 500 12px var(--f-mono); letter-spacing: .06em; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.palette {
  width: min(640px, calc(100vw - 32px)); max-height: min(560px, 76vh); margin: 12vh auto auto; padding: 0;
  border: var(--line); border-radius: var(--r); background: var(--cream); color: var(--ink); box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.palette::backdrop { background: rgba(20, 16, 11, .55); backdrop-filter: blur(3px); }
.palette[open] { animation: pal-in .22s var(--ease); }
@keyframes pal-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.pal-box { display: flex; flex-direction: column; max-height: inherit; }
.pal-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: var(--line); }
.pal-search span { font-size: 22px; }
.pal-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 19px/1.2 var(--f-display); letter-spacing: -.01em; }
.pal-search input:focus { outline: none; }
.pal-search kbd, .pal-foot kbd { font: 500 11px var(--f-mono); border: 1.5px solid var(--ink); border-radius: 6px; padding: 3px 6px; }
.pal-list { overflow-y: auto; padding: 8px; flex: 1; }
.pal-list .grp { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding: 12px 12px 6px; }
.pal-list [role="option"] { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.pal-list [role="option"] small { font: 500 11px var(--f-mono); color: var(--mute); letter-spacing: .06em; }
.pal-list [aria-selected="true"] { background: var(--ink); color: var(--lime); }
.pal-list [aria-selected="true"] small { color: var(--mute-ink); }
.pal-empty { padding: 26px 12px; color: var(--mute); }
.pal-foot { display: flex; gap: 18px; align-items: center; padding: 12px 18px; border-top: var(--line); font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--mute); }
.pal-msg { margin-left: auto; color: var(--ink); font-weight: 500; }

/* ---------- Terminal (méthode vue par un développeur) */
.term { margin-top: 18px; border: var(--line); border-radius: var(--r); background: var(--ink); color: var(--cream); overflow: hidden; box-shadow: 8px 8px 0 var(--lime-deep); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(243, 239, 230, .18); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--mute-ink); }
.term-bar i:first-child { background: var(--lime); border-color: var(--lime); }
.term-bar span { margin-left: 10px; color: var(--mute-ink); font-size: 11px; }
.term pre { margin: 0; padding: 18px 20px 22px; min-height: 230px; font: 400 13.5px/1.75 var(--f-mono); white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--lime); }
.term .h { color: var(--lime); }
.term .dim { color: var(--mute-ink); }
.term .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Pages secondaires : hero commun */
.page-hero { padding: 140px 0 80px; }
.page-hero .wrap { container-type: inline-size; }
.page-hero .label { display: flex; }
.page-title { margin: 22px 0 26px; font-size: min(92px, 6.4cqi); line-height: .92; max-width: min(100%, 1180px); }
.page-title.art-title { font-size: min(76px, 6.4cqi); line-height: .95; max-width: min(100%, 1100px); }
.page-hero .lead { max-width: 40em; }
.page-hero .hero-actions { margin-top: 30px; }
.notice { margin-top: 26px; max-width: 46em; background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 16px 20px; font-weight: 500; }

/* ---------- Tuiles (sections denses des pages services) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiles.n2, .tiles.n4:not(.seq) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.n1 { grid-template-columns: minmax(0, 1fr); }
.tiles.seq { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); counter-reset: none; }
.tile.span-two { grid-column: span 2; }
.tile.span-full { grid-column: 1 / -1; }
.tile { container-type: inline-size; min-width: 0; overflow-wrap: break-word; display: flex; flex-direction: column; gap: 10px; background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow); }
.t-ink .tile { border-color: var(--cream); }
.t-ink .tile:hover { box-shadow: var(--shadow-lime); }
.tile .mono { color: var(--mute); }
.tile h3 { font: 800 min(26px, 6.4cqi)/1.02 var(--f-display); text-transform: uppercase; letter-spacing: -.035em; hyphens: manual; text-wrap: balance; }
.tile .points { margin-top: auto; padding-top: 10px; gap: 8px; }
.tile .points li { font-size: 14px; }
.tiles.seq .tile .mono { font: 800 44px/1 var(--f-display); letter-spacing: -.05em; -webkit-text-stroke: 1.5px currentColor; color: transparent; }
.tiles.seq .tile:hover .mono { color: var(--lime); -webkit-text-stroke-color: var(--ink); }

/* Carte vedette : encre sur fond clair, lime sur fond encre */
.tile.feat { background: var(--ink); color: var(--cream); border-color: var(--ink); padding: clamp(26px, 3vw, 40px); }
.tile.feat .mono { color: var(--lime); }
.tile.feat h3 { font-size: min(44px, 7cqi); line-height: .95; letter-spacing: -.045em; }
.tile.feat p { font-size: 16px; color: #d6d0c3; }
.tile.feat .points li::before { color: var(--lime); }
.tile.feat:hover { box-shadow: var(--shadow-lime); }
.t-ink .tile.feat { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.t-ink .tile.feat .mono { color: var(--ink); }
.t-ink .tile.feat p { color: var(--ink); }
.t-ink .tile.feat .points li::before { color: var(--ink); }
.t-ink .tile.feat:hover { box-shadow: 6px 6px 0 var(--cream); }
.tile.feat.span-full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px 48px; align-items: start; }
.tile.feat.span-full > .mono, .tile.feat.span-full > h3 { grid-column: 1; }
.tile.feat.span-full > p { grid-column: 2; grid-row: 1 / span 2; }
.tile.feat.span-full > .points, .tile.feat.span-full > .tags { grid-column: 2; margin-top: 0; padding-top: 0; }
.tile.feat.span-full h3 { font-size: min(52px, 4.2cqi); }
.tile p { font-size: 15px; }
.tile .tags { margin-top: auto; padding-top: 8px; }
.points { margin-top: 18px; display: grid; gap: 10px; padding: 0; list-style: none; }
.points li { padding-left: 26px; position: relative; }
.points li::before { content: "✳"; position: absolute; left: 0; }
.stage-col .points { margin-top: 22px; }
.cta-band .lead { max-width: 36em; }

/* ---------- Portfolio */
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pf-filters button { border: 2px solid currentColor; border-radius: 99px; background: transparent; color: inherit; padding: 10px 18px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.pf-filters button.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.t-cream .pf-filters button.on, .t-lime .pf-filters button.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.pf-grid { columns: 3 300px; column-gap: 18px; }
.pf-grid.web { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pf-grid.web .pf-card { margin: 0; }
.pf-grid.web .pf-card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pf-group + .pf-group { margin-top: clamp(50px, 6vw, 80px); }
.pf-group[hidden] { display: none; }
.pf-group-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(243, 239, 230, .2); font-size: inherit; }
.pf-group-title .mono { color: var(--mute-ink); }
.pf-card { position: relative; break-inside: avoid; margin-bottom: 18px; border: 2px solid var(--cream); border-radius: var(--r); overflow: hidden; background: var(--ink-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pf-card:hover, .pf-card:focus-within { transform: translate(-4px, -4px); box-shadow: var(--shadow-lime); }
.pf-card img { width: 100%; height: auto; }
.pf-card[hidden] { display: none; }
.pf-body { padding: 18px 20px 20px; hyphens: auto; overflow-wrap: break-word; }
.post-body, .legal-card { hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.pf-body .badge { position: static; display: inline-block; background: var(--lime); color: var(--ink); border-radius: 99px; padding: 6px 10px; }
.pf-body h3 { margin: 12px 0 8px; font: 800 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: -.035em; }
.pf-body p { font-size: 14px; color: #cfc9bc; }
.pf-body .tags li { color: var(--lime); }
.pf-hit { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.pf-hit:focus-visible { outline: 3px solid var(--lime); outline-offset: -6px; }
.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: 90vh; padding: 0; border: 2px solid var(--cream); border-radius: var(--r); background: var(--ink); color: var(--cream); overflow: auto; }
.lightbox::backdrop { background: rgba(20, 16, 11, .75); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); animation: pal-in .25s var(--ease); }
.lightbox img { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.lb-body { padding: 30px; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.lb-cat { color: var(--lime); }
.lb-title { font: 800 clamp(26px, 3vw, 40px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.045em; }
.lb-desc { color: #d6d0c3; }
.lb-tags li { color: var(--lime); }
.lb-link { align-self: flex-start; }
.lb-link[hidden] { display: none; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; }

/* ---------- Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow); }
.post-card[hidden] { display: none; }
.post-card.big { grid-column: 1 / -1; flex-direction: row; }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--line); background: var(--paper); }
.post-card.big .post-img { flex: 1.2; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: var(--line); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.post-card.big .post-body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.post-body .mono { color: var(--mute); }
.post-body h3 { font: 800 clamp(20px, 1.7vw, 24px)/1.05 var(--f-display); letter-spacing: -.025em; }
.post-card.big h3 { font-size: clamp(28px, 3vw, 44px); text-transform: uppercase; letter-spacing: -.04em; line-height: .95; }
.post-body p { font-size: 15px; }
.post-more { margin-top: auto; color: var(--ink) !important; }
.art-cover-wrap { padding: 0 0 clamp(50px, 6vw, 80px); background: linear-gradient(var(--lime) 50%, var(--ink) 50%); }
.art-cover { border: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--ink); aspect-ratio: 21 / 9; background: var(--paper); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: minmax(0, 70ch) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose .article-lead { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.5; font-weight: 500; }
.prose h2 { margin-top: 2em; font: 800 clamp(26px, 2.6vw, 36px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.04em; }
.prose h3 { margin-top: 1.6em; font: 700 clamp(20px, 1.8vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.pull { position: sticky; top: 120px; background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 26px; box-shadow: 8px 8px 0 var(--lime-deep); }
.pull .mono { color: var(--lime); }
.pull p { margin-top: 12px; font: 700 clamp(20px, 1.7vw, 24px)/1.25 var(--f-display); letter-spacing: -.02em; }

/* ---------- Pages légales */
.legal-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.toc { position: sticky; top: 110px; border: var(--line); border-radius: var(--r); padding: 20px; background: #fff; max-height: calc(100vh - 140px); overflow: auto; }
.toc ol { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal-list { display: grid; gap: 18px; }
.legal-card { border: var(--line); border-radius: var(--r); background: #fff; padding: clamp(22px, 3vw, 34px); scroll-margin-top: 110px; }
.legal-card h2 { font: 800 clamp(22px, 2vw, 28px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.035em; margin-bottom: 16px; }
.legal-card .prose { font-size: 16px; }
.kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.kv { padding: 12px 14px 12px 0; border-bottom: 1px solid rgba(20, 16, 11, .15); }
.kv dt { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.kv dd { margin: 4px 0 0; font-weight: 700; }

/* ---------- Pages d'erreur */
.err { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 60px; }
.err-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: center; width: 100%; }
.err-zone { position: relative; min-height: 420px; display: grid; place-items: center; }
.err-code { font: 800 clamp(80px, 14vw, 220px)/1 var(--f-display); letter-spacing: -.07em; -webkit-text-stroke: 2px var(--ink); color: transparent; opacity: .35; }
kbd { font: 500 12px var(--f-mono); border: 1.5px solid currentColor; border-radius: 6px; padding: 2px 6px; }

/* ---------- Métriques live (pied de page) */
.live-metrics { color: var(--lime); margin: -6px 0 22px; min-height: 1.3em; letter-spacing: .08em; }

/* ---------- Révélations au scroll */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .row { overflow: hidden; }
.js .hero .row > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.js .hero.in .row > span { transform: none; }
.js .hero .row:nth-child(2) > span { transition-delay: .08s; }
.js .hero .row:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .pal-btn { display: none; }
  .site-nav .nav-cta { display: none; }
  .proj, .proj:nth-child(1), .proj:nth-child(2) { grid-column: span 3; }
  .proj:nth-child(5) { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles:not(.seq) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.n3 .tile:first-child, .tile.span-two, .tile.span-full { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .d2, .stage-col .d2, .contact-grid .d2 { font-size: min(64px, 8.4cqi); hyphens: auto; }
  .stage-zone, .contact-zone { display: none; }
  .hero h1 { font-size: min(64px, 9cqi); }
  .pin-step h3 { font-size: min(64px, 8.8cqi); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-side { min-height: 0; margin-top: 36px; }
  .price-tag { position: relative; right: auto; bottom: auto; width: calc(100% - 96px); max-width: 300px; }
  .sticker { top: -26px; right: 0; width: 112px; }
  .sec-head, .stage-split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-col { position: static; min-height: 0; }
  .stage-zone { min-height: 260px; }
  .plans, .quotes, .est-grid, .art-layout, .legal-grid, .err-grid { grid-template-columns: minmax(0, 1fr); }
  .post-grid, .pf-grid.web, .tiles:not(.seq) { grid-template-columns: minmax(0, 1fr); }
  .tile.feat.span-full { display: flex; }
  .tile.feat h3, .tile.feat.span-full h3 { font-size: min(34px, 9cqi); }
  .pull, .toc { position: static; max-height: none; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox img { max-height: 50vh; }
  .err-zone { min-height: 0; }
  .err-code { font-size: 90px; }
  .art-cover { aspect-ratio: 16 / 10; }
  .est-result { position: static; }
  .plan.featured { transform: none; }
  .quote:nth-child(2) { transform: none; }
  .proj, .proj:nth-child(1), .proj:nth-child(2), .proj:nth-child(5), .proj-grid.duo .proj { grid-column: 1 / -1; }
  .proj-grid.duo .proj .media { min-height: 220px; }
  .proj-grid.solo .proj { flex-direction: column; }
  .proj-grid.solo .proj .media { min-height: 220px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .manifesto .wrap { grid-template-columns: 1fr; }
  .svc-pin { height: calc(100svh + 6 * 60svh); }
  .pin-sticky .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 96px; padding-bottom: 76px; }
  .pin-head { flex-direction: column; gap: 10px; }
  .pin-head h2 { font-size: 15px; margin-top: 10px; }
  .pin-side { display: none; }
  .pin-step { justify-content: flex-end; }
  .pin-step h3 { margin: 10px 0 14px; }
  .pin-step .tags { margin: 14px 0 18px; }
  .chapter-counter { bottom: 12px; padding: 9px 13px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .pg-row { flex-direction: column; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta div:nth-child(3) { border-left: 0; padding-left: 0; }
  .case-meta div:nth-child(n+3) { border-top: var(--line); }
  .case-stats { grid-template-columns: 1fr; }
  .post-card.big { flex-direction: column; }
  .post-card.big .post-img { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: var(--line); }
  .pg-row .btn { justify-content: center; }
  .svc { grid-template-columns: 1fr 40px; padding: 22px 6px; }
  .svc .num { grid-column: 1 / -1; padding: 0; }
  .svc .go { grid-column: 2; grid-row: 2; width: 40px; height: 40px; }
  .faq details p { padding-right: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step .big { grid-row: auto; }
  .step .tag { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .hero .row > span { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.anchor-alias { position: absolute; top: 0; }

/* ---------- Frise de méthode (pages services) */
.timeline-wrap { --node: 64px; --gap: 28px; --p: 0; position: relative; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap); }
.tl-line { position: absolute; z-index: 0; top: calc(var(--node) / 2 - 2px); left: calc(var(--node) / 2); right: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) - var(--node) / 2); height: 4px; border-radius: 2px; background: rgba(20, 16, 11, .14); }
.tl-line i { display: block; width: calc(var(--p) * 100%); height: 100%; border-radius: 2px; background: var(--ink); }
.t-ink .tl-line { background: rgba(243, 239, 230, .16); }
.t-ink .tl-line i { background: var(--lime); }
.tl-step { container-type: inline-size; min-width: 0; }
.tl-node { position: relative; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%; border: var(--line); background: var(--cream); color: var(--ink); font: 800 20px/1 var(--f-display); letter-spacing: -.03em; transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.tl-step.on .tl-node { background: var(--ink); color: var(--lime); transform: scale(1.08); box-shadow: 4px 4px 0 var(--lime-deep); }
.t-lime .tl-step.on .tl-node { box-shadow: 4px 4px 0 var(--cream); }
.t-ink .tl-node { background: var(--ink); color: var(--cream); border-color: var(--cream); }
.t-ink .tl-step.on .tl-node { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 4px 4px 0 var(--cream); }
.tl-body { margin-top: 26px; }
.tl-phase { display: inline-block; margin-bottom: 14px; padding: 6px 11px; border: 1.5px solid currentColor; border-radius: 99px; transition: background .35s, color .35s, border-color .35s; }
.tl-step.on .tl-phase { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.t-ink .tl-step.on .tl-phase { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tl-body h3 { margin-bottom: 10px; font: 800 min(28px, 10cqi)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.04em; text-wrap: balance; }
.tl-body p { font-size: 15px; max-width: 32em; }
.js .tl-step { opacity: .5; transition: opacity .45s var(--ease); }
.js .tl-step.on { opacity: 1; }
.tl-loop { display: inline-flex; margin-top: 30px; padding: 10px 16px; border: var(--line); border-radius: 99px; text-transform: none; letter-spacing: .04em; }
.t-ink .tl-loop { border-color: var(--cream); }
@media (max-width: 1180px) {
  .timeline-wrap { --node: 52px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .tl-step { position: relative; min-height: var(--node); padding-left: calc(var(--node) + 22px); }
  .tl-node { position: absolute; left: 0; top: 0; font-size: 17px; }
  .tl-body { margin-top: 0; padding-top: 4px; }
  .tl-line { top: calc(var(--node) / 2); bottom: calc(var(--node) / 2); left: calc(var(--node) / 2 - 2px); right: auto; width: 4px; height: auto; }
  .tl-line i { width: 100%; height: calc(var(--p) * 100%); }
  .tl-body h3 { font-size: min(26px, 8cqi); }
}
@media (prefers-reduced-motion: reduce) { .js .tl-step { opacity: 1; } }

/* ---------- Hero des pages services : texte + module signature */
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 8px; }
.svc-hero-text { container-type: inline-size; }
.svc-hero .page-title { font-size: min(80px, 10cqi); margin-top: 20px; }
.svc-hero .case-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 26px; }
.t-ink .case-meta, .t-ink .case-meta div + div { border-color: rgba(243, 239, 230, .35); }
.t-ink .case-meta dt { color: var(--mute-ink); }
.sig-wrap { position: relative; }
.sig { position: relative; z-index: 2; background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.t-ink .sig { box-shadow: 10px 10px 0 var(--lime); border-color: var(--cream); }
.sig-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: var(--line); background: var(--paper); }
.sig-bar.dark { background: var(--ink); color: var(--cream); border-bottom-color: var(--ink); }
.sig-cap { padding: 12px 16px; border-top: 1px solid rgba(20, 16, 11, .15); color: var(--mute); text-transform: none; letter-spacing: .02em; line-height: 1.5; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.sig-bar:not(.dark) .live { color: var(--ink); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3ad16b; box-shadow: 0 0 0 0 rgba(58, 209, 107, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(58, 209, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 209, 107, 0); } }

/* Web design : wireframe ⇄ design */
.sig-toggle { display: inline-flex; border: var(--line); border-radius: 99px; overflow: hidden; }
.sig-toggle button { border: 0; background: transparent; padding: 7px 12px; font: 500 12px var(--f-mono); letter-spacing: .06em; cursor: pointer; }
.sig-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.wf { padding: 18px; display: grid; gap: 14px; min-height: 300px; }
.wf i, .wf b, .wf-img, .wf-cards div { display: block; border: 1.5px dashed #9d978a; border-radius: 4px; background: transparent; transition: all .5s var(--ease); }
.wf-nav { display: flex; gap: 8px; align-items: center; }
.wf-nav i { height: 8px; width: 34px; } .wf-nav .wf-logo { width: 22px; height: 22px; border-radius: 50%; margin-right: auto; }
.wf-nav b { width: 64px; height: 22px; border-radius: 99px; }
.wf-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; align-items: center; }
.wf-copy { display: grid; gap: 8px; }
.wf-copy .h { height: 22px; } .wf-copy .h.s { width: 70%; } .wf-copy .p { height: 8px; } .wf-copy .p.s { width: 60%; }
.wf-copy .cta { width: 96px; height: 26px; border-radius: 99px; margin-top: 6px; }
.wf-img { aspect-ratio: 4 / 3; }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-cards div { height: 58px; }
.sig-wire.is-design .wf i, .sig-wire.is-design .wf b, .sig-wire.is-design .wf-img, .sig-wire.is-design .wf-cards div { border-style: solid; border-color: var(--ink); }
.sig-wire.is-design .wf-copy .h { background: var(--ink); }
.sig-wire.is-design .wf-copy .h.s { background: var(--lime); }
.sig-wire.is-design .wf-copy .p { background: #c9c3b6; border-color: #c9c3b6; }
.sig-wire.is-design .wf-copy .cta, .sig-wire.is-design .wf-nav b { background: var(--ink); }
.sig-wire.is-design .wf-nav .wf-logo { background: var(--lime); }
.sig-wire.is-design .wf-img { background: linear-gradient(135deg, var(--lime), #8fae1f); border-radius: 10px; }
.sig-wire.is-design .wf-cards div { background: var(--paper); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); }
.sig-wire.is-design .wf-cards div:nth-child(2) { background: var(--ink); }

/* Développement : extrait de code réel */
.sig-code { background: #0d0b08; color: #e9e4d6; border-color: var(--cream); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--mute-ink); } .dots i:first-child { background: var(--lime); border-color: var(--lime); }
.code { margin: 0; padding: 16px 0; max-height: 360px; overflow: auto; font: 400 12.5px/1.7 var(--f-mono); }
.code code { display: block; white-space: pre; }
.code .ln { display: inline-block; width: 3.4em; padding-right: 1em; text-align: right; color: #8a8476; user-select: none; }
.code .k { color: var(--lime); } .code .s { color: #f0c27b; } .code .n { color: #9ad7ff; } .code .c { color: #7d776a; font-style: italic; }
.sig-code .sig-cap { color: var(--mute-ink); border-top-color: rgba(243, 239, 230, .15); }

/* E-commerce : fiche produit démo */
.cart-pill { display: inline-flex; gap: 6px; align-items: center; background: var(--ink); color: var(--cream); border-radius: 99px; padding: 6px 12px; font: 500 12px var(--f-mono); transition: transform .3s var(--ease); }
.cart-pill b { color: var(--lime); }
.cart-pill.bump { transform: scale(1.15); }
.shop { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; }
.shop-img { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #e04545, #8e1b1b 70%); color: #fff; min-height: 260px; border-right: var(--line); }
.shop-img span { font: 800 64px/1 var(--f-display); letter-spacing: -.06em; transform: rotate(-8deg); }
.shop-img em { position: absolute; top: 12px; left: 12px; font: 500 11px var(--f-mono); font-style: normal; background: var(--lime); color: var(--ink); padding: 5px 9px; border-radius: 99px; }
.shop-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.shop-body h3 { font: 800 24px/1 var(--f-display); text-transform: uppercase; letter-spacing: -.04em; }
.price s { color: var(--mute); } .price b { font: 800 26px var(--f-display); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes button { border: var(--line); border-radius: 8px; background: #fff; padding: 7px 10px; font: 500 12px var(--f-mono); cursor: pointer; }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--lime); }
.sizes button.out { opacity: .4; text-decoration: line-through; }
.stock { color: var(--mute); text-transform: none; }
.shop-body .btn { justify-content: center; margin-top: auto; }
.shop-body .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* SEO : audit en direct */
.sig-audit { background: #0d0b08; color: var(--cream); border-color: var(--cream); }
.audit { list-style: none; margin: 0; padding: 14px 16px 4px; display: grid; gap: 14px; }
.audit li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.audit b { font: 800 22px/1 var(--f-display); letter-spacing: -.03em; }
.audit .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(243, 239, 230, .14); overflow: hidden; }
.audit .bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 3px; transition: width 1s var(--ease); }
.audit li.warn .bar i { background: #f0c27b; } .audit li.bad .bar i { background: #ff7a59; }
.checks { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px; text-transform: none; letter-spacing: .02em; }
.checks li { border: 1px solid rgba(243, 239, 230, .3); border-radius: 99px; padding: 5px 10px; font-size: 11px; }
.checks li.ok::before { content: "✓ "; color: var(--lime); } .checks li.ko::before { content: "✗ "; color: #ff7a59; }
.sig-audit .sig-cap { color: var(--mute-ink); border-top-color: rgba(243, 239, 230, .15); }

/* Branding : système de marque */
.brand-grid { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto auto; }
.brand-logo { grid-row: span 2; display: grid; place-items: center; background: var(--ink); color: var(--cream); padding: 30px; border-right: var(--line); }
.brand-logo svg { width: min(140px, 80%); height: auto; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--line); }
.sw { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; min-height: 120px; padding: 10px; border: 0; border-right: 1.5px solid var(--ink); background: var(--c); color: var(--ink); cursor: pointer; text-align: left; transition: transform .2s var(--ease); }
.sw:last-child { border-right: 0; }
.sw:nth-child(2) { color: var(--cream); }
.sw:hover { transform: translateY(-4px); }
.sw b { font-size: 11px; }
.specimens { padding: 12px 16px; display: grid; gap: 8px; }
.specimens p { display: flex; align-items: baseline; gap: 14px; }
.aa { font-size: 34px; line-height: 1; width: 1.6em; }
.aa.syne { font-family: var(--f-display); font-weight: 800; } .aa.dm { font-family: var(--f-text); } .aa.mn { font-family: var(--f-mono); font-size: 28px; }
.specimens .mono { color: var(--mute); }

/* Maintenance : état du site */
.status { list-style: none; margin: 0; padding: 6px 16px; }
.status li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(20, 16, 11, .12); font-size: 14px; }
.status li:last-child { border-bottom: 0; }
.status b { font: 500 12px var(--f-mono); letter-spacing: .04em; padding: 5px 10px; border-radius: 99px; background: var(--paper); white-space: nowrap; }
.status li.ok b { background: var(--lime); }
.status li.warn b { background: #f0c27b; }
.status li.ko b { background: #ff7a59; color: #fff; }

@media (max-width: 1080px) {
  .svc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sig-wrap { max-width: 620px; }
}
@media (max-width: 560px) {
  .shop, .brand-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-img { min-height: 160px; border-right: 0; border-bottom: var(--line); }
  .brand-logo { grid-row: auto; border-right: 0; border-bottom: var(--line); padding: 20px; }
  .svc-hero .case-meta { grid-template-columns: minmax(0, 1fr); }
  .svc-hero .case-meta div + div { border-left: 0; padding-left: 0; border-top: var(--line); }
  .code { font-size: 11px; }
}

/* ---------- Composants clairs posés sur une section encre : on force l'encre à l'intérieur */
.step, .tile:not(.feat), .plan:not(.featured), .compare, .form, .quote, .post-card, .legal-card, .toc, .estimator { color: var(--ink); }
.t-ink .step { border-color: var(--cream); }
.t-ink .step:hover { box-shadow: var(--shadow-lime); }
/* Composants à filets encre : filets crème sur fond encre */
.t-ink .faq, .t-ink .faq details, .t-ink .svc-list, .t-ink .svc { border-color: rgba(243, 239, 230, .35); }
.t-ink .faq summary .pm, .t-ink .svc .go { border-color: var(--cream); }
.t-ink .faq details[open] summary .pm { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.t-ink .svc:hover { background: var(--lime); color: var(--ink); }
.t-ink .svc:hover p { color: var(--ink); }
.t-ink .svc:hover .go { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.t-ink .chip-link { border-color: var(--cream); }
.t-ink .chip-link:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.t-ink .next-case { border-color: var(--cream); }
.t-ink .points li::before { color: var(--lime); }

/* ---------- Animation d'entrée (première visite de la session) */
.intro { display: none; }
html.is-intro .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; gap: 22px;
  padding: var(--gutter); background: var(--ink); color: var(--cream); cursor: pointer;
}
html.is-intro body { overflow: hidden; }
.intro-mark svg { width: min(72vw, 760px); height: auto; overflow: hidden; }
.intro .l { transform-box: fill-box; transform: translateY(130%); animation: intro-up .75s var(--ease) forwards; animation-delay: calc(var(--k) * 90ms + 150ms); }
.intro .mac { transform-box: fill-box; transform: translateY(-420%) scaleX(.3); animation: intro-mac .6s cubic-bezier(.34, 1.56, .64, 1) .62s forwards; }
@keyframes intro-up { to { transform: none; } }
@keyframes intro-mac { to { transform: none; } }
.intro-tag { font: 400 clamp(26px, 3.4vw, 44px)/1 var(--f-script); color: var(--lime); opacity: 0; transform: rotate(-4deg) translateY(10px); animation: intro-tag .6s var(--ease) .9s forwards; }
@keyframes intro-tag { to { opacity: 1; transform: rotate(-4deg); } }
.intro-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--mute-ink); }
.intro-count { color: var(--lime); font-variant-numeric: tabular-nums; }
.intro-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--ip, 0)); }
html.is-intro .intro.out { animation: intro-out .75s cubic-bezier(.76, 0, .24, 1) forwards; pointer-events: none; }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); } }
/* Pendant l'intro, les animations de la page attendent le lever de rideau */
html.is-intro .rv.in:not(.done), html.is-intro .page-title.split .w { animation-play-state: paused; }
@media (max-width: 560px) { .intro-foot span:first-child { display: none; } }

/* ---------- Animations propres à chaque page : html[data-motion]
   « rise » (accueil) garde la révélation par transition ; les autres styles utilisent des keyframes.
   L'état caché ne s'applique qu'avant .in ; à la fin, site.js ajoute .done pour libérer les survols. */
.js .rv { transition-delay: var(--d, 0ms); }
.js[data-motion]:not([data-motion="rise"]) .rv { opacity: 1; transform: none; transition: none; }
.js[data-motion] .rv.in:not(.done) { animation-duration: .85s; animation-timing-function: var(--ease); animation-delay: var(--d, 0ms); animation-fill-mode: both; }
.js .rv.done { animation: none !important; }

.js[data-motion="wipe"] .rv:not(.in) { clip-path: inset(0 100% 0 0); }
.js[data-motion="wipe"] .rv.in:not(.done) { animation-name: m-wipe; }
@keyframes m-wipe { from { clip-path: inset(0 100% 0 0); } 99% { clip-path: inset(0 0 0 0); } to { clip-path: none; } }

.js[data-motion="curtain"] .rv:not(.in) { clip-path: inset(100% 0 0 0); }
.js[data-motion="curtain"] .rv.in:not(.done) { animation-name: m-curtain; animation-duration: 1s; }
@keyframes m-curtain { from { clip-path: inset(100% 0 0 0); transform: translateY(24px); } 99% { clip-path: inset(0 0 0 0); transform: none; } to { clip-path: none; transform: none; } }

.js[data-motion="pop"] .rv:not(.in) { opacity: 0; transform: scale(.86) translateY(16px); }
.js[data-motion="pop"] .rv.in:not(.done) { animation-name: m-pop; animation-duration: .7s; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
@keyframes m-pop { from { opacity: 0; transform: scale(.86) translateY(16px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

.js[data-motion="scan"] .rv:not(.in) { -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat; }
.js[data-motion="scan"] .rv.in:not(.done) { animation-name: m-scan; animation-duration: 1.1s; }
@keyframes m-scan {
  from { -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat; }
  99% { -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 250% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 250% 100% no-repeat; }
  to { -webkit-mask: none; mask: none; }
}

.js[data-motion="tilt"] .rv:not(.in) { opacity: 0; transform: rotate(-4deg) translateY(36px) scale(.96); transform-origin: 0 100%; }
.js[data-motion="tilt"] .rv.in:not(.done) { animation-name: m-tilt; transform-origin: 0 100%; }
@keyframes m-tilt { from { opacity: 0; transform: rotate(-4deg) translateY(36px) scale(.96); } to { opacity: 1; transform: none; } }

.js[data-motion="flicker"] .rv:not(.in) { opacity: 0; }
.js[data-motion="flicker"] .rv.in:not(.done) { animation-name: m-flicker; animation-duration: .7s; animation-timing-function: steps(1, end); }
@keyframes m-flicker { 0% { opacity: 0; } 12% { opacity: 1; } 22% { opacity: .15; } 36% { opacity: 1; } 46% { opacity: .35; } 60%, 100% { opacity: 1; } }

.js[data-motion="code"] .rv:not(.in) { opacity: 0; transform: translateX(-30px); }
.js[data-motion="code"] .rv.in:not(.done) { animation-name: m-code; animation-duration: .5s; animation-timing-function: steps(6, end); }
@keyframes m-code { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

.js[data-motion="slide"] .rv:not(.in) { opacity: 0; transform: translateX(-48px); }
.js[data-motion="slide"] .rv:nth-child(even):not(.in) { transform: translateX(48px); }
.js[data-motion="slide"] .rv.in:not(.done) { animation-name: m-slide-l; }
.js[data-motion="slide"] .rv:nth-child(even).in:not(.done) { animation-name: m-slide-r; }
@keyframes m-slide-l { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes m-slide-r { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }

.js[data-motion="zoom"] .rv:not(.in) { opacity: 0; transform: scale(1.08); filter: blur(8px); }
.js[data-motion="zoom"] .rv.in:not(.done) { animation-name: m-zoom; animation-duration: .9s; }
@keyframes m-zoom { from { opacity: 0; transform: scale(1.08); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

.js[data-motion="soft"] .rv:not(.in) { opacity: 0; }
.js[data-motion="soft"] .rv.in:not(.done) { animation-name: m-soft; animation-duration: 1.1s; }
@keyframes m-soft { from { opacity: 0; } to { opacity: 1; } }

/* Entrée du titre principal, mot par mot (site.js découpe .page-title en .w) */
.page-title .w { display: inline-block; }
.js[data-motion] .page-title.split .w { animation: var(--tn, none) .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.js[data-motion="wipe"] { --tn: m-wipe; }
.js[data-motion="curtain"] { --tn: m-word-up; }
.js[data-motion="pop"] { --tn: m-pop; }
.js[data-motion="scan"] { --tn: m-scan; }
.js[data-motion="tilt"] { --tn: m-word-tilt; }
.js[data-motion="flicker"] { --tn: m-flicker; }
.js[data-motion="slide"] { --tn: m-slide-l; }
.js[data-motion="zoom"] { --tn: m-zoom; }
.js[data-motion="soft"] { --tn: m-soft; }
.js[data-motion="pop"] .page-title.split .w { animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.js[data-motion="flicker"] .page-title.split .w { animation-timing-function: steps(1, end); }
@keyframes m-word-up { from { opacity: 0; transform: translateY(70%) skewY(6deg); } to { opacity: 1; transform: none; } }
@keyframes m-word-tilt { from { opacity: 0; transform: rotate(-10deg) translateY(50%); transform-origin: 0 100%; } to { opacity: 1; transform: none; } }

/* Transition d'arrivée sur la page (View Transitions), propre à chaque style */
[data-motion="wipe"]::view-transition-new(root) { animation: vt-wipe .6s var(--ease) both; }
[data-motion="curtain"]::view-transition-new(root) { animation: vt-curtain .7s var(--ease) both; }
[data-motion="pop"]::view-transition-new(root), [data-motion="tilt"]::view-transition-new(root) { animation: vt-pop .55s cubic-bezier(.34, 1.4, .64, 1) both; }
[data-motion="zoom"]::view-transition-new(root) { animation: vt-zoom .6s var(--ease) both; }
[data-motion="soft"]::view-transition-new(root), [data-motion="none"]::view-transition-new(root) { animation: vt-fade .45s ease both; }
[data-motion="flicker"]::view-transition-new(root), [data-motion="code"]::view-transition-new(root) { animation: m-flicker .5s steps(1, end) both; }
[data-motion="slide"]::view-transition-new(root) { animation: vt-slide .55s var(--ease) both; }
@keyframes vt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes vt-zoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes vt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-slide { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv:not(.in), .js .page-title .w { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; -webkit-mask: none !important; mask: none !important; }
}

/* Avec JS, les titres ne coupent jamais un mot : site.js réduit la taille si un mot dépasse. */
.js :is(.d1, .d2, .page-title, .tile h3, .tl-body h3, .proj h3, .svc h3, .step h3, .pin-step h3, .pf-body h3, .post-body h3) { overflow-wrap: normal; hyphens: manual; }
