/* BlackSwan V2 · thème sombre, niveau de finition de référence : Airbnb. Jetons documentés dans DESIGN.md. */
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #202024;
  --line: #2b2b30;
  --line-strong: #3d3d44;
  --text: #f5f5f6;
  --text-2: #b8b8bf;
  --text-3: #8f8f98;
  --accent: #d93a40;          /* bec du cygne noir : action principale et état actif uniquement */
  --accent-hover: #c2333a;
  --accent-ink: #ff8f93;      /* accent lisible sur fond sombre (texte, focus) */
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -20px rgb(0 0 0 / 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "ss01" on;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--line-strong) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }

.icon { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #dcdce0; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn[disabled], fieldset[disabled] .btn { opacity: .45; cursor: not-allowed; transform: none; }
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: 15px; font-weight: 600; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .25s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.pillnav { display: flex; align-items: center; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.pillnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-2); transition: color .2s, background-color .2s; }
.pillnav a:hover { color: var(--text); background: var(--surface-2); }
.pillnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.topbar-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* Barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 860px) {
  .pillnav, .topbar-cta { display: none; }
  .topbar-inner { height: 60px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--text-3); border-radius: 12px; }
  .tabbar a .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* Typo de page */
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 38em; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2, .page-head h1 + * {}
.section h2 { font-size: clamp(26px, 3vw, 34px); }
.section-lead { color: var(--text-2); margin: -12px 0 24px; max-width: 40em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--text); min-height: 44px; white-space: nowrap; }
.more .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover .icon { transform: translateX(3px); }
.more:hover { text-decoration: underline; }
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
.page-head .lead { margin-top: 16px; }
.page-head p + p { margin-top: 14px; }
.note { color: var(--text-3); font-size: 15px; margin-top: 32px; max-width: 46em; }

