/* Polices auto-hébergées (variables, latin, font-display swap) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/BricolageGrotesque-var.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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/HankenGrotesk-var.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono-var.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;
}

/* Portfolio Arthur Guillermin Hazan — feuille de style partagée
   Identité reprise du HTML d'origine : off-white chaud, vert profond,
   Bricolage Grotesque / Hanken Grotesk / JetBrains Mono, rail-timeline. */

:root {
  --bg: #f8f8f5;
  --surface: #ffffff;
  --ink: #17171b;
  --muted: #6d6d75;
  --faint: #9a9aa0;
  --hair: #e4e3dd;
  --accent: #33564b;          /* accent texte, liens, traits */
  --accent-strong: #33564b;   /* accent en fond plein (texte blanc dessus) */
  --accent-grad: #3a6053;     /* départ des dégradés verts */
  --accent-soft: #33564b14;
  --accent-line: #33564b33;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Hanken Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --rail: 40px;
  color-scheme: light;
}

/* Dark mode : activé par data-theme="dark" sur <html> (manuel > heure > système) */
:root[data-theme="dark"] {
  --bg: #141513;
  --surface: #1d1f1c;
  --ink: #ecebe6;
  --muted: #a4a59f;
  --faint: #75766f;
  --hair: #2c2e2a;
  --accent: #93bcab;
  --accent-strong: #35594d;
  --accent-grad: #3d6558;
  --accent-soft: #93bcab1a;
  --accent-line: #93bcab40;
  color-scheme: dark;
}
:root[data-theme="dark"] .chip.new { color: #d9a05f; background: #d9a05f1f; }
:root[data-theme="dark"] .offer:hover { box-shadow: 0 16px 34px #00000059; }
:root[data-theme="dark"] .actu:hover { box-shadow: 0 22px 48px #00000066; }

html { transition: background .25s ease; }
body { transition: background .25s ease, color .25s ease; }

/* Toggle thème */
.theme-toggle {
  background: none; border: 1px solid transparent; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 6px;
  display: inline-flex; align-items: center;
  transition: color .18s ease, border-color .18s ease;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px 0 calc(28px + var(--rail));
  position: relative;
}

.rail {
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 1px; background: var(--hair); z-index: 0;
}

.node { position: relative; z-index: 1; }
.node::before {
  content: "";
  position: absolute;
  left: calc(-8px - var(--rail));
  top: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.node.filled::before { background: var(--accent); }

/* Nav inter-pages */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar a { color: var(--muted); text-decoration: none; transition: color .18s ease; }
.topbar a:hover { color: var(--accent); }
.topbar .brand { color: var(--ink); }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a[aria-current="page"] { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* HERO */
.hero { padding: 84px 0 60px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.thesis {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 3.6vw, 27px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin-bottom: 22px;
}
.thesis .hl { color: var(--accent); }
.lede { color: var(--muted); max-width: 54ch; font-size: 17px; }
.meta-line {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 34px;
  letter-spacing: 0.02em;
}

/* STATEMENT */
.statement { padding: 42px 0 6px; }
.statement-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(23px, 4vw, 31px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin-bottom: 16px;
}
.statement-lead .hl-accent { color: var(--accent); }
.statement-sub { color: var(--muted); font-size: 17px; max-width: 54ch; }

/* BIO */
.bio { padding: 8px 0 40px; }
.bio p { font-size: 18px; line-height: 1.62; max-width: 60ch; color: var(--ink); }
.bio p + p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

/* CHIFFRES */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 4px;
}
.stat { padding: 6px 16px 6px 0; }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* SECTIONS */
section { padding: 54px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; position: relative; }
/* Point du rail aligné sur le titre de section (le point du .node est masqué quand un sec-head existe) */
.node:has(.sec-head)::before { display: none; }
.wrap .sec-head::before {
  content: "";
  position: absolute;
  left: calc(-8px - var(--rail));
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 4.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sec-idx { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 500; padding-top: 4px; }

/* FOCUS */
.focus-item {
  display: block;
  padding: 14px 0;
}
.focus-num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.focus-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.focus-desc { color: var(--muted); font-size: 15.5px; }

/* REALISATIONS */
.work-item { padding: 18px 0; border-top: 1px solid var(--hair); display: flex; gap: 16px; align-items: flex-start; }
.work-item:last-child { border-bottom: 1px solid var(--hair); }
.work-mark { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 11px; }
.work-item p { font-size: 16px; }
.work-item strong { font-weight: 600; }

/* OFFRES */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer:hover { transform: translateY(-3px); box-shadow: 0 16px 34px #17171b14; }
.offer .o-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.offer h3 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin: 10px 0 8px; }
.offer p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.offers-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15.5px;
  color: #fff; background: var(--accent-strong);
  border-radius: 6px; padding: 13px 20px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #33564b3a; }
.cta-btn .arrow { transition: transform .18s ease; }
.cta-btn:hover .arrow { transform: translateX(3px); }
.cta-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta-side { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* PARCOURS */
.job { padding: 20px 0; }
.job-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 12px; }
.job-title { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.job-org { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.job-date { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; flex: none; padding-top: 3px; }
.job-date.now { color: var(--accent); }
.job-desc { font-size: 15.5px; color: var(--ink); max-width: 62ch; }
.job-keys { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.keychip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 3px;
  line-height: 1.3;
}
.job-clients { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.job-clients .cl-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }

/* ENSEIGNEMENT */
.teach p { font-size: 16.5px; max-width: 58ch; }
.teach .schools { font-family: var(--display); font-weight: 600; color: var(--ink); }
.teach a { font-family: var(--display); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent-line); transition: color .18s ease, border-color .18s ease; }
.teach a:hover { color: var(--accent); border-color: var(--accent); }

/* STACK */
.stack-group { margin-bottom: 20px; }
.stack-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 6px 11px;
  border-radius: 4px;
}

/* BLOG LISTE */
.post-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 26px 0;
  border-top: 1px solid var(--hair);
  transition: padding-left .22s ease;
}
.post-item:last-of-type { border-bottom: 1px solid var(--hair); }
.post-item:hover { padding-left: 8px; }
.post-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.03em; display: flex; gap: 14px; margin-bottom: 10px; }
.post-item h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3.4vw, 25px); letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 10px; }
.post-item:hover h3 { color: var(--accent); }
.post-dek { color: var(--muted); font-size: 16px; max-width: 60ch; }
.post-arrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 12px; opacity: 0; transform: translateX(-6px); transition: opacity .22s ease, transform .22s ease; }
.post-item:hover .post-arrow { opacity: 1; transform: none; }

/* ACTU (blog) */
.actu { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: stretch; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.actu:hover { transform: translateY(-3px); box-shadow: 0 22px 48px #17171b1f; }
.actu-media { position: relative; min-height: 210px; background: linear-gradient(150deg, var(--accent-grad), var(--accent-strong)); }
.actu-media::after { content: "Agence Mantu"; position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; color: #ffffff8c; letter-spacing: .04em; }
.actu-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.actu-body { padding: 22px 24px 22px 0; align-self: center; }
.actu-body h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3vw, 25px); letter-spacing: -0.015em; line-height: 1.14; margin: 8px 0 10px; }
.actu-body p { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 54ch; }
@media (max-width: 620px) { .actu { grid-template-columns: 1fr; } .actu-media { min-height: 190px; } .actu-body { padding: 0 18px 22px; } }

/* ARTICLE */
.reading-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 50; transition: width .1s linear; }
.article-head { padding: 70px 0 30px; }
.article-head .eyebrow { margin-bottom: 20px; }
.article-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 20ch;
}
.article-head .dek { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 3vw, 22px); line-height: 1.4; color: var(--muted); max-width: 46ch; }
.article-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }

