/* ============================================================
   PAGE « Exemples de workflows » (essai du 9 nov. 2026)
   Se charge après style.css et atelikia.css. Ne touche à aucune autre page.
   4 types de briques, toujours les mêmes couleurs :
   déclencheur (ivoire, contour) · IA (bleu Atelikia) · vos outils (grège) · validation humaine (doré)
   ============================================================ */

.wfp { --wf-trig: #F2EDE4; --wf-ia: #00A2E9; --wf-tool: #B8B2A7; --wf-hum: #C9A96E; }

/* ---- En-tête de page ---- */
.wfp-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(150px, 20vh, 200px) var(--pad) clamp(40px, 6vh, 70px); }
.wfp-eyebrow { font-size: clamp(14px, 1.1vw, 16px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.wfp-head h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.02em; color: var(--fg); margin: 0; max-width: 16ch; }
.wfp-head h1 em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }
.wfp-intro { font-size: clamp(17px, 1.35vw, 20px); color: var(--fg-soft); max-width: 60ch; margin: 28px 0 0; }

/* ---- Légende des briques ---- */
.wfp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.wfp-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg-soft); }
.wfp-legend b { display: block; font-weight: 600; color: var(--fg); }
.wfp-legend small { display: block; font-size: 13px; color: var(--muted); }
.wfp-swatch { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid currentColor; }
.wfp-swatch--trig { color: var(--wf-trig); background: transparent; }
.wfp-swatch--ia   { color: var(--wf-ia);   background: rgba(0, 162, 233, 0.22); }
.wfp-swatch--tool { color: var(--wf-tool); background: rgba(184, 178, 167, 0.16); }
.wfp-swatch--hum  { color: var(--wf-hum);  background: rgba(201, 169, 110, 0.24); }

/* ---- Sommaire ---- */
.wfp-toc { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(30px, 5vh, 50px); display: flex; flex-wrap: wrap; gap: 10px; }
.wfp-toc a { font-size: 14px; color: var(--fg-soft); text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.wfp-toc a:hover { color: var(--fg); border-color: var(--accent); }

/* ---- Un workflow ---- */
.wf { max-width: var(--maxw); margin: 0 auto; padding: clamp(50px, 8vh, 90px) var(--pad); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.wf__top { display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: baseline; }
.wf__num { font-size: clamp(34px, 3.6vw, 52px); font-weight: 300; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.wf__title { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.wf__pain { grid-column: 2; margin: 10px 0 0; font-size: clamp(16px, 1.2vw, 18px); color: var(--fg-soft); max-width: 62ch; }
.wf__pain strong { color: var(--fg); }

/* ---- La chaîne de briques ---- */
.wf__chain { list-style: none; margin: clamp(32px, 5vh, 48px) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 0; counter-reset: brick; }
.brick { position: relative; flex: 1 1 0; min-width: 150px; max-width: 220px; display: flex; align-items: stretch; }
.brick + .brick { padding-left: 30px; }
.brick + .brick::before { content: ""; position: absolute; left: 7px; top: 50%; width: 16px; height: 1px; background: var(--muted); opacity: .7; }
.brick + .brick::after { content: ""; position: absolute; left: 18px; top: calc(50% - 4px); width: 7px; height: 7px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); opacity: .7; }
.brick__card { flex: 1; border-radius: 10px; padding: 14px 16px 16px; border: 1px solid; background: var(--bg-3); }
.brick__type { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.brick__name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--fg); }
.brick__desc { display: block; font-size: 14px; line-height: 1.45; color: var(--fg-soft); margin-top: 4px; }

.brick--trig .brick__card { border-color: rgba(242, 237, 228, 0.55); border-style: dashed; background: transparent; }
.brick--trig .brick__type { color: var(--wf-trig); }
.brick--ia .brick__card   { border-color: rgba(0, 162, 233, 0.75); background: rgba(0, 162, 233, 0.10); }
.brick--ia .brick__type   { color: #4CC3F5; }
.brick--tool .brick__card { border-color: rgba(184, 178, 167, 0.45); background: rgba(184, 178, 167, 0.07); }
.brick--tool .brick__type { color: var(--wf-tool); }
.brick--hum .brick__card  { border-color: rgba(201, 169, 110, 0.85); background: rgba(201, 169, 110, 0.12); }
.brick--hum .brick__type  { color: var(--wf-hum); }

/* ---- Sous la chaîne ---- */
.wf__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin: clamp(28px, 4vh, 40px) 0 0; }
.wf__note { margin: 0; padding-left: 16px; border-left: 2px solid var(--line); font-size: 15.5px; color: var(--fg-soft); }
.wf__note b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; color: var(--muted); }
.wf__note--hum { border-left-color: var(--wf-hum); }
.wf__note--hum b { color: var(--wf-hum); }

/* ---- Apparition au défilement : les briques s'allument une à une ---- */
.js .wf__chain .brick { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .wf__chain.is-on .brick { opacity: 1; transform: none; }
.js .wf__chain.is-on .brick:nth-child(2) { transition-delay: .12s; }
.js .wf__chain.is-on .brick:nth-child(3) { transition-delay: .24s; }
.js .wf__chain.is-on .brick:nth-child(4) { transition-delay: .36s; }
.js .wf__chain.is-on .brick:nth-child(5) { transition-delay: .48s; }
.js .wf__chain.is-on .brick:nth-child(6) { transition-delay: .60s; }
@media (prefers-reduced-motion: reduce) {
  .js .wf__chain .brick { opacity: 1; transform: none; transition: none; }
}

/* ---- Mention et appel à l'action ---- */
.wfp-note { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wfp-note p { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); max-width: 80ch; }
.wfp-cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 130px) var(--pad); text-align: center; }
.wfp-cta h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.1; letter-spacing: -0.015em; color: var(--fg); margin: 0 auto; max-width: 20ch; }
.wfp-cta h2 em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }
.wfp-cta p { font-size: clamp(16px, 1.25vw, 19px); color: var(--fg-soft); max-width: 56ch; margin: 22px auto 34px; }
.wfp-cta small { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }

.wfp .footer__logo-static { height: 120px; width: auto; margin: 0 auto; display: block; }

/* ---- Tablette : 3 briques par ligne ---- */
@media (max-width: 1100px) {
  .brick { flex: 0 0 33.333%; max-width: none; }
  .brick:nth-child(3n+1) { padding-left: 0; }
  .brick:nth-child(3n+1)::before, .brick:nth-child(3n+1)::after { display: none; }
}

/* ---- Téléphone : briques empilées, flèche vers le bas ---- */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .wf__top { grid-template-columns: 1fr; }
  .wf__pain { grid-column: 1; }
  .wf__chain { flex-direction: column; gap: 0; }
  .brick, .brick:nth-child(3n+1) { flex: none; max-width: none; min-width: 0; padding-left: 0; }
  .brick + .brick { padding-top: 30px; padding-left: 0; }
  .brick:nth-child(3n+1)::before, .brick:nth-child(3n+1)::after { display: block; }
  .brick + .brick::before { left: 28px; top: 7px; width: 1px; height: 16px; }
  .brick + .brick::after { left: 25px; top: 15px; transform: rotate(135deg); }
  .wf__notes { grid-template-columns: 1fr; }
}

/* ============================================================
   Validé le 9 nov. 2026 : workflows racontés en histoires dessinées
   Robot bleu = l'IA · stickman doré = l'humain · traits ivoire = les objets
   ============================================================ */