/* Accueil · introduction */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.035em; line-height: 1.02; }
.hero .lead { margin-top: 20px; }
.needs { margin-top: 32px; }
.needs-label { font-weight: 650; margin-bottom: 12px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.pill .icon { width: 18px; height: 18px; color: var(--text-2); }
.pill:hover { border-color: var(--text); }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill[aria-pressed="true"] .icon { color: var(--bg); }

.hero-stage { position: relative; margin: 0; padding-bottom: 96px; }
.hero-stage img { border-radius: var(--r-md); }
.stage-back { width: 86%; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stage-front { position: absolute; right: 0; bottom: 104px; width: 58%; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 2px 6px rgb(0 0 0 / .5), 0 30px 60px -20px rgb(0 0 0 / .9); transform: translateY(18%); }
.hero-stage figcaption { position: absolute; left: 0; bottom: 0; right: 0; font-size: 14px; color: var(--text-2); }
.hero-stage figcaption strong { color: var(--text); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 24px; }
  .stage-back { width: 92%; }
}

/* Cartes « annonce » */
.listing { min-width: 0; }
.listing-link { display: block; text-decoration: none; border-radius: var(--r-md); }
.listing-media { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.listing-link:hover .listing-media img { transform: scale(1.03); }
.listing-body { padding: 14px 2px 0; }
.listing-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.listing h3 { font-size: 18px; letter-spacing: -0.01em; }
.listing-activity { color: var(--text-2); margin-top: 2px; }
.listing-meta { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status-en-ligne::before, .status-preproduction::before { background: var(--text); }

.count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 650; color: var(--text-2); vertical-align: 0.3em; letter-spacing: 0; }
/* « Et N autres réalisations » : vignettes empilées + liste des projets non affichés. */
.more-projects { display: flex; align-items: center; gap: 18px 22px; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.more-projects p { flex: 1; min-width: 0; margin: 0; }
.more-projects p a { color: var(--text); text-underline-offset: 3px; }
.more-thumbs { display: flex; flex: none; text-decoration: none; }
.more-thumbs > span { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); background: var(--bg); margin-left: -16px; display: grid; place-items: center; }
.more-thumbs > span:first-child { margin-left: 0; }
.more-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.more-plus { font-weight: 700; font-size: 15px; color: var(--text); background: var(--line-strong) !important; }
.more-projects .btn { flex: none; }
@media (max-width: 760px) {
  .more-projects { flex-wrap: wrap; margin-top: 18px; }
  .more-projects p { flex-basis: 100%; }
  .more-projects .btn { width: 100%; justify-content: center; }
}
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.rail-demos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* Trois démos par ligne ; s'il en reste deux sur la dernière ligne (5 démos), elles s'élargissent. */
.rail-demos > * { grid-column: span 2; }
.rail-demos > :nth-child(3n+1):nth-last-child(2), .rail-demos > :nth-child(3n+2):nth-last-child(1) { grid-column: span 3; }
@media (max-width: 1100px) and (min-width: 761px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-demos > *, .rail-demos > :nth-child(3n+1):nth-last-child(2), .rail-demos > :nth-child(3n+2):nth-last-child(1) { grid-column: auto; }
  .rail-demos > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rail-demos > :last-child:nth-child(odd) .demo-media { aspect-ratio: 21 / 9; }
}
@media (max-width: 760px) {
  /* contain: paint évite que Chrome mobile élargisse la page à cause du contenu défilant. */
  .rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -6px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; contain: paint; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 82%; scroll-snap-align: start; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }

/* Envers du décor */
.backstage { background: var(--surface); border-block: 1px solid var(--line); }
.backstage-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.backstage-copy > p { color: var(--text-2); margin-top: 16px; max-width: 34em; }
.backstage-media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.steps { list-style: none; counter-reset: s; margin: 28px 0 32px; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-weight: 700; font-size: 15px; }
.steps strong { font-weight: 650; }
.steps span { color: var(--text-2); }
@media (max-width: 900px) { .backstage-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Démos */
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.demo-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.demo-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.demo-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-title { font-size: 20px; }
.demo-action { margin-top: auto; padding-top: 8px; }
.demos-list { display: grid; gap: 24px; padding-bottom: 32px; }
.demos-list .demo-card { flex-direction: row; }
.demos-list .demo-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
.demos-list .demo-body { padding: 28px; }
.demos-list .demo-title { font-size: 26px; }
@media (max-width: 860px) {
  .demos-list .demo-card { flex-direction: column; }
  .demos-list .demo-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .demos-list .demo-body { padding: 20px; }
}
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--text-2); }

/* Index des offres (accueil) */
.offer-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.offer-index li { border-bottom: 1px solid var(--line); }
.offer-index a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; text-decoration: none; min-height: 72px; }
.offer-index a > .icon { width: 24px; height: 24px; color: var(--text-2); }
.offer-index a span { display: grid; gap: 2px; flex: 1; }
.offer-index small { color: var(--text-2); font-size: 15px; line-height: 1.4; }
.offer-index .chevron { color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.offer-index a:hover .chevron { transform: translateX(3px); color: var(--text); }
@media (max-width: 760px) { .offer-index { grid-template-columns: 1fr; } }

/* À propos (accueil) */
.about-teaser-inner { max-width: 820px; }
.about-teaser h2 { font-size: clamp(28px, 3.6vw, 42px); }
.about-teaser p { color: var(--text-2); margin: 16px 0 12px; font-size: 18px; max-width: 40em; }

/* Bandeau d'appel */
.cta-band { padding: 24px 0 80px; }
.cta-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; gap: 16px; justify-items: start; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 40px); max-width: 22em; }
.cta-inner p { color: var(--text-2); font-size: 18px; margin-bottom: 8px; }