/* LECTEUR AUDIO (articles, voix IA) */
.audio-player {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 14px 18px 14px 14px;
  margin: 26px 0 6px;
  max-width: 560px;
}
.ap-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--accent-strong); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ap-btn:hover { transform: scale(1.06); box-shadow: 0 8px 20px #33564b3a; }
.ap-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ap-btn svg { width: 17px; height: 17px; fill: #fff; }
.ap-pause { display: none; }
.audio-player.playing .ap-play { display: none; }
.audio-player.playing .ap-pause { display: block; }
.ap-main { flex: 1; min-width: 0; }
.ap-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ap-label { font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.ap-ai { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.ap-track { height: 5px; background: var(--accent-soft); border-radius: 4px; cursor: pointer; position: relative; }
.ap-fill { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .15s linear; }
.ap-right { flex: none; display: flex; align-items: center; gap: 10px; }
.ap-time { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 38px; text-align: right; }
.ap-speed {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  background: var(--accent-soft); border: none; border-radius: 6px;
  padding: 4px 8px; cursor: pointer;
  transition: background .15s ease;
}
.ap-speed:hover { background: var(--accent-line); }
@media (max-width: 560px) {
  .audio-player { gap: 12px; padding: 12px; }
  .ap-ai { display: none; }
}

.prose { padding: 20px 0 40px; max-width: 68ch; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 3.6vw, 26px); letter-spacing: -0.015em; margin: 42px 0 14px; line-height: 1.2; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 30px 0 10px; }
.prose p { font-size: 17.5px; line-height: 1.7; margin-bottom: 18px; }
.prose p > strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 22px; }
.prose li { font-size: 17.5px; line-height: 1.7; margin-bottom: 8px; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 3.2vw, 23px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose blockquote p { font-size: inherit; margin: 0; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); transition: border-color .18s ease; }
.prose a:hover { border-color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--accent-soft); padding: 2px 6px; border-radius: 3px; }
.prose hr { border: none; border-top: 1px solid var(--hair); margin: 40px 0; }
.pull { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 3.6vw, 27px); line-height: 1.26; letter-spacing: -0.015em; color: var(--accent); margin: 34px 0; max-width: 24ch; }

