:root {
  /* palette « Abricot » : crème, sable, brun chaud, rouge brique */
  --bg: #FCF8F3;
  --surface: #FFFDF9;
  --surface-2: #F7EFE6;
  --ink: #2A211C;
  --muted: #6B5048;
  --line: #EADBCB;
  --track: #F1E5D8;
  --accent: #C2381F;
  --accent-2: #9E2C17;
  --accent-soft: #F8E3DC;
  --violet: #7B5A8C;
  --violet-soft: #F1EAF4;
  --violet-line: #D9C8E2;
  --console: #3A2A22;
  --console-2: #4A372D;
  --console-ink: #F3E6D8;
  --console-dim: #BFA591;
  --hit: #E0A23B;
  --err: #E07A5F;
  --ok: #7FAF8A;

  --sh-1: 0 1px 2px rgba(42, 33, 28, .06), 0 4px 12px rgba(42, 33, 28, .05);
  --sh-2: 0 1px 2px rgba(42, 33, 28, .06), 0 10px 28px rgba(42, 33, 28, .10);
  --sh-3: 0 2px 6px rgba(42, 33, 28, .08), 0 30px 70px -20px rgba(42, 33, 28, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
main { overflow-x: clip; }
h1, h2, h3, h4, .brand, .step-name, .pj-title, .method-txt b, .tile-title, .project-hero h1 { font-family: var(--display); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* les boutons et champs n'héritent pas de la police par défaut : on la leur impose */
button, input, select, textarea { font-family: inherit; }
a { color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 248, 243, .86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(42, 33, 28, .2); }
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(20, 28, 39, .05); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.icon-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); transition: background .2s, transform .2s var(--ease); }
.icon-link:hover { background: var(--surface); box-shadow: var(--sh-1); transform: translateY(-1px); }
.icon-link svg { width: 20px; height: 20px; fill: currentColor; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang button { font: 600 .78rem var(--sans); border: 0; background: transparent; color: var(--muted); padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.back { color: var(--muted); text-decoration: none; font-size: .95rem; margin-left: auto; white-space: nowrap; }
.back:hover { color: var(--ink); }
@media (max-width: 880px) { .nav { display: none; } .topbar-inner > .icon-link { margin-left: auto; } }
@media (max-width: 480px) { body[data-page] .brand { display: none; } body[data-page] .back { margin-left: 0; } body[data-page] .lang { margin-left: auto; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem var(--sans); padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  text-decoration: none; cursor: pointer; box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.small { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn[hidden] { display: none; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- reveal ---------- */
.ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.ready .reveal[data-anim="left"] { transform: translateX(-56px); }
.ready .reveal[data-anim="right"] { transform: translateX(56px); transition-delay: .12s; }
.ready .reveal.in { opacity: 1; transform: none; }
/* cascade des éléments à l'intérieur d'un bloc révélé */
.ready .reveal .st, .ready .tiles.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(.18s + var(--i, 0) * 45ms); }
.ready .reveal.in .st, .ready .tiles.reveal.in > * { opacity: 1; transform: none; }
.tiles > :nth-child(2) { --i: 2; } .tiles > :nth-child(3) { --i: 4; } .tiles > :nth-child(4) { --i: 6; } .tiles > :nth-child(5) { --i: 8; } .tiles > :nth-child(6) { --i: 10; }
/* soulignement rouge des titres de section */
.section h2::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 14px; transform-origin: left; }
.ready .reveal h2::after, .ready h2.reveal::after { transform: scaleX(0); transition: transform .8s var(--ease) .35s; }
.ready .reveal.in h2::after, .ready h2.reveal.in::after { transform: scaleX(1); }
.contact-card h2::after { display: none; }
/* barre de progression de lecture */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; z-index: 2; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; position: relative; }
.hero > div, .hero > figure { position: relative; z-index: 1; }
.hero-name .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-name .ln > span { display: inline-block; transform: translateY(108%); animation: lineup 1s var(--ease) forwards; }
.hero-name .ln + .ln > span { animation-delay: .12s; }
@keyframes lineup { to { transform: none; } }
.portrait img { animation: curtain 1.15s cubic-bezier(.7, 0, .2, 1) .3s both; }
@keyframes curtain { from { clip-path: inset(0 0 0 100% round 24px); } to { clip-path: inset(0 0 0 0 round 24px); } }
.thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.thread path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.thread .node { fill: var(--surface); stroke: var(--accent); stroke-width: 2; opacity: 0; }
.thread-words { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--accent); opacity: 0; }
.thread.go .thread-words { animation: node-in .6s var(--ease) 1.9s both; }
.thread.go path { transition: stroke-dashoffset 1.2s cubic-bezier(.6, 0, .2, 1) .75s; }
.thread.go .node { animation: node-in .4s var(--ease) both; }
.thread.go .n1 { animation-delay: .7s; } .thread.go .n2 { animation-delay: 1.85s; }
@keyframes node-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.thread .node { transform-box: fill-box; transform-origin: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.04em; font-weight: 700; margin: 0 0 22px; }
.hero .role { display: inline-block; font-size: 1.15rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin: 0 0 18px; }
.hero .pitch { font-size: 1.25rem; color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.portrait { margin: 0; position: relative; }
.portrait::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 28px; background: var(--accent-soft); z-index: -1; transform: rotate(3deg); }
.portrait img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: var(--sh-3); }
.hero-in { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 56px; }
  .portrait { max-width: 240px; order: -1; }
}

/* ---------- sections ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 1.05rem; }
#skills { padding-top: 64px; }
#skills .lead { margin-bottom: 22px; }
@media (max-width: 600px) { .section { padding-top: 60px; padding-bottom: 60px; } }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.about-facts { margin: 30px 0 0; display: grid; gap: 0; }
.about-facts > div { padding: 12px 0; border-top: 1px solid var(--line); }
.about-facts dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.about-facts dd { margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; }
.about-body { padding-top: 6px; }
.about-body p { margin: 0 0 18px; font-size: 1.125rem; line-height: 1.7; color: var(--ink); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 12px; } .about-facts { margin-top: 12px; } }

/* ---------- skills: frise verticale (gauche) + boîte à outils (droite) ---------- */
.skills-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-1); padding: 22px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.skills-steps { min-width: 0; }
.frise { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2px; }
.frise .track { position: absolute; left: 33px; top: 31px; bottom: 31px; width: 3px; background: var(--track); border-radius: 3px; }
.frise .fill { display: block; width: 100%; height: 0; background: var(--accent); border-radius: 3px; transition: height .6s var(--ease); }
.frise li, .auto-row > div { position: relative; border-radius: 18px; transition: background .3s var(--ease); }
.frise li.open { background: var(--accent-soft); }
.step {
  position: relative; width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 16px; text-align: left;
  background: transparent; border: 0; padding: 9px 12px; border-radius: 18px; cursor: pointer; font-family: var(--sans); color: var(--ink);
}
.frise li:not(.open) .step:hover { background: var(--surface-2); }
.step .dot {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: 1.05rem; color: var(--muted);
  transition: all .35s var(--ease);
}
.step:hover .dot { border-color: var(--accent); color: var(--accent); }
.step-head { display: grid; gap: 1px; min-width: 0; }
.step-name { font-weight: 700; font-size: 1.32rem; letter-spacing: -.015em; line-height: 1.2; }
.step-tag { font-size: .92rem; color: var(--muted); line-height: 1.35; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); justify-self: center; }
.step.on .chev { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--accent); }
.step.on .dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(225, 6, 0, .45); transform: scale(1.06); }
.step.on .step-name { color: var(--accent); }
.step.done .dot { border-color: var(--accent); color: var(--accent); }
.step.lit .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.step-text { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.step-text > div { overflow: hidden; }
.step-text p { margin: 0; padding: 0 18px 16px 74px; font-size: .95rem; line-height: 1.6; color: var(--ink); opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.open > .step-text { grid-template-rows: 1fr; }
.open > .step-text p { opacity: 1; transform: none; transition-delay: .12s; }
.auto-row { margin-top: 10px; }
.auto-row > div { border: 1.5px dashed var(--violet-line); background: transparent; }
.auto-row > div.open { border-style: solid; background: var(--violet-soft); }
.step.auto .dot { color: var(--violet); border-color: var(--violet-line); font-size: 1.25rem; }
.step.auto:hover .dot { border-color: var(--violet); color: var(--violet); }
.step.auto.on .dot { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 8px 20px -6px rgba(122, 46, 224, .45); }
.step.auto.on .step-name { color: var(--violet); }
.step.auto.on .chev { border-color: var(--violet); }
.step.auto.lit .dot { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 5px rgba(122, 46, 224, .12); }

.skills-tools { min-width: 0; background: var(--surface-2); border-radius: 18px; padding: 18px 20px; }
.toolbox-title { margin: 0 0 14px; font-size: 1.1rem; letter-spacing: -.01em; }
.toolbox { display: grid; gap: 12px; min-width: 0; }
.tool-cat { min-width: 0; }
.tool-cat h4 { margin: 0 0 7px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tool-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 7px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font: 500 .84rem var(--sans); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .3s, border-color .2s;
}
.tool-logo { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.tool-logo svg { width: 16px; height: 16px; fill: #8D97A5; transition: fill .2s; }
.tool-logo svg.extra { width: 15px; height: 15px; }
.tool-logo .mono { font: 800 .6rem var(--sans); color: #8D97A5; border: 1.4px solid currentColor; border-radius: 4px; padding: 0 3px; line-height: 1.35; transition: color .2s; }
.tool-btn:hover, .tool-btn.lit, .tool-btn.sel { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: transparent; }
.tool-btn:hover .tool-logo svg, .tool-btn.lit .tool-logo svg, .tool-btn.sel .tool-logo svg { fill: var(--brand); }
.tool-btn:hover .mono, .tool-btn.lit .mono, .tool-btn.sel .mono { color: var(--brand); }
.tool-btn.sel { box-shadow: 0 0 0 2px var(--brand), var(--sh-2); }
.tool-btn.dim { opacity: .3; }
.tool-btn.dim:hover { opacity: 1; }
.tool-use { margin: 14px 0 0; min-height: 46px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; line-height: 1.5; color: var(--muted); }
.tool-use b { color: var(--ink); }
.tool-use.swap { animation: rise .35s var(--ease) both; }
.use-steps { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 4px; vertical-align: middle; }
.use-step { font-size: .75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
.chip { background: rgba(255, 255, 255, .1); color: #fff; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .skills-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
  .step-name { font-size: 1.12rem; }
  .step-text p { padding-left: 18px; }
  .skills-tools { padding: 16px; }
}
@media (max-width: 600px) {
  .tool-grid { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 28px 6px 1px; margin-right: -16px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .tool-grid::-webkit-scrollbar { display: none; }
}

/* ---------- projects : index dans une carte ---------- */
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-1); padding: 10px; }
.pj-list { list-style: none; margin: 0; padding: 0; }
.pj-list li + li { border-top: 1px solid var(--line); }
.pj-list li:hover + li, .pj-list li:hover { border-color: transparent; }
.pj-row {
  width: 100%; display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.45fr) 150px 38px; gap: 22px; align-items: center;
  padding: 12px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); font-family: var(--sans);
  border-radius: 16px; position: relative; isolation: isolate;
}
.pj-row::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: var(--surface-2); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1; }
.pj-row:hover::before, .pj-row:focus-visible::before { transform: none; }
.pj-thumb { display: block; width: 128px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pj-thumb .thumb { height: 100%; }
.pj-thumb .thumb img { transition: transform .6s var(--ease); }
.pj-row:hover .pj-thumb { transform: rotate(-2deg) scale(1.06); box-shadow: var(--sh-2); }
.pj-row:hover .pj-thumb img { transform: scale(1.08); }
.pj-title { font-weight: 700; font-size: 1.24rem; letter-spacing: -.015em; line-height: 1.2; transition: transform .35s var(--ease); }
.pj-text { font-size: .93rem; color: var(--muted); line-height: 1.45; }
.pj-kind { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.pj-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; flex: none; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.pj-arrow::before { content: ""; position: absolute; left: 12px; top: 18px; width: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .3s; }
.pj-arrow::after { content: ""; position: absolute; left: 17px; top: 14px; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); transition: border-color .3s; }
.pj-row:hover .pj-title { transform: translateX(4px); }
.pj-row:hover .pj-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.pj-row:hover .pj-arrow::before { background: #fff; } .pj-row:hover .pj-arrow::after { border-color: #fff; }
@media (max-width: 900px) {
  .pj-row { grid-template-columns: 76px minmax(0, 1fr); gap: 3px 14px; padding: 12px 8px; }
  .pj-thumb { grid-row: span 3; width: 76px; height: 76px; align-self: start; }
  .pj-arrow { display: none; }
  .pj-kind { grid-column: 2; grid-row: 1; }
  .pj-title { font-size: 1.05rem; }
  .pj-text { font-size: .86rem; }
  .pj-row:hover .pj-title { transform: none; }
}
/* encart méthode, sous la carte des compétences */
#skills-method { margin-top: 18px; }
.method-band { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 18px 22px; border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--sh-2); position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.method-band::after { content: ""; position: absolute; right: -60px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 6, 0, .45), transparent 70%); z-index: -1; transition: transform .6s var(--ease); }
.method-band:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.method-band:hover::after { transform: scale(1.25); }
.method-ic { width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 255, 255, .08); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 13px; }
.method-ic i { border-radius: 3px; background: #fff; opacity: .85; } .method-ic i:nth-child(2) { background: var(--accent); opacity: 1; }
.method-txt { display: grid; gap: 2px; min-width: 0; }
.method-kicker { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #FF8A84; font-weight: 600; }
.method-txt b { font-size: 1.2rem; letter-spacing: -.01em; }
.method-txt span:last-child { font-size: .92rem; color: #B5BCC8; line-height: 1.45; }
.method-cta { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.method-band .pj-arrow { background: #fff; border-color: #fff; }
.method-band:hover .pj-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.method-band:hover .pj-arrow::before { background: #fff; } .method-band:hover .pj-arrow::after { border-color: #fff; }
.method-band { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 380px) auto; }
.method-art { width: 100%; height: auto; display: block; overflow: visible; }
.method-art .m-track { stroke: rgba(255, 255, 255, .16); stroke-width: 3; stroke-linecap: round; }
.method-art .m-prog { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.method-art .m-node { fill: #2A211C; stroke: rgba(255, 255, 255, .35); stroke-width: 2; transition: fill .3s, stroke .3s; }
.method-art .m-label { fill: #C9CFD8; font: 600 11px var(--sans); text-anchor: middle; }
.method-art .m-sub { fill: #8A93A3; font: 500 9.5px var(--sans); text-anchor: middle; }
.method-art .m-dot { fill: #fff; filter: drop-shadow(0 0 5px rgba(225, 6, 0, .9)); }
#skills-method.in .m-prog { animation: m-draw 1.8s var(--ease) .3s forwards; }
#skills-method.in .m-node { animation: m-node .35s var(--ease) both; }
#skills-method.in .m-node:nth-of-type(1) { animation-delay: .35s; } #skills-method.in .m-node:nth-of-type(2) { animation-delay: .8s; }
#skills-method.in .m-node:nth-of-type(3) { animation-delay: 1.25s; } #skills-method.in .m-node:nth-of-type(4) { animation-delay: 1.7s; }
#skills-method.in .m-dot { animation: m-run 3.2s var(--ease) 2.2s infinite; }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
@keyframes m-node { to { fill: var(--accent); stroke: var(--accent); } }
@keyframes m-run { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(270px); opacity: 0; } }
@media (max-width: 1050px) { .method-band { grid-template-columns: 52px minmax(0, 1fr) auto; } .method-art-wrap { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 700px) { .method-band { grid-template-columns: 44px minmax(0, 1fr); } .method-ic { width: 44px; height: 44px; padding: 11px; } .method-cta { grid-column: 1 / -1; justify-self: start; } }
/* chiffres clés sous l'accroche */
.stats { list-style: none; margin: -14px 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.stats li { display: inline-flex; align-items: center; gap: 7px; font-size: .97rem; color: var(--ink); }
.stats svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stats strong { font-weight: 700; }
.stats li.tbd { outline: 1.5px dashed var(--violet); outline-offset: 3px; border-radius: 6px; }
/* parcours : points détaillés */
.tl-points { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.tl-points li { position: relative; padding-left: 16px; line-height: 1.5; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .75; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- projects (tuiles, utilisées par la pop-up) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1);
  font-family: var(--sans); color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--sh-2), 0 30px 60px -30px rgba(14, 17, 22, .18); border-color: transparent; }
.tile:active { transform: translateY(-2px); }
.thumb { display: block; height: 190px; background: var(--track); overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.tile:hover .thumb img { transform: scale(1.04); }
.thumb-phases { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 24px; background: linear-gradient(135deg, var(--violet-soft), var(--surface-2)); }
.thumb-phases span { background: var(--surface); border-radius: 12px; padding: 10px 14px; font-weight: 700; box-shadow: var(--sh-1); transform: translateY(calc(var(--i) * -6px + 9px)); transition: transform .5s var(--ease); }
.tile:hover .thumb-phases span { transform: translateY(calc(var(--i) * -10px + 15px)); }
.thumb-browser { display: flex; flex-direction: column; margin: 0; padding: 22px 28px 0; background: linear-gradient(135deg, #E9EEF4, #F4F6F9); }
.thumb-browser .bar { display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 10px 10px 0 0; padding: 9px 12px; box-shadow: var(--sh-1); }
.thumb-browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.thumb-browser .bar b { margin-left: 10px; font: 500 .72rem var(--sans); color: var(--muted); }
.thumb-browser .page { flex: 1; background: #fff; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto 1fr; gap: 8px; padding: 18px; }
.thumb-browser .page span { border-radius: 4px; background: var(--line); height: 10px; }
.thumb-browser .l1 { height: 22px !important; width: 80%; background: var(--ink) !important; }
.thumb-browser .l2 { width: 60%; background: var(--accent-soft) !important; height: 14px !important; }
.thumb-browser .l3 { width: 90%; }
.thumb-browser .ph { grid-column: 2; grid-row: 1 / 4; height: auto !important; border-radius: 10px !important; background: var(--accent-soft) !important; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.tile-kind { font-size: .82rem; color: var(--muted); }
.tile-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.tile-text { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.tile-go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.tile-go::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.tile:hover .tile-go::after { transform: translateX(4px) rotate(45deg); }

/* ---------- modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: var(--sh-3); color: var(--ink); background: var(--surface); }
dialog.modal::backdrop { background: rgba(20, 28, 39, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.modal[open] { animation: modal-in .4s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal .thumb { height: 240px; }
.modal-text { padding: 26px 30px 30px; }
.modal-text h2 { margin: 4px 0 10px; font-size: 1.7rem; letter-spacing: -.02em; }
.modal-text p { margin: 0 0 14px; }
.proves span { font-weight: 600; color: var(--accent); margin-right: 4px; }
.tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink); transition: transform .2s var(--ease); z-index: 2; }
.modal-close:hover { transform: rotate(90deg); }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .modal .thumb { height: 200px; }
  .modal-text { padding: 22px 18px 28px; }
}

/* ---------- path / contact / footer ---------- */
.path-grid { margin-top: 32px; }
.contact-card { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; box-shadow: var(--sh-3); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 162, 59, .32), transparent 70%); }
.contact-card h2 { color: #fff; }
.contact-card .lead { color: #CDB6A2; margin-bottom: 28px; }
.contact-card .btn:not(.primary) { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .15); box-shadow: none; }
.contact-card .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 600px) { .contact-card { padding: 36px 22px; border-radius: 20px; } }
.footer { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }

/* ---------- method page ---------- */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.phase:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.phase-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; }
.phase h3 { margin: 10px 0 12px; font-size: 1.3rem; }
.phase dl { margin: 0; }
.phase dt { font-size: .78rem; font-weight: 600; color: var(--accent); margin-top: 12px; }
.phase dd { margin: 2px 0 0; font-size: .93rem; line-height: 1.5; }
@media (max-width: 960px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 900px; }

/* ---------- demo ---------- */
.console {
  background: var(--console); color: var(--console-ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(42, 33, 28, .5);
  scroll-margin-top: 84px;
}
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--console-2); border-bottom: 1px solid #5C463A;
}
.steps button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--console-dim); font: 500 0.92rem var(--sans);
  padding: 14px 16px; cursor: pointer; text-align: left;
}
.steps button:hover { color: var(--console-ink); }
.steps button.on { color: #fff; border-bottom-color: var(--hit); }
.steps .n {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; font-size: 0.75rem;
}
.steps button.on .n { background: var(--hit); border-color: var(--hit); color: var(--console); }
/* étape déjà vue : une coche tracée en CSS remplace le numéro, l'étape active reste la seule pastille pleine */
.steps button.seen .n { font-size: 0; border-color: var(--hit); }
.steps button.seen .n::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--hit); border-bottom: 2px solid var(--hit); transform: translateY(-1px) rotate(-45deg); }
@media (max-width: 700px) {
  /* 2 × 2 : les quatre étapes restent visibles, sans défilement caché */
  .steps { grid-template-columns: 1fr 1fr; }
  .steps button { padding: 12px; min-height: 48px; }
}

.console-body { padding: 26px; min-height: 340px; }
.console-body .intro { margin: 0 0 14px; color: var(--console-ink); max-width: 46em; }
.logs { font-family: var(--mono); font-size: 0.82rem; border: 1px solid #5C463A; border-radius: 8px; overflow-x: auto; }
.log {
  display: grid; grid-template-columns: 104px 58px 118px minmax(0, 1fr); gap: 12px;
  padding: 8px 12px; border-bottom: 1px solid rgba(243, 230, 216, .08);
  width: 100%; min-width: 0; text-align: left;
  font: inherit; color: inherit; background: transparent; border-left: 0; border-right: 0; border-top: 0;
}
.log:last-child { border-bottom: 0; }
/* l'heure, le niveau et le service restent sur une ligne ; le message se replie au lieu de faire défiler le tableau */
.log .t, .log .l, .log .s { white-space: nowrap; }
.log .m { min-width: 0; overflow-wrap: anywhere; }
.log .t, .log .s { color: var(--console-dim); }
.lvl-info .l { color: #D9C4A8; }
.lvl-warn .l { color: var(--hit); }
.lvl-error .l { color: #F29A80; font-weight: 600; }
.log-item:last-child .log { border-bottom: 0; }
.log.clickable { cursor: pointer; background: rgba(224, 122, 95, .12); grid-template-columns: 104px 58px 118px minmax(0, 1fr) auto; align-items: center; }
.log.clickable:hover { background: rgba(224, 122, 95, .2); }
.log.clickable .m { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 154, 128, .7); }
.log .go { font: 700 .72rem var(--sans); letter-spacing: .02em; color: var(--console); background: #F29A80; border-radius: 999px; padding: 3px 10px; }

.code {
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.6;
  background: #2E221C; border: 1px solid #5C463A; border-radius: 8px;
  padding: 14px 0; margin: 0 0 16px; overflow-x: auto;
}
.code .ln { display: block; padding: 0 16px; }
.code .ln.hit { background: rgba(224, 162, 59, .16); box-shadow: inset 3px 0 0 var(--hit); color: #FFE4A3; }
.code .ln.ok { color: var(--ok); }
.flag { color: var(--hit); margin: -4px 0 20px; font-weight: 500; }

/* diagnostic : les indices des étapes précédentes restent sous les yeux */
.clues-title { margin: 0 0 8px; color: var(--console-dim); font-size: .85rem; font-weight: 600; }
.clues { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clues code { display: inline-block; font: .8rem var(--mono); color: #FFE4A3; background: #2E221C; border: 1px solid #5C463A; border-radius: 6px; padding: 4px 9px; }
.diag { margin: 0; padding-left: 22px; max-width: 46em; font-size: 1.05rem; }
.diag li { margin-bottom: 14px; padding-left: 4px; }
.diag li::marker { color: var(--hit); font-weight: 600; }

.fix { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.fix h4 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.fix ul { margin: 0 0 16px; padding-left: 20px; }
.fix li { margin-bottom: 6px; }
.fix blockquote {
  margin: 0; padding: 16px 18px;
  background: var(--console-2); border-radius: 8px; font-size: 1.02rem;
}
.fix > div { min-width: 0; }
@media (max-width: 760px) { .fix { grid-template-columns: 1fr; gap: 22px; } .console-body { padding: 18px; } }
/* Mobile : le code se lit sans défilement horizontal */
@media (max-width: 600px) {
  .logs { overflow: visible; font-size: .78rem; }
  .log { grid-template-columns: auto auto 1fr; gap: 2px 10px; min-width: 0; white-space: normal; padding: 9px 12px; }
  .log .m { grid-column: 1 / -1; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; color: var(--console-ink); }
  .log .t { font-size: .72rem; }
  .log .s { justify-self: end; font-size: .72rem; }
  .code { font-size: .76rem; line-height: 1.55; overflow-x: visible; }
  .code .ln { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0 12px 0 14px; text-indent: 0; }
  .code .ln.hit { padding-left: 14px; }
  .flag { font-size: .98rem; }
  .diag { font-size: 1rem; }
  .fix blockquote { font-size: .98rem; padding: 14px; }
}

.console-foot {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid #5C463A; background: var(--console-2);
}
.console-foot .btn { background: transparent; color: var(--console-ink); border-color: rgba(243, 230, 216, .55); min-height: 44px; }
.console-foot .btn.primary { background: var(--hit); border-color: var(--hit); color: var(--console); }

/* contour de focus lisible sur le brun de la console, tracé à l'intérieur pour ne pas être coupé */
.console :focus-visible { outline: 2px solid var(--hit); outline-offset: -3px; }
.console-body:focus { outline: none; }

/* ---------- path ---------- */
.path-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; margin-top: 28px; }
.path-grid h3 { margin-top: 0; margin-bottom: 16px; }
.path-grid h3:not(:first-child) { margin-top: 36px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); transform-origin: top; }
.ready .reveal .timeline::before { transform: scaleY(0); transition: transform 1.4s var(--ease) .2s; }
.ready .reveal.in .timeline::before { transform: scaleY(1); }
.timeline > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 0 0 26px; position: relative; }
.timeline > li:last-child { padding-bottom: 0; }
.org-logo { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: grid; place-items: center; position: relative; z-index: 1; flex: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.org-logo img { width: 34px; height: 34px; object-fit: contain; }
.org-logo b { font: 700 .72rem var(--sans); letter-spacing: .02em; color: var(--muted); }
li:hover > .org-logo { transform: translateY(-2px) rotate(-3deg); box-shadow: var(--sh-2); }
.timeline .when { display: block; color: var(--accent); font: 600 .78rem var(--sans); letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.timeline h4 { margin: 2px 0 4px; font-size: 1.08rem; }
.timeline .org { font-weight: 500; color: var(--muted); }
.timeline p { margin: 0; color: var(--ink); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain strong { display: block; }
.plain span { color: var(--muted); font-size: 0.95rem; }
.plain .lang-item { grid-template-columns: 34px minmax(0, 1fr); }
.lang-flag { display: block; width: 33px; height: 22px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.lang-flag svg { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .path-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- project page (F1) ---------- */
.back { color: var(--muted); text-decoration: none; font-size: 0.95rem; margin-left: auto; }
.back:hover { color: var(--ink); }
.project-hero { padding-top: 64px; padding-bottom: 48px; }
.project-hero .kind { display: block; margin-bottom: 10px; }
.project-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.project-hero .pitch { margin-bottom: 24px; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.goal { border-top: 2px solid var(--ink); padding-top: 14px; }
.goal p { margin: 0; }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr; gap: 28px; } }

.arch-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.arch { display: block; width: 100%; min-width: 860px; height: auto; font-family: var(--sans); }
.scroll-hint { display: none; color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }
@media (max-width: 900px) { .scroll-hint { display: block; } }
.d-panel { fill: var(--track); }
.d-panel-l { fill: var(--muted); font-size: 11px; font-weight: 600; }
.d-box rect { fill: #fff; stroke: #9AA5B4; stroke-width: 1.2; }
.d-box.d-key rect { stroke: var(--accent); stroke-width: 2.2; }
.d-t { font-size: 12.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.d-s { font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.d-line.d-same { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 4; }
.d-line.d-dash { stroke: var(--muted); stroke-dasharray: 4 4; }
.d-head { fill: var(--ink); }
.d-head-acc { fill: var(--accent); }
.d-l { font-size: 10.5px; fill: var(--ink); }
.d-l.d-acc { fill: var(--accent); font-weight: 700; }

.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.shot img { display: block; width: 100%; max-width: 780px; height: auto; margin: 0 auto; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.choices li { border-top: 1px solid var(--line); padding-top: 16px; }
.choices p { margin: 0; }
@media (max-width: 860px) { .choices { grid-template-columns: 1fr; gap: 20px; } }
.back { white-space: nowrap; }
@media (max-width: 480px) { body[data-page] .brand { display: none; } body[data-page] .back { margin-left: 0; } body[data-page] .lang { margin-left: auto; } }

/* ---------- case study page ---------- */
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 6px; }
.goals.scope { margin-top: 40px; }
.goal h4 { margin: 0 0 8px; font-size: 0.95rem; }
.scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope-cols .muted { color: var(--muted); }
@media (max-width: 560px) { .scope-cols { grid-template-columns: 1fr; } }

.ap { position: relative; margin-top: 28px; }
.ap-trk { position: absolute; left: 11px; width: 2px; background: var(--line); border-radius: 2px; }
.ap-fil { width: 2px; height: 0; background: var(--accent); border-radius: 2px; }
.approach { list-style: none; margin: 0; padding: 0; }
.ap-row { position: relative; display: grid; grid-template-columns: 24px 190px minmax(0, 1fr) auto; grid-template-areas: "dot stat t go" "dot stat p go"; gap: 0 28px; align-items: start; padding-bottom: 40px; }
.ap-dot { grid-area: dot; } .ap-t { grid-area: t; } .ap-stat { grid-area: stat; } .ap-p { grid-area: p; } .ap-go { grid-area: go; }
.ap-row:last-child { padding-bottom: 0; }
.ap.live .ap-row { opacity: .42; transition: opacity .35s var(--ease); }
.ap.live .ap-row.on { opacity: 1; }
.ap-dot { width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; border: 2px solid #C9CED6; background: var(--bg); color: var(--muted); font-size: .78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: background .3s, border-color .3s, color .3s; }
.ap-row.on .ap-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap-fig { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-fig small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.ap-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ap-cap { font-size: .84rem; line-height: 1.35; color: var(--muted); max-width: 17ch; }
.ap-t { margin: 0 0 6px; font-size: 1.3rem; }
.ap-p { margin: 0; color: var(--muted); max-width: 44ch; }
.ap-go { align-self: center; font-size: .92rem; font-weight: 600; color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(184, 5, 0, .35); white-space: nowrap; transition: border-color .2s; }
.ap-go:hover, .ap-go:focus-visible { border-color: var(--accent-2); }
@media (max-width: 860px) {
  .ap-row { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "dot t" "dot stat" "dot p" "dot go"; gap: 0 14px; padding-bottom: 28px; }
  .ap-t { margin: 0; font-size: 1.1rem; line-height: 24px; }
  .ap-stat { flex-direction: row; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
  .ap-fig { font-size: 1.6rem; }
  .ap-cap { max-width: none; }
  .ap-p { font-size: .95rem; }
  .ap-go { margin-top: 6px; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .ap.live .ap-row, .ap-dot { transition: none; } }

.bl-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
@media (max-width: 860px) { .bl-grid { grid-template-columns: 1fr; gap: 40px; } }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 150px 1fr 28px; gap: 12px; align-items: center; padding: 7px 0; font-size: 0.95rem; }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.sprint { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sprint th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.85rem; padding: 8px 10px; border-bottom: 1px solid var(--ink); }
.sprint td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sprint .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sprint .code-id { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; color: var(--accent); }
.sprint tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.reserve { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
@media (max-width: 600px) {
  .sprint, .sprint tbody, .sprint tfoot, .sprint tr, .sprint td { display: block; }
  .sprint thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sprint tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id pts" "ttl ttl" "role role"; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sprint tbody td { padding: 0; border: 0; }
  .sprint tbody td:nth-child(1) { grid-area: id; }
  .sprint tbody td:nth-child(2) { grid-area: ttl; font-weight: 600; line-height: 1.35; }
  .sprint tbody td:nth-child(3) { grid-area: role; font-size: 0.85rem; color: var(--muted); }
  .sprint tbody td:nth-child(4) { grid-area: pts; font-weight: 700; }
  .sprint tbody td:nth-child(4)::after { content: " pts"; font-weight: 500; color: var(--muted); }
  .sprint tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 2px solid var(--ink); }
  .sprint tfoot td { padding: 0; border: 0; }
}

.wf { margin: 0 0 48px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.wf:last-child { margin-bottom: 0; }
.wf img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wf a:hover img { border-color: var(--accent); }
.wf h3 { margin: 0 0 12px; }
.markers { margin: 0; padding: 0; list-style: none; counter-reset: mk; }
.markers li { counter-increment: mk; position: relative; padding-left: 34px; margin-bottom: 10px; }
.markers li::before { content: counter(mk); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .wf { grid-template-columns: 1fr; gap: 16px; } }

.gherkin { margin: 0; background: var(--console); color: var(--console-ink); border-radius: 12px; padding: 20px 0; overflow-x: auto; font-family: var(--mono); font-size: 0.88rem; line-height: 1.7; }
.gherkin .ln { display: block; padding: 0 22px; white-space: pre; }
.gherkin .sc { color: #fff; font-weight: 600; }
.gherkin .kw { color: var(--hit); font-weight: 600; }
.sprint-wrap { max-width: 820px; }
.more { padding-bottom: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ready .reveal, .ready .reveal .st, .ready .tiles.reveal > * { opacity: 1; transform: none; }
  .ready .reveal h2::after, .ready h2.reveal::after, .ready .reveal .timeline::before { transform: none; }
  .progress { display: none; }
  .method-art .m-prog { stroke-dashoffset: 0; } .method-art .m-node { fill: var(--accent); stroke: var(--accent); } .method-art .m-dot { display: none; }
  .hero-name .ln > span { transform: none; } .portrait img { clip-path: none; }
  .thread path { stroke-dashoffset: 0 !important; } .thread .node { opacity: 1; }
}
.phases, .principles { margin-top: 28px; }
.project-hero { padding-bottom: 24px; }

/* ---------- F1 project page ---------- */
.browser-frame { margin: 8px 0 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.bf-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.bf-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.bf-bar b { margin-left: 12px; font: 500 .8rem var(--sans); color: var(--muted); }
.browser-frame img { display: block; width: 100%; height: auto; }
.goals-3 { grid-template-columns: repeat(3, 1fr); }
.goal-n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.goals-3 .goal { border-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--sh-1); }
@media (max-width: 860px) { .goals-3 { grid-template-columns: 1fr; gap: 14px; } }
.gallery { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.shot-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.shot-card figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.shot-card figcaption span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.traits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.traits li { background: var(--surface); border-radius: 16px; padding: 20px 22px; border-left: 4px solid var(--accent); box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.traits li:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.traits li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.traits h3 { margin: 0 0 6px; font-size: 1.12rem; }
.traits p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .traits { grid-template-columns: 1fr; } }
.choices-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 40px; margin-top: 28px; }
@media (max-width: 700px) { .choices-4 { grid-template-columns: 1fr; } }
.tools { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: .9rem; box-shadow: var(--sh-1); }
.tools .tool { font-weight: 600; }
.tools .use { color: var(--muted); }

.tl-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; vertical-align: 2px; font: 700 .68rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); border: 1px solid var(--violet-line); padding: 2px 8px; border-radius: 999px; }
.tl-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* ---------- ce que j'apporte : 4 piliers ---------- */
.about-main { display: grid; gap: 22px; min-width: 0; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 18px; box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.pillar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pillar-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); transition: transform .35s var(--ease); }
.pillar:hover .pillar-ic { transform: rotate(-8deg) scale(1.06); }
.pillar-ic svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar-n { font: 600 .78rem var(--mono); color: var(--muted); }
.pillar h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -.01em; }
.pillar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pillar li { position: relative; padding-left: 14px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.pillar li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.pillar li strong { color: var(--ink); }
.pillar.is-ai .pillar-ic { background: var(--violet-soft); }
.pillar.is-ai .pillar-ic svg { stroke: var(--violet); }
.pillar.is-ai li::before { background: var(--violet); }
.about-body p { font-size: 1.02rem; color: var(--muted); margin: 0; }
.about-body p strong { color: var(--ink); }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- curseur « fil rouge » (ordinateur) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .pj-row, .has-cursor .fo-card, .has-cursor .tool-btn, .has-cursor .step { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; opacity: 0; transition: opacity .2s; }
.cursor-trail path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor-ring::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s; }
.cursor-ring.is-link::before { width: 28px; height: 28px; background: rgba(225, 6, 0, .08); }
.cursor-ring.is-down::before { width: 9px; height: 9px; }
.cursor-on .cursor-ring, .cursor-on .cursor-trail { opacity: 1; }
/* piliers : transition douce pendant la mise en place */
.pillar { will-change: transform; }

/* ===== Wireframes : dossier d'archives ===== */
/* Éventail : trois écrans sortent du dossier, plus larges que lui. L'espace au-dessus est réservé (--r) pour ne jamais recouvrir le texte. */
.afd { --fw: 425px; --pw: 350px; --ph: 255px; --ct: 39px; --sh: 234px; --sp: 259px; --r: 175px; --hid: 71px; display: flex; flex-direction: column; align-items: center; }
/* écran moyen : l'éventail garde sa taille d'origine pour ne pas déborder */
@media (min-width: 601px) and (max-width: 1000px) { .afd { --fw: 340px; --pw: 280px; --ph: 204px; --ct: 31px; --sh: 187px; --sp: 207px; --r: 140px; --hid: 57px; } }
.afd-stage { position: relative; width: 100%; height: calc(var(--r) + var(--sh)); margin-top: 8px; }
.afd-shell { position: absolute; left: 50%; bottom: 0; width: var(--fw); height: var(--sh); margin-left: calc(var(--fw) / -2); container-type: inline-size; }
.afd-back { position: absolute; inset: 0; background: #2A211C; border-radius: 3px 7px 7px 7px; box-shadow: 0 22px 40px -18px rgba(14, 17, 22, .5); }
.afd-back::before { content: ""; position: absolute; left: 0; top: -9px; width: 22cqw; height: 6cqw; background: #2A211C; border-radius: 5px 10px 0 0; }
.afd-print { position: absolute; left: calc(50% - var(--pw) / 2); top: calc(var(--ct) - 12px); width: var(--pw); height: var(--ph); box-sizing: border-box; padding: 6px; display: flex; flex-direction: column; gap: 5px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 2px 10px rgba(14, 17, 22, .22); cursor: default; pointer-events: none; z-index: calc(var(--i) + 1); transform-origin: 50% 100%;
  transform: translateY(calc(var(--sh) - var(--ph) - var(--ct) + 8px)) rotate(calc((var(--i) - 1) * 1.2deg)); transition: transform .48s var(--ease), box-shadow .25s; }
.afd-pt { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afd-pi { flex: 1; min-height: 0; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.afd-pi img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.afd[data-open="true"] .afd-print { pointer-events: auto; cursor: pointer; --ty: calc(var(--hid) - var(--ph) + 6px + (var(--i) - 1) * (var(--i) - 1) * 6px);
  transform: translate(calc((var(--i) - 1) * var(--sp)), var(--ty)) rotate(calc((var(--i) - 1) * 8deg)); }
.afd[data-open="true"] .afd-print:hover, .afd[data-open="true"] .afd-print:focus-visible { transform: translate(calc((var(--i) - 1) * var(--sp)), calc(var(--ty) - 10px)) rotate(calc((var(--i) - 1) * 8deg)); box-shadow: 0 10px 26px rgba(14, 17, 22, .3); outline: 2px solid var(--accent); outline-offset: 2px; }
.afd-cover { position: absolute; inset: var(--ct) 0 0; z-index: 8; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; text-align: left; padding: 4cqw; cursor: pointer; color: #fff; border: 0; border-top: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px 4px 12px 12px; background: linear-gradient(135deg, #4A372D, #3A2A22); transform-origin: 50% 100%; transition: transform .42s var(--ease); }
.afd[data-open="true"] .afd-cover { transform: perspective(330cqw) rotateX(-38deg); }
.afd-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.afd-label { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.afd-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: .08em; }
.afd-hint { font-size: 12px; color: #9AA3B2; }
dialog.wfbox { width: min(1080px, calc(100vw - 32px)); }
.wfbox .wf { margin: 0; padding: 28px; gap: 28px; animation: afd-in .4s var(--ease); }
.wfbox .wf h3 { padding-right: 44px; font-size: 1.25rem; }
.wf-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.wf-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.wf-nav button:hover, .wf-nav button:focus-visible { background: var(--accent); border-color: var(--accent); }
.wf-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wf-nav button:hover svg, .wf-nav button:focus-visible svg { stroke: #fff; }
.wf-count { font: 600 .85rem var(--mono); color: var(--muted); min-width: 4ch; text-align: center; }
@keyframes afd-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .wfbox .wf { padding: 56px 18px 24px; } }
@media (max-width: 600px) {
  dialog.wfbox { width: 100vw; }
  .afd { --fw: 210px; --pw: 140px; --ph: 117px; --ct: 19px; --sh: 116px; --sp: 98px; --r: 90px; --hid: 33px; }
  .afd-pt { font-size: 11px; }
  .afd-label { font-size: 11px; }
  .afd-hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .afd-print, .afd-cover { transition: none; } .wfbox .wf { animation: none; } }

/* modale projet : le curseur personnalisé passe sous la modale, on rend le pointeur normal */
html.has-cursor dialog.modal[open], html.has-cursor dialog.modal[open] * { cursor: auto !important; }
html.has-cursor dialog.modal[open] a, html.has-cursor dialog.modal[open] button { cursor: pointer !important; }

/* ---------- méthode : encart vers l'exemple concret ---------- */
.example-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: 22px;
  background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--sh-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.example-link:hover { transform: translateY(-3px); }
.example-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.example-txt { display: grid; gap: 6px; min-width: 0; }
.example-txt b { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.example-txt span { color: #CDB6A2; line-height: 1.55; max-width: 60ch; }
.example-cta { display: inline-flex; align-items: center; gap: 14px; flex: none; font-weight: 700; }
.example-link .pj-arrow { background: #fff; border-color: #fff; }
.example-link:hover .pj-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.example-link:hover .pj-arrow::before { background: #fff; } .example-link:hover .pj-arrow::after { border-color: #fff; }
@media (max-width: 700px) { .example-link { flex-direction: column; align-items: flex-start; padding: 20px; } }

/* ---------- démo : contexte, preuves, renvoi vers la méthode ---------- */
.demo-context { margin: 0; max-width: 68ch; font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.demo-proves { max-width: 68ch; margin: 0 0 28px; }
.demo-proves li { font-size: 1.02rem; line-height: 1.6; }
.demo-method { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.demo-method:hover .pj-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.demo-method:hover .pj-arrow::before { background: #fff; } .demo-method:hover .pj-arrow::after { border-color: #fff; }
.demo-method:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }

/* ---------- méthode : déroulé d'un projet, une phase ouverte à la fois ---------- */
.st-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 820px; display: grid; gap: 10px; }
.st-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.st-item.is-active { border-color: var(--accent); box-shadow: var(--sh-2); }
.st-head { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.st-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 14px; }
.st-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: .88rem; color: var(--muted); transition: background .25s, border-color .25s, color .25s; }
.st-item.is-active .st-dot { border-color: var(--accent); color: var(--accent); }
.st-item.is-done .st-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-dot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-dot svg path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.st-item.is-done .st-dot svg path { animation: st-draw .35s .05s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
.st-titles { display: grid; gap: 2px; }
.st-name { font: 700 1.2rem var(--display); }
.st-sub { font-size: .9rem; color: var(--muted); }
.st-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.16, 1, .3, 1); }
.st-item.is-active .st-body { grid-template-rows: 1fr; }
.st-body > div { overflow: hidden; display: grid; gap: 16px; padding: 0 18px 0 64px; }
.st-item.is-active .st-body > div { padding-bottom: 20px; }
.st-inner { margin: 0; display: grid; gap: 4px 0; }
.st-inner dt { font-size: .8rem; font-weight: 700; color: var(--accent); margin-top: 8px; }
.st-inner dt:first-child { margin-top: 0; }
.st-inner dd { margin: 0; line-height: 1.55; }
.st-next { justify-self: start; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font: 700 .92rem var(--sans); cursor: pointer; transition: background .2s; }
.st-next:hover { background: var(--accent-2); }
.st-next:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 600px) { .st-body > div { padding-left: 18px; } }
.st-close { background: var(--ink); }
.st-close:hover { background: var(--accent); }
.st-closed { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; max-width: 820px; margin: 14px 0 0; padding: 14px 18px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); font-weight: 600; }
.st-closed[hidden] { display: none; }
.st-closed svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-reopen { margin-left: auto; min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 600 .88rem var(--sans); text-decoration: underline; cursor: pointer; }
.st-reopen:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .st-body, .st-item, .st-dot { transition: none; }
  .st-dot svg path { stroke-dashoffset: 0; animation: none !important; }
}

/* ---------- méthode : principes en grand, le mot-clé mis en avant ---------- */
.principles li { font: 600 clamp(1.25rem, 3vw, 1.8rem)/1.3 var(--display); letter-spacing: -.015em; color: var(--muted); }
.principles mark { background: none; color: var(--ink); box-shadow: inset 0 -.16em 0 rgba(225, 6, 0, .2); padding: 0 .04em; }

/* ---------- démo : l'essentiel d'abord, puis l'enquête, puis la suite ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.demo-hero { padding-bottom: 8px; }
.demo-hero .pitch { max-width: 68ch; }
.demo-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 8px 0 0; }
.demo-summary div { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.demo-summary dt { font-weight: 700; color: var(--accent); font-size: .9rem; margin-bottom: 4px; }
.demo-summary dd { margin: 0; line-height: 1.55; }
.demo-investigation { padding-top: 48px; }
.demo-investigation .lead { margin-bottom: 22px; }
.demo-end { padding-top: 24px; }
@media (max-width: 760px) { .demo-summary { grid-template-columns: 1fr; gap: 16px; } .demo-investigation { padding-top: 36px; } }
@media (max-width: 600px) { .log.clickable { grid-template-columns: auto auto 1fr; } .log .go { grid-column: 1 / -1; justify-self: start; margin-top: 4px; } }

/* démo, 2e passage : preuves dans le résumé, indice signalé, focus et mobile */
.demo-summary .key dd { font-weight: 600; }
.demo-summary .proof { display: block; margin-top: 10px; }
.demo-summary code.proof { display: table; font: .8rem var(--mono); color: #FFE4A3; background: var(--console); border-radius: 6px; padding: 4px 9px; }
.demo-summary q.proof { font-style: italic; color: var(--muted); }
.to-client { display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; padding: 0; border: 0; background: none; font: 700 .92rem var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.to-client:hover { color: var(--accent-2); }
.to-client:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.log.noted { background: rgba(224, 162, 59, .1); box-shadow: inset 3px 0 0 var(--hit); }
.log .tag { display: inline-block; margin-left: 10px; font: 700 .7rem var(--sans); color: var(--console); background: var(--hit); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.gloss { margin: 14px 0 0; color: var(--console-dim); font-size: .88rem; max-width: 60em; }
.log.clickable .t, .log.clickable .s { color: #D8C2AD; }
.step-count { color: var(--console-dim); font-size: .82rem; font-variant-numeric: tabular-nums; }
.console .btn.primary:focus-visible { outline-color: var(--console); }
.demo-investigation { padding-bottom: 40px; }
.demo-investigation + .section { padding-top: 40px; }
@media (max-width: 900px) { .demo-method .pj-arrow { display: block; } }
@media (max-width: 600px) {
  /* les boutons Précédent / Suivant restent sous le pouce, même sous un long bloc de code */
  .console { overflow: clip; }
  .console-foot { position: sticky; bottom: 0; z-index: 2; }
  .step-count { display: none; }
}
html[lang="fr"] .demo-summary q.proof { quotes: "«\00a0" "\00a0»"; }

/* démo, 3e passage : console stable, états d'étape, fin d'enquête, zones tactiles */
.steps button { transition: color .15s, background-color .15s; }
.steps button:hover { background: rgba(243, 230, 216, .05); }
@media (max-width: 700px) { .steps { grid-auto-rows: 1fr; } }
.code, .logs { scrollbar-width: thin; scrollbar-color: #5C463A transparent; }
.console ::selection { background: rgba(224, 162, 59, .35); color: #fff; }
/* requête et réponse côte à côte : la console garde à peu près la même hauteur d'une étape à l'autre */
.exchange > div { min-width: 0; }
@media (min-width: 900px) {
  .exchange { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .exchange .code { margin-bottom: 14px; }
  .exchange .flag { margin: 0; }
  .console-body { min-height: 388px; }
}
/* changement d'étape : fondu court, sans état de départ invisible si l'animation ne joue pas */
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }
.console-body.swap > * { animation: step-in .22s var(--ease); }
/* fin d'enquête : « Recommencer » devient une action discrète, le bouton principal mène à la suite */
.again { margin: 22px 0 0; }
.again-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: 600 .9rem var(--sans); color: var(--console-dim); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color .15s; }
.again-btn:hover { color: var(--console-ink); }
#demo-proves-title { scroll-margin-top: 96px; }
#demo-proves-title:focus { outline: none; }
/* enquête vivante : logs qui s'écrivent, ligne en erreur qui pulse, constats qui se cochent */
@keyframes log-in { from { opacity: 0; transform: translateX(-8px); } }
.logs .log-item, .logs > .log { animation: log-in .32s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes err-pulse {
  0%, 100% { box-shadow: inset 3px 0 0 #F29A80, 0 0 0 0 rgba(242, 154, 128, 0); }
  50% { box-shadow: inset 3px 0 0 #F29A80, 0 0 0 4px rgba(242, 154, 128, .35); }
}
.log.clickable { box-shadow: inset 3px 0 0 #F29A80; animation: err-pulse 1.6s ease-in-out 1s 3; }
.log.clickable:hover, .log.clickable:focus-visible { animation: none; }
/* diagnostic : chaque constat reçoit une coche à son tour */
@keyframes diag-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes tick-pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
.diag { list-style: none; padding-left: 0; }
.diag li { position: relative; padding-left: 34px; animation: diag-in .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 450ms + 150ms); }
.diag li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok, #6FB38A) no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%233A2A22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: tick-pop .3s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 450ms + 400ms);
}
@media (prefers-reduced-motion: reduce) {
  .logs .log-item, .logs > .log, .log.clickable, .diag li, .diag li::before { animation: none; }
}
/* compétences : cartes dépliables, cochées quand l'étape correspondante a été vue */
.demo-proves { list-style: none; padding: 0; display: grid; gap: 10px; }
.proves-count { margin: 0 0 12px; font: 600 .85rem var(--sans); color: var(--muted, #6b5b50); font-variant-numeric: tabular-nums; }
.pcard { border: 1px solid rgba(58, 42, 34, .18); border-radius: 12px; background: rgba(255, 255, 255, .5); transition: border-color .2s, background-color .2s; }
.pcard.done { border-color: rgba(58, 42, 34, .3); }
.pcard-head { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 16px; border: 0; background: none; text-align: left; font: inherit; font-size: 1.02rem; line-height: 1.5; color: inherit; cursor: pointer; border-radius: 12px; }
.pcard-head:hover { background: rgba(58, 42, 34, .04); }
.pcheck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(58, 42, 34, .3); background: no-repeat center / 13px; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.pcard.done .pcheck {
  border-color: var(--ok, #6FB38A); background-color: var(--ok, #6FB38A);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%233A2A22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: tick-pop .3s var(--ease);
}
.ptxt { flex: 1; }
.pchev { flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .2s var(--ease); margin-right: 4px; }
.pcard-head[aria-expanded="true"] .pchev { transform: rotate(-135deg); }
.pcard-body { padding: 0 16px 16px 52px; animation: diag-in .22s var(--ease); }
.pcard-body p { margin: 0 0 8px; font-size: .95rem; line-height: 1.55; }
.pcard-see { min-height: 44px; padding: 0; border: 0; background: none; font: 600 .9rem var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pcard :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pcard.done .pcheck, .pcard-body, .pchev { animation: none; transition: none; } }
/* barre du haut : zones tactiles de 44 px, sans changer l'aspect */
.back { display: inline-flex; align-items: center; min-height: 44px; }
.lang button { position: relative; }
.lang button::after { content: ""; position: absolute; inset: -10px -1px; }
