/* ACCAMIA — feuille unique. Aucune ressource tierce : la police est auto-hébergée
   (une police Google transmettrait l'IP de chaque visiteur à un tiers hors UE). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  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;
}

/* ── Identité ─────────────────────────────────────────────── */
:root {
  /* Palette de teinturier : indigo, laine écrue, garance. */
  --ink: #1b2246;          /* indigo : texte, fonds « nuit » */
  --ink-2: #252e5a;
  --paper: #f4efe4;        /* laine écrue */
  --tint: #ebe4d4;
  --card: #fbf8f1;
  --muted: #565d78;
  --line: #dcd3c0;
  --accent: #d94f2b;       /* vermillon : le point, l'action */
  --accent-ink: #b63d1d;
  --on-dark: #efe8d8;
  --on-dark-muted: #aeb2c8;
  /* Fils de chaîne : la texture verticale qui rappelle le métier à tisser. */
  --fils-clairs: repeating-linear-gradient(90deg, rgba(27, 34, 70, .045) 0 1px, transparent 1px 12px);
  --fils-sombres: repeating-linear-gradient(90deg, rgba(239, 232, 216, .07) 0 1px, transparent 1px 12px);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --wrap: 1160px;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 44px); max-width: 20ch; }
h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow--light { color: #f08a6c; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; margin-top: 22px; }
.lead--light { color: var(--on-dark-muted); }

/* ── Boutons ──────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: inherit; font-weight: 700; font-size: 15.5px;
  border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ── En-tête ──────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; color: var(--ink); }
.brand__name { font-weight: 800; letter-spacing: 0.12em; font-size: 17px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 112px) 0 var(--section); }
.hero__in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  margin-bottom: 28px;
}
.badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
h1 { font-size: clamp(30px, 4.7vw, 56px); max-width: 17ch; }
h1 em { font-style: normal; color: var(--accent); }

.hero__art { width: 100%; max-width: 440px; justify-self: end; }
.art__lines path { stroke: var(--ink); stroke-width: 1.4; opacity: .35; fill: none; }
.art__nodes circle { fill: var(--ink); }
.art__core { fill: var(--accent); }
.art__core-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 6; transform-origin: 200px 200px; animation: tourne 40s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--on-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--center { align-items: center; }
.prose p + p { margin-top: 18px; }
.prose { color: var(--muted); font-size: 18px; }
.conviction { color: var(--ink); font-weight: 700; padding-left: 18px; border-left: 3px solid var(--accent); }

.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 30px; }
.card__num { display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); margin-bottom: 40px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }

.pillar { border-top: 2px solid var(--ink); padding-top: 22px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--muted); }

.vision h2 { max-width: 22ch; }
.vision__text { margin-top: 28px; font-size: clamp(19px, 2vw, 24px); line-height: 1.55; max-width: 46ch; }

/* ── Formulaire ───────────────────────────────────────────── */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,43,.18); }
.form__legal { font-size: 13.5px; color: var(--muted); }
.form .btn { justify-self: start; }