.article-foot { border-top: 1px solid var(--hair); padding: 30px 0 10px; }
.article-foot .sig { font-family: var(--display); font-weight: 600; font-size: 17px; }
.article-foot .back { font-family: var(--mono); font-size: 13px; color: var(--accent); text-decoration: none; display: inline-block; margin-top: 8px; }
.article-foot .back:hover { text-decoration: underline; }

/* CHANTIERS (liste tabulaire) */
.worktable { border-top: 1px solid var(--hair); }
.wt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  align-items: baseline;
  padding: 15px 8px 15px 0;
  border-bottom: 1px solid var(--hair);
  transition: padding-left .2s ease, background .2s ease;
}
.wt-row:hover { padding-left: 8px; background: var(--accent-soft); }
.wt-main { font-size: 16px; letter-spacing: -0.005em; }
.wt-main .chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.chip.now { color: var(--accent); background: var(--accent-soft); }
.chip.new { color: #9a5a1e; background: #9a5a1e14; }
.wt-cat { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; white-space: nowrap; letter-spacing: 0.02em; }
.wt-main a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent-line); transition: color .18s ease, border-color .18s ease; }
.wt-main a:hover { color: var(--accent); border-color: var(--accent); }
.wt-row { position: relative; }
a.wt-row { color: inherit; text-decoration: none; }
a.wt-row .wt-main { border-bottom: none; }
.wt-viz {
  position: absolute; top: 50%; right: 16px;
  width: 250px; min-height: 148px;
  background: linear-gradient(155deg, var(--accent-grad), var(--accent-strong));
  color: #eef1ee; border-radius: 14px; padding: 18px;
  box-shadow: 0 26px 55px #17171b30;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  opacity: 0; pointer-events: none;
  transform: translate(24px, -46%) rotate(3deg) scale(.94);
  transition: opacity .28s ease, transform .34s cubic-bezier(.2,.7,.3,1);
  z-index: 30;
}
.wt-row:hover .wt-viz { opacity: 1; transform: translate(0, -50%) rotate(-2deg) scale(1); }
.wv-ic { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; fill: none; stroke: #ffffffcc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wv-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: #b9c7bd; }
.wv-t { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.16; letter-spacing: -0.01em; }
@media (max-width: 620px) { .wt-viz { display: none; } }

/* DECK DE TUILES (en ce moment) */
.deck-full { padding: 60px 0; background: radial-gradient(70% 90% at 50% 50%, #33564b0a, transparent 72%); overflow: hidden; }
.deck-inner { width: 80vw; max-width: 1320px; margin: 0 auto; }
@media (max-width: 620px) { .deck-inner { width: 90vw; } }
.deck-wrap { padding-top: 6px; }
.deck {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
  min-height: 200px;
}
.deck-card {
  position: relative;
  width: 138px;
  height: 168px;
  margin: 0 -12px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 6px;
  box-shadow: 0 6px 18px #17171b12;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  cursor: default;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, z-index 0s;
  transform-origin: bottom center;
}
.deck-card:nth-child(1) { transform: rotate(-11deg) translateY(6px); }
.deck-card:nth-child(2) { transform: rotate(-6deg) translateY(1px); }
.deck-card:nth-child(3) { transform: rotate(-2deg); }
.deck-card:nth-child(4) { transform: rotate(2deg); }
.deck-card:nth-child(5) { transform: rotate(6deg) translateY(1px); }
.deck-card:nth-child(6) { transform: rotate(10deg) translateY(5px); }
.deck-card:nth-child(7) { transform: rotate(13deg) translateY(10px); }
.deck-card .dc-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.deck-card .dc-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) translateY(6px) scale(.9);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--surface);
  background: var(--ink);
  padding: 5px 10px;
  border-radius: 12px;
  width: max-content;
  max-width: 170px;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.deck:hover .deck-card { filter: saturate(.9); }
.deck-card:hover {
  transform: rotate(0deg) translateY(-16px) scale(1.06);
  z-index: 6;
  box-shadow: 0 18px 40px #17171b26;
  border-color: var(--accent-line);
  filter: none;
}
.deck-card:hover .dc-tag { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.deck-hint { text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.02em; }

/* DEMANDEZ À UNE IA */
.ask-ai {
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 28px 26px;
  background: var(--surface);
}
.ask-ai .aa-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.ask-ai h2 { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 4vw, 27px); letter-spacing: -0.015em; margin-bottom: 10px; }
.ask-ai p { color: var(--muted); font-size: 15.5px; max-width: 52ch; margin-bottom: 20px; }
.ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  background: var(--accent-strong);
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ask-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #33564b3a; }
.ask-btn .arrow { transition: transform .18s ease; }
.ask-btn:hover .arrow { transform: translateX(3px); }
.ask-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ask-alt { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.ask-alt a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--hair); }
.ask-alt a:hover { color: var(--accent); border-color: var(--accent); }
.ask-prompt {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.ask-prompt::before { content: "> "; color: var(--accent); }
.ask-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ask-cta {
  flex: 1 1 0; min-width: 150px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--hair); border-radius: 8px; padding: 14px 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.ask-cta:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px #33564b22; background: var(--surface); }
.ask-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ask-cta .ai-logo { width: 20px; height: 20px; flex: none; }
.ask-cta .ai-logo path, .ask-cta .ai-logo circle { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .ask-row { flex-direction: column; } }

@media (max-width: 560px) {
  .wt-row { grid-template-columns: 1fr; gap: 4px; }
  .wt-cat { text-align: left; }
  .deck-card { width: 92px; height: 120px; margin: 0 -10px; }
}

/* PILULE ACTU (home, pattern B2B) */
.news-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--hair); border-radius: 100px;
  padding: 7px 14px 7px 8px; text-decoration: none;
  margin-bottom: 26px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.news-pill:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px #33564b1c; }