/* Solutions */
.pills-jump { margin-top: 28px; }
.offers { display: grid; padding-bottom: 24px; }
.offer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.offer-title { display: flex; align-items: flex-start; gap: 14px; }
.offer-title h2 { font-size: clamp(24px, 2.6vw, 30px); }
.offer-icon { width: 28px; height: 28px; margin-top: 2px; color: var(--text-2); }
.offer-body { display: grid; gap: 14px; justify-items: start; }
.offer-body > p { color: var(--text-2); max-width: 40em; }
.offer-body > p.offer-need { color: var(--text); font-size: 19px; }
.offer-proof { font-size: 15px; }
.offer-proof a { color: var(--text); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; } }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.groups { display: grid; gap: 56px; padding-bottom: 48px; }
.group h2 { font-size: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.count { font-size: 14px; font-weight: 650; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; }

/* Étude de cas */
.case { padding-top: 24px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.case-head { margin: 8px 0 20px; }
.case-head h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; }
.case-sub { margin-top: 8px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gallery { display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.gallery-2 { grid-template-columns: 1.4fr 1fr; }
.gallery figure { margin: 0; position: relative; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top left; aspect-ratio: 16 / 10; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--text-2); background: var(--surface); }
@media (max-width: 760px) { .gallery-2 { grid-template-columns: 1fr; } .gallery { border-radius: var(--r-md); } }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; margin-top: 40px; align-items: start; }
.case-main { display: grid; gap: 36px; }
.case-main section { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.case-main section:last-child { border-bottom: 0; }
.case-main h2 { font-size: 28px; margin-bottom: 14px; }
.case-main p { color: var(--text-2); font-size: 18px; max-width: 40em; }
.amenities { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.amenities li { display: flex; gap: 14px; align-items: flex-start; }
.amenities .icon { width: 24px; height: 24px; color: var(--text-2); }
@media (max-width: 760px) { .amenities { grid-template-columns: 1fr; } }
.case-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.case-card-title { font-size: 22px; font-weight: 700; }
.case-url { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 8px; color: var(--text-2); font-size: 15px; }
.case-url .icon { width: 18px; height: 18px; margin-top: 2px; }
.case-actions { display: grid; gap: 10px; margin-top: 8px; }
.case-actions .btn, .case-actions .soon { width: 100%; justify-content: center; white-space: normal; text-align: center; }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; gap: 32px; } .case-card { position: static; order: -1; } }

/* À propos */
.method { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.method li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.method-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.method h3 { font-size: 20px; margin-bottom: 4px; }
.method p { color: var(--text-2); }

/* Contact */
.direct { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); margin-bottom: 28px; }
.notice .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-ink); }
.notice p { color: var(--text-2); }
.notice strong { color: var(--text); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form fieldset[disabled] { opacity: .55; }
.field { display: grid; gap: 6px; }
.field.full, .full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.opt { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 16px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgb(255 255 255 / .12); }
.form-note { color: var(--text-2); font-size: 15px; }
@media (max-width: 640px) { .form fieldset { grid-template-columns: 1fr; } }
.form { padding-bottom: 80px; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 120px; margin-bottom: 14px; }
.footer-mail { margin-top: 12px; }
.footer-mail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
.notice a { color: var(--text); font-weight: 600; }
.footer-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--text-2); }
.footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer p { font-size: 15px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Mouvement : un seul moment, l'apparition des visuels du hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .stage-back { animation: rise .9s var(--ease) both; }
  .hero-stage .stage-front { animation: rise-front 1s .15s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes rise-front { from { opacity: 0; transform: translateY(30%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-result { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; }
.form-result.is-error { border-color: var(--accent); }

/* ===================================================================================================
   V2.1 (30/10/2026) : nouvelles sections, dessinées avec les composants de la V1 (cartes, pilules, cercles).
   =================================================================================================== */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Schéma du hero : une carte discrète à côté du titre ; un point rouge parcourt le chemin d'une demande. */
@media (min-width: 901px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 72px; } }
.hero { padding: 56px 0 40px; }
.hero .lead { max-width: 30em; }
.flow { margin: 0; justify-self: end; width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--surface), rgb(23 23 26 / .55)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 10px; box-shadow: var(--shadow); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.flow-steps::before { content: ""; position: absolute; left: 28px; top: var(--start, 28px); height: var(--run, calc(100% - 56px)); width: 1px; background: linear-gradient(var(--line-strong), var(--line-strong)) ; }
.flow-steps::after {
  content: ""; position: absolute; left: 25px; top: calc(var(--start, 28px) - 3.5px); width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgb(217 58 64 / .16), 0 0 14px rgb(217 58 64 / .5);
  animation: flow-run 7.2s linear infinite; animation-play-state: var(--play, paused);
}
.flow.is-live { --play: running; }
@keyframes flow-run { 0% { transform: translateY(0); opacity: 0; } 3% { opacity: 1; } 92% { transform: translateY(var(--run, 300px)); opacity: 1; } 100% { transform: translateY(var(--run, 300px)); opacity: 0; } }
.flow-step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; padding: 9px 12px; border-radius: 14px; animation: flow-step 7.2s linear infinite; animation-play-state: var(--play, paused); }
.flow-icon { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text-3); animation: flow-icon 7.2s linear infinite; animation-play-state: var(--play, paused); }
.flow-icon .icon { width: 16px; height: 16px; }
.flow-text { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.flow-text strong { font-weight: 650; font-size: 15px; }
.flow-text span { color: var(--text-3); font-size: 14px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-step:nth-child(2), .flow-step:nth-child(2) .flow-icon { animation-delay: 1.325s; }
.flow-step:nth-child(3), .flow-step:nth-child(3) .flow-icon { animation-delay: 2.65s; }
.flow-step:nth-child(4), .flow-step:nth-child(4) .flow-icon { animation-delay: 3.974s; }
.flow-step:nth-child(5), .flow-step:nth-child(5) .flow-icon { animation-delay: 5.299s; }
.flow-step:nth-child(6), .flow-step:nth-child(6) .flow-icon { animation-delay: 6.624s; }
@keyframes flow-step { 0%, 100% { background: transparent; } 1%, 16% { background: var(--surface-2); } 24% { background: transparent; } }
@keyframes flow-icon { 0%, 100% { border-color: var(--line-strong); color: var(--text-3); } 1%, 16% { border-color: var(--accent); color: var(--text); } 26% { border-color: var(--line-strong); color: var(--text-3); } }
.flow-step:hover { background: var(--surface-2); }
.flow figcaption { margin: 8px 12px 0; padding: 12px 0 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
@media (prefers-reduced-motion: no-preference) {
  .flow { animation: rise .9s .1s var(--ease) both; }
}
@media (max-width: 900px) { .flow { justify-self: stretch; max-width: none; } .hero { padding-top: 28px; } }
@media (max-width: 420px) { .flow-text { flex-direction: column; gap: 0; } .flow-text span { text-align: left; white-space: normal; } }

/* Manifeste */
.manifesto { padding: 40px 0 8px; }
.manifesto p { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--text-3); max-width: 24em; text-wrap: balance; }
.manifesto span { display: block; color: var(--text); margin-top: 4px; }

/* « De l'idée à la production » : huit étapes centrées sur un même filet, lisibles en un regard. */
.timeline { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); position: relative; counter-reset: t; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 6.25%; right: 6.25%; top: 24px; height: 1px; background: var(--line-strong); }
.timeline li { counter-increment: t; position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; font-weight: 650; font-size: 15px; padding: 0 4px; }
.timeline li::after { content: counter(t); order: -1; position: absolute; top: -24px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.timeline .icon { position: relative; z-index: 1; width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text-2); transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), background-color .25s; }
.timeline li:hover .icon { border-color: var(--text); color: var(--text); background: var(--surface); transform: translateY(-2px); }
.timeline li:first-child .icon { border-color: var(--accent); color: var(--text); }
.timeline li:last-child .icon { background: var(--text); color: var(--bg); border-color: var(--text); }
@supports (animation-timeline: view()) {
  .timeline::after { background: var(--accent); transform-origin: left; animation: tl-fill linear both; animation-timeline: view(); animation-range: entry 75% cover 45%; }
  @keyframes tl-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@supports not (animation-timeline: view()) { .timeline::after { display: none; } }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; counter-reset: t; }
  .timeline::before, .timeline::after { display: none; }
  .timeline li { grid-template-columns: 36px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; gap: 10px; padding: 9px 10px; font-size: 15px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .timeline li::after { position: static; order: 0; grid-column: 1; grid-row: 1; display: none; }
  .timeline .icon { width: 36px; height: 36px; padding: 9px; }
}
@media (max-width: 360px) { .timeline { grid-template-columns: minmax(0, 1fr); } }
.section-tight { padding-top: 24px; }

/* Infrastructure : une seule pile, votre projet en haut, toute la chaîne dessous, gérée par BlackSwan. */
.backstage-one { color: var(--text) !important; font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.015em; margin-top: 14px !important; }
.backstage-copy h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 12em; }
.backstage-copy .more { margin-top: 18px; }
.stack { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); }
.stack-top { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--text); color: var(--bg); }
.stack-top .icon { width: 22px; height: 22px; }
.stack-top span { display: grid; }
.stack-top strong { font-size: 17px; font-weight: 700; }
.stack-top small { font-size: 14px; color: #4a4a52; }
.stack-layers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stack-layers li { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); transition: background-color .2s; }
.stack-layers li + li { border-top: 1px solid var(--line); }
.stack-layers li:hover { background: var(--surface-2); }
.stack-layers li span { display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-weight: 600; font-size: 15px; min-width: 0; }
@media (max-width: 520px) { .stack-layers li span { padding: 13px 12px; gap: 8px; font-size: 14px; } .stack-top { padding: 14px; } }
.stack-layers li span + span { border-left: 1px solid var(--line); }
.stack-layers .icon { width: 18px; height: 18px; color: var(--text-3); }
.stack-foot { display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; color: var(--text-2); font-size: 15px; font-weight: 600; }
.stack-foot img { width: 22px; height: 22px; }
@media (max-width: 359px) {
  .stack-layers li { grid-template-columns: minmax(0, 1fr); }
  .stack-layers li span + span { border-left: 0; border-top: 1px solid var(--line); }
}