.story__who { font-weight: 600; }
.story__who--ia { color: #4CC3F5; }
.story__who--hum { color: var(--accent); }

.story { list-style: none; margin: clamp(32px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; }
.story__scene { position: relative; display: flex; flex-direction: column; }
.story__scene + .story__scene::before { content: ""; position: absolute; left: -22px; top: 112px; width: 14px; height: 1px; background: var(--muted); opacity: .7; }
.story__scene + .story__scene::after { content: ""; position: absolute; left: -15px; top: 108.5px; width: 7px; height: 7px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); opacity: .7; }
.story__time { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.story__pic { display: flex; align-items: center; justify-content: center; height: 170px; border: 1px solid var(--line); border-radius: 10px; background: rgba(242, 237, 228, 0.02); }
.story__pic svg { width: 86%; max-width: 170px; height: auto; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story__pic .ink { stroke: var(--fg-soft); }
.story__pic .rb  { stroke: #4CC3F5; }
.story__pic .hm  { stroke: var(--accent); }
.story__pic .eye { fill: #4CC3F5; stroke: none; }
.story__pic .dash { stroke-dasharray: 3 6; opacity: .6; }
.story__text { flex: 1; margin: 14px 0 14px; font-size: 15.5px; line-height: 1.5; color: var(--fg-soft); }
.story .brick { padding: 0; min-width: 0; max-width: none; flex: none; }
.story .brick::before, .story .brick::after { display: none; }
.story__mention { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Animation : chaque scène se dessine trait par trait, de gauche à droite, puis sa brique s'allume */
.js .story .story__pic svg :is(path, rect, circle):not(.eye):not(.dash) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .story .eye, .js .story .dash, .js .story .brick, .js .story .story__text { opacity: 0; }
.js .story .brick { transform: translateY(8px); }
.js .story.is-on .story__pic svg :is(path, rect, circle):not(.eye):not(.dash) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .story.is-on .eye, .js .story.is-on .dash, .js .story.is-on .story__text { opacity: 1; transition: opacity .5s var(--ease); transition-delay: calc(var(--d, 0s) + .6s); }
.js .story.is-on .brick { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--d, 0s) + .9s); }
.story__scene:nth-child(2) { --d: .55s; }
.story__scene:nth-child(3) { --d: 1.1s; }
.story__scene:nth-child(4) { --d: 1.65s; }
.story__scene:nth-child(5) { --d: 2.2s; }
@media (prefers-reduced-motion: reduce) {
  .js .story .story__pic svg :is(path, rect, circle) { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .story .eye, .js .story .dash, .js .story .brick, .js .story .story__text { opacity: 1; transform: none; transition: none; }
}

/* Écrans moyens et téléphone : les scènes défilent du doigt, une scène et demie visible */
@media (max-width: 1100px) {
  .story { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch; }
  .story__scene { flex: 0 0 min(260px, 72%); scroll-snap-align: start; }
}

/* 9 nov. 2026 (demande de Lydie) : les briques passent en tête de chaque scène, reliées par des flèches d'avancement */
.story .brick { order: -1; display: flex; min-height: var(--brick-h, 150px); margin-bottom: 20px; }
.story .brick__card { display: flex; flex-direction: column; }
.story__scene + .story__scene::before { top: calc(var(--brick-h, 150px) / 2); left: -26px; width: 20px; height: 2px; background: var(--fg-soft); opacity: 1; }
.story__scene + .story__scene::after { top: calc(var(--brick-h, 150px) / 2 - 4px); left: -15px; width: 8px; height: 8px; border-top: 2px solid var(--fg-soft); border-right: 2px solid var(--fg-soft); opacity: 1; }
/* La brique s'allume d'abord, puis la scène se dessine en dessous */
.js .story.is-on .brick { transition-delay: var(--d, 0s); }
.js .story.is-on .story__pic svg :is(path, rect, circle):not(.eye):not(.dash) { transition-delay: calc(var(--d, 0s) + .3s); }
/* Deux titres : « Le workflow » au-dessus des briques, « Le scénario » au-dessus des dessins, avec plus d'air entre les deux */
.story { position: relative; padding-top: 38px; }
.story::before, .story__scene:first-child::before { position: absolute; left: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.story::before { content: "Le workflow"; top: 0; }
.story .brick { margin-bottom: 92px; }
.story__scene:first-child::before { content: "Le scénario"; top: calc(var(--brick-h, 150px) + 34px); }
.story__scene + .story__scene { --rule: 1; }
.story__scene::marker { content: none; }
/* « Le scénario » plus loin des briques, plus près des heures */
.story .brick { margin-bottom: 104px; }
.story__scene:first-child::before { top: calc(var(--brick-h, 150px) + 66px); }
/* Titres sans « Le », un peu plus grands */
.story::before, .story__scene:first-child::before { font-size: 16px; }
.story { padding-top: 42px; }
.story::before { content: "Workflow"; }
.story__scene:first-child::before { content: "Scénario"; top: calc(var(--brick-h, 150px) + 64px); }
/* 9 nov. 2026 (demande de Lydie) : le scénario passe avant le workflow. Les briques reviennent en bas de chaque scène, alignées sur une même ligne. */
.story .brick { order: 0; margin-bottom: 0; margin-top: 100px; }
.story::before { content: "Scénario"; }
.story__scene:first-child::before { content: "Workflow"; top: auto; bottom: calc(var(--brick-h, 150px) + 16px); }
.story__scene + .story__scene::before { top: auto; bottom: calc(var(--brick-h, 150px) / 2 - 1px); }
.story__scene + .story__scene::after { top: auto; bottom: calc(var(--brick-h, 150px) / 2 - 4px); }
/* La scène se dessine d'abord, puis sa brique s'allume */
.js .story.is-on .story__pic svg :is(path, rect, circle):not(.eye):not(.dash) { transition-delay: var(--d, 0s); }
.js .story.is-on .brick { transition-delay: calc(var(--d, 0s) + .9s); }
/* Écart resserré entre le récit et la ligne « Workflow » */
.story .brick { margin-top: 72px; }
.story__scene:first-child::before { bottom: calc(var(--brick-h, 150px) + 14px); }
/* 9 nov. 2026 : la légende des briques quitte l'en-tête et se place au-dessus de chaque scénario */
.wfp-legend--wf { margin: clamp(26px, 4vh, 36px) 0 0; padding: 0; border-top: 0; }
.wfp-legend--wf + .story { margin-top: clamp(30px, 4.5vh, 44px); }
/* 9 nov. 2026 : légende compacte qui reste collée sous le menu pendant la lecture des workflows */
.wfp-sticky { position: fixed; left: 0; right: 0; top: 89px; z-index: 140; background: rgba(7, 7, 8, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.wfp-sticky.is-shown { transform: none; opacity: 1; }
.wfp-sticky__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--pad); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; }
.wfp-sticky__item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--fg-soft); white-space: nowrap; }
.wfp-sticky .wfp-swatch { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .wfp-sticky__inner { gap: 6px 16px; padding: 8px 16px; }
  .wfp-sticky__item { font-size: 12px; gap: 6px; }
  .wfp-sticky .wfp-swatch { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) { .wfp-sticky { transition: none; } }
.wfp-sticky .wfp-s { display: none; }
@media (max-width: 720px) {
  .wfp-sticky .wfp-l { display: none; }
  .wfp-sticky .wfp-s { display: inline; }
  .wfp-sticky__inner { flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
}
/* 9 nov. 2026 : en haut de page, le sommaire passe avant la légende */
.wfp-toc { padding-bottom: clamp(22px, 3.5vh, 34px); }
.wfp-legend-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(30px, 5vh, 50px); }
.wfp-legend-wrap .wfp-legend { margin-top: 0; }
/* 9 nov. 2026 (demande de Lydie) : couleurs plus voyantes et bien distinctes pour Déclencheur (corail) et Vos outils (vert).
   IA reste bleu Atelikia, Validation humaine reste dorée. */
.wfp { --wf-trig: #FF7A59; --wf-tool: #3DD68C; }
.wfp-swatch--trig { color: var(--wf-trig); background: rgba(255, 122, 89, 0.24); }
.wfp-swatch--tool { color: var(--wf-tool); background: rgba(61, 214, 140, 0.22); }
.brick--trig .brick__card { border-color: rgba(255, 122, 89, 0.8); border-style: solid; background: rgba(255, 122, 89, 0.10); }
.brick--trig .brick__type { color: #FF8F73; }
.brick--tool .brick__card { border-color: rgba(61, 214, 140, 0.75); background: rgba(61, 214, 140, 0.09); }
.brick--tool .brick__type { color: #5FE0A1; }
/* 9 nov. 2026 : « le robot = l'IA, le personnage doré = vous » rejoint la légende (en haut de page et dans la barre sticky) */
.wfp-ico { width: 18px; height: 18px; flex: none; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wfp-ico--ia { stroke: #4CC3F5; }
.wfp-ico--ia .f { fill: #4CC3F5; stroke: none; }
.wfp-ico--hum { stroke: var(--accent); }
.wfp-cast { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 22px 0 0; font-size: 15.5px; color: var(--fg-soft); }
.wfp-cast__intro { font-weight: 600; color: var(--fg); }
.wfp-cast__item { display: inline-flex; align-items: center; gap: 9px; }
.wfp-cast__item .wfp-ico { width: 22px; height: 22px; }
.wfp-sticky__sep { width: 1px; height: 16px; background: var(--line); align-self: center; }
.wfp-sticky__cast { font-weight: 500; }
@media (max-width: 1100px) { .wfp-sticky__sep, .wfp-sticky__cast { display: none; } }
/* 9 nov. 2026 (demande de Lydie) : la barre sticky reprend la légende en taille réelle (descriptions et personnages compris).
   Sur téléphone, on garde la version compacte sur une ligne. */
.wfp-sticky__inner { display: block; padding: 14px var(--pad) 16px; }
.wfp-sticky__full .wfp-legend { margin: 0; padding: 0; border-top: 0; }
.wfp-sticky__full .wfp-swatch { width: 16px; height: 16px; }
.wfp-sticky__full .wfp-cast { margin-top: 12px; }
.wfp-sticky__compact { display: none; }
.wf { scroll-margin-top: 230px; }
@media (max-width: 720px) {
  .wfp-sticky__full { display: none; }
  .wfp-sticky__compact { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
  .wfp-sticky__inner { padding: 8px 16px; }
  .wf { scroll-margin-top: 120px; }
}
/* 9 nov. 2026 (demande de Lydie) : chaque scène reprend la couleur de sa brique
   (cadre teinté, heure colorée ; objets en corail pour un déclencheur, en vert pour vos outils) */
.story__scene--trig { --sc: 255, 122, 89; }
.story__scene--ia   { --sc: 0, 162, 233; }
.story__scene--tool { --sc: 61, 214, 140; }
.story__scene--hum  { --sc: 201, 169, 110; }
.story__scene[class*="--"] .story__pic { border-color: rgba(var(--sc), 0.55); background: rgba(var(--sc), 0.06); }
.story__scene--trig .story__time { color: #FF8F73; }
.story__scene--ia .story__time   { color: #4CC3F5; }
.story__scene--tool .story__time { color: #5FE0A1; }
.story__scene--hum .story__time  { color: var(--accent); }
.story__scene--trig .story__pic .ink { stroke: #FF8F73; }
.story__scene--tool .story__pic .ink { stroke: #5FE0A1; }
/* 9 nov. 2026 (demande de Lydie) : la validation humaine passe en jaune (briques, légende, scènes, stickman, encadré « Ce qui reste humain »).
   Le doré reste réservé aux titres et à la marque. */
.wfp { --wf-hum: #FFD23F; }
.wfp-swatch--hum { color: var(--wf-hum); background: rgba(255, 210, 63, 0.22); }
.brick--hum .brick__card { border-color: rgba(255, 210, 63, 0.8); background: rgba(255, 210, 63, 0.09); }
.brick--hum .brick__type { color: #FFDB66; }
.story__scene--hum { --sc: 255, 210, 63; }
.story__scene--hum .story__time { color: #FFDB66; }
.story__pic .hm { stroke: var(--wf-hum); }
/* 9 nov. 2026 (demande de Lydie) : tout le dessin d'une scène prend la couleur de sa case (objets, robot, personnage) */
.story__scene--trig { --sc-ink: #FF8F73; }
.story__scene--ia   { --sc-ink: #4CC3F5; }
.story__scene--tool { --sc-ink: #5FE0A1; }
.story__scene--hum  { --sc-ink: #FFD23F; }
.story__scene .story__pic :is(.ink, .rb, .hm) { stroke: var(--sc-ink, var(--fg-soft)); }
.story__scene .story__pic .eye { fill: var(--sc-ink, #4CC3F5); }
/* 9 nov. 2026 (demande de Lydie) : « Ce que ça change » ressort (c'est le bénéfice client) : encadré doré, texte plus grand et plus clair */
.wf__notes { align-items: stretch; }
.wf__note:not(.wf__note--hum) { padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(201, 169, 110, 0.09); font-size: clamp(17px, 1.3vw, 19px); font-weight: 600; line-height: 1.45; color: var(--fg); }
.wf__note:not(.wf__note--hum) b { color: var(--accent); font-size: 13px; }
/* 9 nov. 2026 (demande de Lydie, « trop serré ») : plus d'air.
   Titre des workflows : lettres moins serrées.
   « Workflow » plus loin des briques (14 → 26 px), sans rapprocher le récit (briques décalées d'autant).
   Mention « Scène type » plus loin des briques (18 → 32 px), et « Ce qui reste humain » plus loin de la mention. */
.wf__title { letter-spacing: 0.005em; }
.story .brick { margin-top: 84px; }
.story__scene:first-child::before { bottom: calc(var(--brick-h, 150px) + 26px); }
.story__mention { margin-top: 32px; }
.wf__notes { margin-top: clamp(48px, 7vh, 64px); }
/* 9 nov. 2026 (demande de Lydie) : la légende porte son titre « Légende ».
   En haut de page : titre au-dessus des quatre briques. Dans la barre collante : titre à gauche, sur la même ligne, pour ne pas l'épaissir. */
.wfp-legend__title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.wfp-legend-wrap .wfp-legend__title { padding-top: 22px; border-top: 1px solid var(--line); }
.wfp-legend-wrap .wfp-legend { margin-top: 16px; padding-top: 0; border-top: 0; }
@media (min-width: 721px) {
  .wfp-sticky__full { display: flex; align-items: center; gap: 12px 34px; }
  .wfp-sticky__full .wfp-legend__title { flex: none; }
}
/* 9 nov. 2026 (demande de Lydie, « plus d'espace entre les sections ») : chaque workflow respire davantage
   (environ 145 → 270 px entre la fin d'un workflow et le titre du suivant sur ordinateur, 136 → 180 px sur téléphone) */
.wf { padding-top: clamp(96px, 15vh, 140px); padding-bottom: clamp(96px, 15vh, 140px); }
@media (max-width: 720px) { .wf { padding-top: 90px; padding-bottom: 90px; } }
/* 9 nov. 2026 (demande de Lydie) : pied de page, le slogan ne colle plus au logo (0 → 36 px, proche de la page d'accueil) */
.wfp .footer__logo-static { margin-bottom: 36px; }
@media (max-width: 720px) { .wfp .footer__logo-static { margin-bottom: 28px; } }
/* 9 nov. 2026 (demande de Lydie) : un peu plus d'espace entre « Scène type… » et « Ce qui reste humain » (≈ 60 → 90 px) */
.wf__notes { margin-top: clamp(76px, 10vh, 92px); }
/* 9 nov. 2026 (demande de Lydie) : entre les briques, une vraie flèche de process (flèche pleine) au lieu du trait fin + chevron.
   Centrée dans l'espace de 30 px entre deux briques, à mi-hauteur des briques. */
.story__scene + .story__scene::before { left: -27px; width: 24px; height: 20px; bottom: calc(var(--brick-h, 150px) / 2 - 10px);
  background: var(--fg-soft); opacity: .95; border: 0; transform: none;
  clip-path: polygon(0 30%, 52% 30%, 52% 0, 100% 50%, 52% 100%, 52% 70%, 0 70%); }
.story__scene + .story__scene::after { display: none; }

/* 9 nov. 2026 (demande de Lydie) : sous-titre « Voici sept exemples » juste au-dessus des onglets,
   et onglets du sommaire sur fond doré (même doré et même survol que le bouton « pré-audit »). */
.wfp-toc-title { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 18px; font-size: clamp(20px, 1.7vw, 25px); font-weight: 600; line-height: 1.3; color: var(--fg); }
.wfp-toc a { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .wfp-toc a:hover { background: #dcc08a; border-color: #dcc08a; color: var(--ink); transform: translateY(-1px); }
}
.wfp-toc a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (max-width: 720px) { .wfp-toc-title { padding-bottom: 14px; } }
/* 9 nov. 2026 (demande de Lydie) : « : » à la fin du sous-titre et plus d'espace avant les onglets */
.wfp-toc-title { padding-bottom: 30px; }
@media (max-width: 720px) { .wfp-toc-title { padding-bottom: 22px; } }
/* 9 nov. 2026 (demande de Lydie) : numéros 01 à 07 dans les onglets, comme en tête de chaque workflow */
.wfp-toc a { display: inline-flex; align-items: baseline; gap: 8px; }
.wfp-toc__num { font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(3, 3, 3, 0.62); }

/* 9 nov. 2026 (demande de Lydie) : même style que l'accueil — surtitre en pastille bleue,
   mots dorés des titres dans la police du titre (le soulignement tracé à la main vient d'atelikia.css) */
.wfp-eyebrow { display: inline-block; padding: 10px 22px; border-radius: 999px; background: rgba(0, 162, 233, 0.14); color: var(--action);
  font-size: clamp(13.5px, 1.05vw, 15.5px); letter-spacing: 0.14em; line-height: 1.3; }
.wfp-head h1 em, .wfp-cta h2 em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }

/* Téléphone (11 nov. 2026, demande de Lydie) : le contenu commence déjà sous la barre de menu,
   le grand espace vide au-dessus du titre « L'automatisation, brique par brique. » est réduit */
.wfp-head { padding-top: clamp(56px, 8vh, 90px); }
@media (max-width: 600px) { .wfp-head { padding-top: 40px; } }

/* 11 nov. 2026 (demande de Lydie) : sur téléphone, les scènes de chaque workflow s'empilent les unes sous les autres,
   comme « Une journée de chef d'entreprise » sur l'accueil : l'heure, le dessin, le récit, puis l'étape du workflow
   qui correspond ; une flèche vers le bas entre deux moments. Plus de bande à faire défiler du doigt. */
@media (max-width: 720px) {
  .story { display: flex; flex-direction: column; gap: 0; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .story__scene { flex: none; width: 100%; scroll-snap-align: none; }
  .story__scene + .story__scene { padding-top: 64px; }
  .story__scene + .story__scene::before { left: 50%; top: 16px; bottom: auto; width: 22px; height: 32px; transform: translateX(-50%);
    clip-path: polygon(30% 0, 70% 0, 70% 50%, 100% 50%, 50% 100%, 0 50%, 30% 50%); }
  .story__scene:first-child::before { content: none; } /* étiquette « Workflow » : sert à aligner les briques sur ordinateur */
  .story .brick { margin-top: 2px; min-height: 0; }
  .story__pic { height: 190px; }
  .story__text { margin-bottom: 16px; }
}

/* 18 nov. 2026 (demande de Lydie) : workflows à 7 étapes (01, 05, 07, 08), zone élargie sur grand écran ; repris de la page Privé */
@media (min-width: 1101px) {
  /* 18 nov. 2026 (Lydie) : la page garde la largeur du site, pour que les pastilles restent dans les bandes bleues */
  .wf--large { max-width: 1560px; padding-left: clamp(32px, 3.5vw, 64px); padding-right: clamp(32px, 3.5vw, 64px); }
  .wf--large .story { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 30px; }
  .wf--large .story__pic { height: 150px; }
  .wf--large .story__text { font-size: 15px; }
}

/* 18 nov. 2026 (Lydie) : phrase sous « Voici huit exemples simplifiés » */
.wfp-toc-sub { display: block; max-width: 760px; margin-top: 8px; font-size: 15px; font-weight: 400; line-height: 1.55; color: var(--fg-soft); }

/* 20 nov. 2026 : sur téléphone, chaque scène se dessine à son arrivée à l'écran (classe is-on posée sur la scène), sans délai en cascade */
@media (max-width: 760px) {
  .story__scene { --d: 0s !important; }
  .js .story__scene.is-on .story__pic svg :is(path, rect, circle):not(.eye):not(.dash) { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
  .js .story__scene.is-on .eye, .js .story__scene.is-on .dash, .js .story__scene.is-on .story__text { opacity: 1; transition: opacity .5s var(--ease) .35s; }
  .js .story__scene.is-on .brick { opacity: 1; transform: none; transition: opacity .5s var(--ease) .5s, transform .5s var(--ease) .5s; }
}

/* 23 nov. 2026 (Lydie) : sur téléphone, le sommaire des huit exemples tient sur une seule ligne qui défile au doigt.
   Sur plusieurs lignes, il descendait jusqu'au bas du premier écran, sous la pastille de l'assistant. Le bord droit
   s'estompe pour montrer qu'il y a une suite ; chaque bouton fait 44 px de haut (taille d'un doigt). */
@media (max-width: 600px) {
  .wfp-toc {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none;
    padding-top: 2px; padding-bottom: 6px; margin-bottom: clamp(16px, 3vh, 28px);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .wfp-toc::-webkit-scrollbar { display: none; }
  .wfp-toc a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; min-height: 44px; align-items: center; }
  .wfp-toc::after { content: ""; flex: 0 0 24px; } /* le dernier bouton peut passer entièrement hors du fondu */
}

/* 23 nov. 2026 (Lydie : « aère-les ») : un peu plus d'air entre le titre de chaque exemple et son scénario */
.wf__top + .story { margin-top: clamp(64px, 8vh, 84px); }