.news-pill .np-tag {
  font-weight: 500; color: #fff; background: var(--accent-strong);
  border-radius: 100px; padding: 3px 9px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
}
.news-pill .np-arrow { color: var(--accent); }

/* CTA STICKY CONTACT */
.sticky-contact {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  color: #fff; background: var(--accent-strong);
  border-radius: 100px; padding: 12px 18px; text-decoration: none;
  box-shadow: 0 14px 34px #33564b4d;
  transition: transform .2s ease, opacity .25s ease, visibility .25s ease;
}
.sticky-contact:hover { transform: translateY(-2px); }
.sticky-contact.hidden { opacity: 0; visibility: hidden; }

/* FORMULAIRE D'INTENTION (contact) */
.intent { margin-top: 26px; }
.intent-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.intent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.intent-chip {
  font-family: var(--body); font-weight: 500; font-size: 14px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--hair); border-radius: 100px;
  padding: 9px 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.intent-chip:hover { border-color: var(--accent); }
.intent-chip.on { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.intent-send {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  color: var(--surface); background: var(--ink);
  border: none; border-radius: 8px; padding: 13px 20px; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.intent-send:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); }
.intent-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* BLOG : À chaud / De fond */
.hot-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--accent-strong); border-radius: 100px; padding: 3px 10px; vertical-align: middle; margin-left: 10px; }

/* CONTACT */
.contact { padding: 56px 0 40px; }
.contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.015em; margin-bottom: 24px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.links a { color: var(--ink); text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .18s ease; }
.links a:hover { color: var(--accent); }
.links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.links .plain { font-family: var(--mono); font-size: 14px; color: var(--faint); }

/* AGENTS IA */
.agents { border: 1px dashed var(--accent-line); border-radius: 6px; padding: 22px 22px; background: var(--accent-soft); }
.agents .a-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.agents p { font-size: 15px; color: var(--muted); max-width: 60ch; }
.agents a { color: var(--accent); }
.agents code { font-family: var(--mono); font-size: 12.5px; }

footer {
  border-top: 1px solid var(--hair);
  padding: 26px 0 60px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--accent); }

.node { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.node.in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  :root { --rail: 26px; }
  .wrap { padding: 0 20px 0 calc(20px + var(--rail)); }
  .rail { left: 12px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar nav { gap: 16px; flex-wrap: wrap; }
  .hero { padding: 60px 0 44px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px 4px; }
  .stat { padding: 4px 0; }
  .offers { grid-template-columns: 1fr; }
  .job-head { flex-direction: column; gap: 4px; }
  .job-date { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .node { opacity: 1; transform: none; transition: none; }
  .reading-bar { transition: none; }
}