/* Technologies : une ligne typographique, sans badges. */
.tech { display: grid; gap: 28px; }
@media (min-width: 901px) { .tech { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; } }
.tech h2 { font-size: clamp(26px, 3vw, 34px); }
.tech-copy p { color: var(--text-2); margin-top: 14px; max-width: 30em; }
.tech-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0.75em; }
.tech-line li { font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.02em; color: var(--text-3); transition: color .2s; }
.tech-line li:hover { color: var(--text); }
.tech-line li:nth-child(3n+1) { color: var(--text-2); }
.tech-line:hover li { color: var(--text-3); }
.tech-line li:hover { color: var(--text); }

/* Démos, réalisations, études de cas */
.demo-kind { font-size: 13px; font-weight: 650; color: var(--text-3); }
.demo-note { font-size: 15px; }
.group-lead { color: var(--text-2); margin: -10px 0 22px; }
.pills-static .pill { cursor: default; }
.pills-static .pill:hover { border-color: var(--line-strong); }
.offer { position: relative; }
.anchor { position: absolute; top: 0; }
.case-kind { font-size: 14px; font-weight: 650; color: var(--accent-ink); margin-bottom: 6px; }
.case-sub .status { margin-left: 8px; }
.case-main .case-lead { color: var(--text); font-size: 20px; line-height: 1.45; }
.case-flow { list-style: none; counter-reset: f; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-flow li { counter-increment: f; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 15px; }
.case-flow li::before { content: counter(f); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 14px; font-weight: 700; }

/* Contact : besoin en pilules, comme les filtres de la V1 */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choices input:checked + .pill { background: var(--text); color: var(--bg); border-color: var(--text); }
.choices input:focus-visible + .pill { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

@media (prefers-reduced-motion: reduce) {
  .flow-steps::after { display: none; }
  .timeline::after { display: none; }
}
@media (max-width: 900px) { .backstage-grid { grid-template-columns: minmax(0, 1fr); } }
.section-head { flex-wrap: wrap; row-gap: 4px; }
.form .choice { display: block; }