/* ── Navigation : page courante ───────────────────────────── */
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ── Pages intérieures ────────────────────────────────────── */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { max-width: 22ch; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.section--flush { padding-top: clamp(48px, 6vw, 72px); }
.cta h2 { max-width: 24ch; }
.more { margin-top: 28px; font-weight: 700; }
.more a, .card__link a { color: var(--accent-ink); text-decoration: none; }
.more a:hover, .card__link a:hover { text-decoration: underline; }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card--service .card__num { margin-bottom: 26px; }
.card--service p { font-size: 16px; }
.card--dark { background: var(--ink-2); border-color: rgba(255,255,255,.1); color: var(--on-dark); }
.card--dark p { color: var(--on-dark-muted); }
.card--featured { border-color: rgba(217,79,43,.55); }
.card--dark h3 { font-size: 24px; margin-bottom: 12px; }
.card__link { margin-top: 22px; font-weight: 700; }
.card--dark .card__link a { color: #f08a6c; }
.flag { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #f08a6c; margin-bottom: 20px; }
.flag--muted { color: var(--on-dark-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--ink); }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.person__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.person__initials { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 800; letter-spacing: .04em; }
.person h3 { font-size: 20px; }
.person__role { font-size: 14.5px; font-weight: 600; color: var(--accent-ink); margin-top: 4px; line-height: 1.4; }
.person > p { color: var(--muted); font-size: 16px; }
.person > p + p { margin-top: 12px; }

/* Méthode */
.steps { counter-reset: etape; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
.steps li { counter-increment: etape; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--paper);
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -8px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; font-size: 17.5px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.req { color: var(--accent-ink); }
.opt { font-weight: 500; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.side-block + .side-block { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.coords { margin: 0; display: grid; gap: 4px; }
.coords dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.coords dt:first-child { margin-top: 0; }
.coords dd { margin: 0; font-weight: 600; }
.coords a { color: var(--ink); }
.todo { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 3px; }
.orient { display: grid; gap: 18px; }
.orient li { padding-left: 16px; border-left: 3px solid var(--accent); }
.orient p { color: var(--muted); font-size: 15.5px; }
.orient strong { color: var(--ink); }
.orient a { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.orient a:hover { text-decoration: underline; }

/* ── Pied de page ─────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: 14.5px; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.brand--light { color: var(--on-dark); }
.brand--light .brand__mark { color: var(--on-dark); }
.foot__pitch { margin-top: 14px; max-width: 34ch; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.foot__nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.foot__nav a:hover { text-decoration: underline; }
.foot__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }

/* ── Mentions légales ─────────────────────────────────────── */
.legal { padding: clamp(48px, 7vw, 88px) 0 var(--section); max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; max-width: none; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal .todo { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team, .grid--2, .contact { grid-template-columns: 1fr; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; justify-self: start; order: -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top .btn--small { margin-left: auto; }
  .split, .grid--3, .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps li::after { display: none; }
  .hero__art { max-width: 200px; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .top .btn--small { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art__core-ring { animation: none; }
  .btn { transition: none; }
}

/* ── Ajouts : formulaire branché, pages de retour ─────────── */
.grid--1 { grid-template-columns: minmax(0, 760px); }
/* Champ piège anti-robots : hors écran plutôt que display:none, que certains robots détectent. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.page-hero--seule { min-height: 52vh; display: flex; align-items: center; }
.page-hero .lead a { color: var(--accent-ink); }

/* ══ Animations ════════════════════════════════════════════════════════════
   Pilotées par assets/anim.js. Sans JavaScript (classe .js absente), rien n'est
   masqué ; avec « réduire les animations » activé dans le système, tout est figé. */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glow-1: #f2a35c;   /* ambre : départ du dégradé des mots mis en avant */
  --glow-2: var(--accent);
  --glow-3: #b8321a;
}

/* 1. Apparition au défilement — même liste que A_REVELER dans anim.js. */
.js :is(.hero__text > *, .hero__art, .page-hero .wrap > *,
        .section .wrap > .eyebrow, .section .wrap > h2, .section .wrap > .lead,
        .section .wrap > .actions, .section .wrap > .more,
        .split > *, .grid > *, .team > *, .steps > li, .side-block,
        .vision__text, .legal > *) {
  transition:
    opacity 1.2s var(--ease-out) var(--d, 0ms),
    transform 1.2s var(--ease-out) var(--d, 0ms),
    filter 1s ease var(--d, 0ms),
    border-color .35s ease, box-shadow .35s ease;
}
.js :is(.hero__text > *, .hero__art, .page-hero .wrap > *,
        .section .wrap > .eyebrow, .section .wrap > h2, .section .wrap > .lead,
        .section .wrap > .actions, .section .wrap > .more,
        .split > *, .grid > *, .team > *, .steps > li, .side-block,
        .vision__text, .legal > *):not(.active) {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
}

/* 2. Halo qui suit le curseur (--x / --y posés par anim.js). */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 236, 214, .55) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 10px 28px rgba(217, 79, 43, .28); }
.btn--ghost::before { background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(217, 79, 43, .22) 0%, transparent 60%); }
.btn--ghost:hover::before { opacity: 0; }   /* fond plein au survol : le halo n'y serait plus visible */

:is(.card, .person, .app__fenetre, .form) { position: relative; }
:is(.card, .person, .form):hover {
  background-image: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(217, 79, 43, .09), transparent 70%);
  box-shadow: 0 18px 40px rgba(15, 29, 46, .08);
}
:is(.card--dark, .app__fenetre):hover {
  background-image: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(240, 138, 108, .16), transparent 70%);
}
/* Liseré lumineux qui apparaît en haut à gauche de la carte survolée. */
:is(.card, .person, .app__fenetre)::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(145deg, rgba(217, 79, 43, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
:is(.card, .person, .app__fenetre):hover::before { opacity: 1; }

/* 3. Mots mis en avant : dégradé chaud et lueur qui respire. */
:is(h1, .page-hero h1) em {
  background: linear-gradient(120deg, var(--glow-1) 0%, var(--glow-2) 45%, var(--glow-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .04em;
  animation: lueur 4s ease-in-out infinite alternate;
}
@keyframes lueur {
  from { filter: drop-shadow(0 0 0 rgba(217, 79, 43, 0)); }
  to   { filter: drop-shadow(0 0 18px rgba(217, 79, 43, .35)); }
}
.badge::before { animation: pouls 2.2s ease-in-out infinite alternate; }
@keyframes pouls {
  from { box-shadow: 0 0 0 0 rgba(217, 79, 43, .5); }
  to   { box-shadow: 0 0 0 5px rgba(217, 79, 43, 0); }
}

/* 4. Grain de pellicule sur toute la page (texture, pas une image : aucun fichier chargé). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: multiply;
}

/* Le motif du haut de page grossit très légèrement au survol. */
.hero__art { transition: transform 2s var(--ease-out); }
.hero__art.active:hover { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .js :is(.hero__text > *, .hero__art, .page-hero .wrap > *,
          .section .wrap > .eyebrow, .section .wrap > h2, .section .wrap > .lead,
          .section .wrap > .actions, .section .wrap > .more,
          .split > *, .grid > *, .team > *, .steps > li, .side-block,
          .vision__text, .legal > *) {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  :is(h1, .page-hero h1) em, .badge::before { animation: none; }
}

/* Impression / PDF : les blocs jamais parvenus à l'écran s'imprimeraient vides. */
@media print {
  .js :is(.hero__text > *, .hero__art, .page-hero .wrap > *,
          .section .wrap > .eyebrow, .section .wrap > h2, .section .wrap > .lead,
          .section .wrap > .actions, .section .wrap > .more,
          .split > *, .grid > *, .team > *, .steps > li, .side-block,
          .vision__text, .legal > *) {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  body::after { display: none; }
}

/* ══ Proposition de hero « tissage » (hero-tissage.html) ═══════════════════
   Tourcoing est une ville de textile, et le métier Jacquard (1804) lisait des cartes
   perforées : l'ancêtre du programme. Le hero tisse : chaîne = logiciels, trame = IA,
   et le motif qui apparaît dans l'étoffe est le A d'ACCAMIA. Palette de teinturier :
   indigo, écru (laine brute), garance (la teinture rouge, ici le vermillon de marque). */
.hero--tissage {
  --t-indigo: var(--ink);
  --t-indigo-2: var(--ink-2);
  --t-ecru: var(--on-dark);
  --t-garance: var(--accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 78% 40%, var(--t-indigo-2) 0%, var(--t-indigo) 60%);
  color: var(--t-ecru);
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
}
.tissage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* Hero plus large que le reste du site : le texte respire, le nœud a de la place. */
.hero--tissage .wrap { max-width: 1320px; }
.hero--tissage .hero__in { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.hero--tissage h1 { max-width: 24ch; }
.hero--tissage .lead { max-width: 62ch; }
.hero--tissage .hero__text { align-self: center; }
/* Toute la hauteur du texte, et un peu au-dessus : le nœud s'étire vers le haut. */
.tissage-zone { align-self: stretch; min-height: clamp(440px, 46vw, 660px); margin-top: clamp(-56px, -4vw, -24px); }

.hero--tissage .badge { background: transparent; color: var(--t-ecru); border-color: color-mix(in srgb, var(--t-ecru) 28%, transparent); }
.hero--tissage .lead { color: color-mix(in srgb, var(--t-ecru) 74%, transparent); }
.hero--tissage .btn--ghost { color: var(--t-ecru); border-color: color-mix(in srgb, var(--t-ecru) 70%, transparent); }
.hero--tissage .btn--ghost:hover { background: var(--t-ecru); border-color: var(--t-ecru); color: var(--t-indigo); }
.hero--tissage .btn:not(.btn--ghost):hover { box-shadow: 0 10px 32px rgba(217, 79, 43, .45); }

/* La légende dit ce que signifient les deux fils : elle donne son sens au motif. */
.legende-tissage {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: color-mix(in srgb, var(--t-ecru) 62%, transparent);
}
.legende-tissage__item { white-space: nowrap; }
.legende-tissage__fil { display: inline-block; vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.legende-tissage__fil--chaine { width: 18px; height: 3px; background: color-mix(in srgb, var(--t-ecru) 70%, transparent); }
.legende-tissage__fil--trame { width: 18px; height: 3px; background: var(--t-garance); }

@media (max-width: 980px) {
  .hero--tissage .hero__in { grid-template-columns: 1fr; }
  .tissage-zone { order: -1; min-height: 0; margin-top: 0; height: clamp(260px, 62vw, 380px); }
}

/* ══ Le reste du site dans l'esprit du hero ══════════════════════════════════
   Alternance de sections claires (laine écrue) et « nuit » (indigo), toutes traversées
   par les fils de chaîne. Le fil garance revient devant chaque surtitre : c'est le fil
   de l'IA qui court d'une section à l'autre. */
.section, .page-hero { background-image: var(--fils-clairs); }
.section--tint { background-color: var(--tint); }
.section--dark {
  background-color: var(--ink);
  background-image: var(--fils-sombres), radial-gradient(90% 70% at 85% 0%, var(--ink-2), transparent 70%);
  color: var(--on-dark);
}
.section--dark .eyebrow { color: #f08a6c; }
.section--dark .lead, .section--dark .prose, .section--dark .vision__text { color: var(--on-dark-muted); }
.section--dark .vision__text { color: var(--on-dark); }
.section--dark .more a { color: #f08a6c; }
.section--dark .btn--ghost { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 70%, transparent); }
.section--dark .btn--ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.section--dark .pillar { border-top-color: color-mix(in srgb, var(--on-dark) 40%, transparent); }
.section--dark .pillar p { color: var(--on-dark-muted); }

/* Cartes sur fond nuit : du verre teinté, liseré écru, lueur garance au survol. */
.section--dark .card {
  background-color: color-mix(in srgb, var(--on-dark) 4%, transparent);
  border-color: color-mix(in srgb, var(--on-dark) 14%, transparent);
}
.section--dark .card p { color: var(--on-dark-muted); }
.section--dark .card__num { color: #f08a6c; }
.section--dark :is(.card, .person):hover {
  background-image: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(217, 79, 43, .18), transparent 70%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
.section--dark .tags li { background: color-mix(in srgb, var(--on-dark) 10%, transparent); color: var(--on-dark); }

/* Le fil garance devant chaque surtitre, qui se tend quand le bloc apparaît. */
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 2px; margin-right: 12px; border-radius: 1px;
  background: var(--accent);
  transform-origin: left; transition: transform .9s var(--ease-out) .25s;
}
.js .eyebrow::before { transform: scaleX(0); }
.js :is(.eyebrow.active, .active .eyebrow)::before { transform: scaleX(1); }

/* Vision : le texte à gauche, le bâtiment de fils à droite (assets/batiment.js). */
#vision h2 { max-width: 18ch; }
#vision .vision__text { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--on-dark-muted); }
#vision .vision__text p + p { margin-top: 16px; }
#vision .vision__text p:last-child { color: var(--on-dark); padding-left: 18px; border-left: 2px solid var(--accent); }
.vision-zone { position: relative; height: clamp(380px, 40vw, 560px); }
.batiment { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 760px) { .vision-zone { height: clamp(300px, 80vw, 420px); } }

/* Pied de page : la nuit avec ses fils, comme le hero. */
.foot { background-color: var(--ink); background-image: var(--fils-sombres); }

@media (prefers-reduced-motion: reduce) {
  .js .eyebrow::before { transform: none; transition: none; }
}

/* ══ En-tête de page intérieure avec une forme en mouvement à droite ═════════
   Même fond clair que les autres pages ; la forme (canvas) vit dans .forme-zone. */
.page-hero__grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-hero--forme .wrap { max-width: 1320px; }
.page-hero--forme h1 { max-width: 20ch; }
.forme-zone { position: relative; height: clamp(360px, 38vw, 540px); }
.forme-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 980px) {
  .page-hero__grille { grid-template-columns: 1fr; }
  .forme-zone { order: -1; height: clamp(260px, 64vw, 380px); }
}

/* ══ Services en mosaïque, chacun avec son motif animé (assets/motifs.js) ══════
   L'IA prend la grande place sur fond nuit ; les plateformes, une colonne haute ; le
   sur-mesure et les appels à projets se partagent le reste. */
.services-bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "ia ia saas" "mesure appel saas";
}
.service--ia { grid-area: ia; }
.service--saas { grid-area: saas; }
.service--mesure { grid-area: mesure; }
.service--appel { grid-area: appel; }
.service { display: flex; flex-direction: column; padding: 0 0 28px; overflow: hidden; }
.service > :not(.motif) { padding-left: clamp(22px, 2.4vw, 30px); padding-right: clamp(22px, 2.4vw, 30px); }
.service h3 { margin: 22px 0 10px; font-size: 21px; }
.service p { font-size: 15.5px; }
.service .tags { margin-top: auto; padding-top: 20px; }
.motif {
  --fond-motif: var(--card);
  display: block; width: 100%; height: 170px; flex: none;
  /* Indispensable : sans « contain: size », la taille interne du canvas (fixée par motifs.js à chaque
     redimensionnement) nourrit la hauteur de la carte, qui relance un redimensionnement… et la carte
     grandit sans fin, la page avec elle. */
  contain: size;
  border-bottom: 1px solid var(--line);
  background-image: var(--fils-clairs);
}
.service--ia .motif { --fond-motif: var(--ink-2); height: 220px; border-bottom-color: color-mix(in srgb, var(--on-dark) 14%, transparent); background-image: var(--fils-sombres); }
.service--saas .motif { height: 0; flex: 1 1 0; min-height: 260px; }   /* la hauteur vient de la grille, jamais du canvas */
.service--ia h3 { font-size: 26px; }
.service--ia p { font-size: 16.5px; max-width: 60ch; }
.service--ia .tags li { background: color-mix(in srgb, var(--on-dark) 10%, transparent); color: var(--on-dark); }

@media (max-width: 980px) {
  .services-bento { grid-template-columns: 1fr 1fr; grid-template-areas: "ia ia" "saas saas" "mesure appel"; }
  .service--saas .motif { flex: none; height: 200px; min-height: 0; }
}
@media (max-width: 640px) {
  .services-bento { grid-template-columns: 1fr; grid-template-areas: "ia" "saas" "mesure" "appel"; }
}

/* Pages juridiques : les listes gardent leurs puces (le reste du site les retire). */
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal li strong, .legal p strong { color: var(--ink); }
.legal__maj { font-family: var(--mono); font-size: 13px; margin: -20px 0 8px; }

/* ══ Nos produits : Whisperial (accueil) ══════════════════════════════════════
   Les promesses à gauche, un écran de l'application redessiné à droite, qui prend vie
   quand il arrive à l'écran (assets/produit.js). Les couleurs de l'écran reprennent
   celles de Whisperial : bleu nuit et rouge garance. */
.produit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.produit__texte h2 { max-width: 16ch; }
.atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin-top: 34px; }
.atouts li { padding-top: 16px; border-top: 1px solid var(--line); position: relative; }
.atouts li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--accent); }
.atouts h3 { font-size: 16.5px; margin-bottom: 6px; }
.atouts p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.app { margin: 0; position: relative; padding: 0 0 128px; }
.app__fenetre {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px;
  box-shadow: 0 34px 70px rgba(15, 20, 45, .32), 0 6px 18px rgba(15, 20, 45, .18);
  font-size: 12px;
}
.app__barre { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.app__logo { font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; }
.app__onglet { color: var(--on-dark-muted); font-size: 11.5px; }
.app__credits { margin-left: auto; font-size: 11px; font-weight: 700; color: #f08a6c; padding: 3px 10px; border-radius: 999px; background: rgba(217, 79, 43, .14); }
.app__corps { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 330px; }
.app__nav { padding: 14px 10px; border-right: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 4px; align-content: start; background: rgba(255, 255, 255, .02); }
.app__section { font-size: 11px; color: var(--on-dark-muted); padding: 6px 8px 7px; border-radius: 6px; line-height: 1.3; }
.app__section i { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.app__section i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--accent);
  width: calc(var(--p, 0) * 1%); transition: width 1.1s var(--ease-out);
}
.app__section--actif { color: var(--on-dark); background: rgba(217, 79, 43, .16); }
/* Avancement de chaque section sans JavaScript (le script rejoue ces valeurs depuis 0). */
.p10 { --p: 10; } .p25 { --p: 25; } .p35 { --p: 35; } .p45 { --p: 45; } .p60 { --p: 60; }
.p70 { --p: 70; } .p75 { --p: 75; } .p80 { --p: 80; } .p100 { --p: 100; }

.app__champ { padding: 16px 18px 20px; min-width: 0; }
.app__etapes { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; margin-bottom: 16px; }
.app__etapes b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9.5px; }
.app__etapes span { flex: 1; min-width: 10px; height: 1px; background: rgba(255, 255, 255, .15); }
.app__label { font-weight: 800; font-size: 14px; }
.app__consigne { color: var(--on-dark-muted); font-size: 11.5px; margin: 2px 0 10px; }
.app__texte {
  min-height: 104px; padding: 10px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09);
  font-size: 12.5px; line-height: 1.6;
}
.app__curseur { display: none; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #f08a6c; animation: clignote 1s steps(2) infinite; }
.app--en-cours .app__curseur { display: inline-block; }
@keyframes clignote { to { opacity: 0; } }
.app__qualite { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.app__jauge { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.app__jauge > span { display: block; height: 100%; width: calc(var(--q, 1) * 100%); background: linear-gradient(90deg, #f2a35c, var(--accent)); }
.app__criteres { font-size: 11px; color: var(--on-dark-muted); white-space: nowrap; }
.app__criteres b { color: var(--on-dark); }
.app__assistant { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 9px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; }
.app__assistant span { color: var(--on-dark-muted); }

/* La carte du prévisionnel, posée sur l'écran. */
.app__carte {
  /* Posée sous le coin de la fenêtre : elle ne doit masquer ni les critères ni l'assistant. */
  position: absolute; right: -18px; bottom: 30px; width: 220px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 22px 44px rgba(15, 20, 45, .22);
  padding: 14px 16px 12px;
}
.app__carte-titre { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.app__barres { display: flex; align-items: flex-end; gap: 14px; height: 74px; margin: 12px 0 8px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.app__bar { flex: 1; position: relative; height: calc(var(--h, 0) * 1%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), #f2a35c); transition: height 1s var(--ease-out); }
.app__bar em { position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.h45 { --h: 45; } .h68 { --h: 68; } .h90 { --h: 90; }
.app__resultat { margin-top: 20px; font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.app__resultat b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.app__legende { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--muted); font-style: italic; }

@media (max-width: 1080px) {
  .produit { grid-template-columns: 1fr; }
  .app { max-width: 640px; }
}
@media (max-width: 640px) {
  .atouts { grid-template-columns: 1fr; }
  .app__corps { grid-template-columns: 1fr; }
  .app__nav { display: none; }
  .app { padding-bottom: 0; }
  .app__carte { position: relative; right: auto; bottom: auto; width: auto; margin-top: -26px; margin-left: 24px; margin-right: 8px; }
  .app__legende { position: static; display: block; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .app__section i::after, .app__bar { transition: none; }
  .app__curseur { animation: none; }
}

/* ══ Services · Nos produits : la constellation Whisperial (assets/ecosysteme.js) ═════
   Le dossier de l'entrepreneur au centre ; experts, banques et partenaires, pilotage autour,
   reliés par des fils de lumière dessinés sur .eco__fils. */
.eco-bloc { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); margin-top: 44px; align-items: center; }
.eco-titre { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; max-width: 22ch; margin-bottom: 4px; }
.eco-promesses { display: grid; gap: 6px; margin-top: 28px; }
.eco-promesses li {
  padding: 14px 16px 14px 18px; border-radius: 10px;
  border-left: 2px solid color-mix(in srgb, var(--on-dark) 18%, transparent);
  transition: background .3s ease, border-color .3s ease;
}
.eco-promesses h4 { font-size: 16.5px; margin: 0 0 6px; }
.eco-promesses p { font-size: 14.5px; line-height: 1.6; color: var(--on-dark-muted); }
.eco-promesses .eco-promesse--focus { border-left-color: var(--accent); background: rgba(217, 79, 43, .1); }

.eco-figure { margin: 0; }
/* Trois rangs (deux cartes en haut, le dossier au milieu, le pilotage en bas) : à cette largeur,
   trois cartes côte à côte se chevaucheraient. */
.eco { position: relative; height: 640px; }
.eco__fils { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco__carte {
  position: absolute; z-index: 1;
  padding: 14px 16px; border-radius: 14px; font-size: 12px; color: var(--on-dark);
  background: color-mix(in srgb, var(--ink-2) 92%, var(--on-dark));
  border: 1px solid color-mix(in srgb, var(--on-dark) 16%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s var(--ease-out);
}
.eco__carte--recu, .eco__carte--focus { border-color: rgba(240, 138, 108, .7); box-shadow: 0 0 0 1px rgba(217, 79, 43, .35), 0 0 28px rgba(217, 79, 43, .3), 0 18px 40px rgba(0, 0, 0, .3); }
.eco__carte--focus { transform: translateY(-3px); }
.eco__centre { left: 50%; top: 50%; width: 224px; transform: translate(-50%, -50%); border-color: rgba(217, 79, 43, .55); }
.eco__experts { left: 0; top: 0; width: 212px; }
.eco__banques { right: 0; top: 0; width: 216px; }
.eco__pilotage { left: calc(50% - 122px); bottom: 0; width: 244px; }
.eco__experts.eco__carte--focus, .eco__banques.eco__carte--focus, .eco__pilotage.eco__carte--focus { transform: translateY(-3px); }

.eco__sur { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #f08a6c; }
.eco__nom { font-weight: 800; font-size: 13.5px; margin: 4px 0 10px; }
.eco__ligne { display: flex; justify-content: space-between; color: var(--on-dark-muted); }
.eco__ligne b { color: var(--on-dark); }
.eco__jauge { display: block; height: 4px; margin: 6px 0 10px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.eco__jauge > span { display: block; width: 82%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #f2a35c, var(--accent)); }
.eco__ok { color: #8fd3a8; font-size: 11.5px; }
.eco__liste { display: grid; gap: 7px; margin: 10px 0; }
.eco__liste li { display: flex; align-items: center; gap: 9px; color: var(--on-dark-muted); }
.eco__liste i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 800; background: color-mix(in srgb, var(--on-dark) 14%, transparent); color: var(--on-dark); }
.eco__liste--km li { justify-content: space-between; }
.eco__liste--km span { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.eco__badge { display: inline-block; margin-top: 2px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #f08a6c; background: rgba(217, 79, 43, .14); }
.eco__badge--alerte { color: #f2c46d; background: rgba(242, 196, 109, .12); }
.eco__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 12px; }
.eco__kpis p { color: var(--on-dark-muted); font-size: 11px; line-height: 1.35; }
.eco__kpis b { display: block; font-size: 20px; color: var(--on-dark); font-variant-numeric: tabular-nums; }

/* Mini-carte des partenaires : un rayon de recherche autour de l'entrepreneur. */
.eco__carte-geo { position: relative; height: 74px; margin: 10px 0 4px; border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px); }
.eco__rayon { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(240, 138, 108, .6); background: rgba(217, 79, 43, .08); }
.eco__moi { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 79, 43, .25); }
.eco__pin { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark); opacity: .8; }
.eco__pin--1 { left: 38%; top: 30%; } .eco__pin--2 { left: 62%; top: 62%; } .eco__pin--3 { left: 57%; top: 24%; }
.eco__legende { position: static; display: block; margin-top: 16px; color: var(--on-dark-muted); }

@media (max-width: 1080px) {
  .eco-bloc { grid-template-columns: 1fr; }
  .eco { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .eco__fils { display: none; }
  .eco__carte { position: static; width: auto; transform: none; }
  .eco__centre { grid-column: 1 / -1; transform: none; }
}
@media (max-width: 560px) {
  .eco { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .eco__carte, .eco-promesses li { transition: none; }
}

/* Logo (piste « les volutes ») : lames en currentColor, crosses de fougère en garance. */
.brand__mark .crosse { fill: none; stroke: var(--accent); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.brand--light .brand__mark .crosse { stroke: #e8603c; }   /* garance éclairci : contraste sur fond nuit */
