/* ==========================================================================
   Accueil (lot 3) : les sept patterns « Accueil — … » (patterns/home-*.php),
   placés par templates/front-page.html. Rendu de la maquette home-v2-moderne
   (arrondis de la charte). Chargé après design-v2.css, sur le site et dans
   l'éditeur ; les mouvements sont dans assets/js/home.js.

   Les blocs placés en position absolue portent le nom de leur section et de
   leur type (`.home-x .wp-block-group.y`) : dans l'éditeur,
   `.block-editor-block-list__layout .block-editor-block-list__block` les
   remettrait sinon en position: relative. Les marges hautes aussi, à cause de
   `body .is-layout-flow > *` (style.css).
   ========================================================================== */

:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) { --a-lavender: #d6d0ee; --soft: #f6f5f0; --brand: #2f5d50; }
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) p,
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) figure { margin: 0; }

/* Couleurs des agents (fond des visages, pastilles) : une classe home-c--<couleur>. */
.home-c--yellow { --c: #f7f4cf; }
.home-c--pink { --c: #edcfcc; }
.home-c--peach { --c: #ebcea8; }
.home-c--blue { --c: #dbecf4; }
.home-c--lavender { --c: #d6d0ee; }
.home-c--sand { --c: #f3edc6; }
.home-c--green { --c: #d2ecc3; }
.home-c--lime { --c: #c1fdbf; }
.home-c--mint { --c: #cbe2dc; }

/* Visage d'agent : tuile carrée sur sa couleur (home-face) ou rond (home-mini). */
.home-face { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-tile); background: var(--c, transparent); box-shadow: 0 10px 20px -12px rgb(0 0 0 / .35); }
.home-face img { position: absolute; left: 7%; top: 9%; width: 86%; max-width: none; height: 91%; }
.home-face--add { box-shadow: none; }
.home-face--add img { left: 0; top: 0; width: 100%; height: 100%; }
.home-mini { position: relative; flex: none; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--c, transparent); }
.home-mini img { position: absolute; left: -9%; top: 4%; width: 118%; max-width: none; height: 118%; }

/* La sphère violette : l'image déborde de son carré (sphère : centre 455,450, rayon 397, dans 910 × 960). */
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-sphere-img,
.home-ring__brain img,
.home-work__brain img,
.home-step__brain img,
.home-mem__img img { position: absolute; left: -7.3%; top: -6.7%; width: 114.6%; max-width: none; height: auto; }

/* Titres de section, chapeaux, promesses cochées : comme la maquette. */
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) h2.wp-block-heading,
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-process__sub,
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-grow__sub {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--ink);
  text-wrap: balance;
}
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-process__sub,
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-grow__sub { color: var(--faint); }
.home-hero__lead,
.home-work__lead,
.home-brain__lead,
.home-grow__lead { max-width: 36em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.home-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.home-trust__item { display: inline-flex; align-items: center; gap: 7px; }
.home-trust__item::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%231f7a4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .wp-block-buttons { justify-content: center; gap: 12px; }

/* Pastille flèche entre deux étapes (processus, « Commencez avec un agent »). */
.home-arrow-dot,
.home-step + .home-step::before,
.home-gstep + .home-gstep::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%231d1d1b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat,
    conic-gradient(from 210deg, #f3edc6, #edcfcc, #d6d0ee, #dbecf4, #cbe2dc, #f3edc6);
}

/* ===== Héros ===== */
.wp-block-group.home-hero { padding: 150px 0 0; overflow-x: clip; background: #fff; }
.home-hero__intro { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; text-align: center; }
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .7);
  font-size: 14px;
  color: var(--muted);
}
.home-hero__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgb(31 122 77 / .15); }
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-hero__title,
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-hero__sub {
  max-width: 18em;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--ink);
  text-wrap: balance;
}
/* 2e ligne en Quattrocento (maquette, option « 2e ligne »). */
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-hero__sub {
  margin-top: -26px;
  font-family: var(--agentsia-font-serif, 'Quattrocento', Georgia, serif);
  font-size: clamp(39.5px, 5.2vw, 66.5px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--faint);
}

/* L'équipe autour du second cerveau. Sans script (et dans l'éditeur) : sphère,
   outils en ligne, agents en grille. home.js ajoute .is-ring et place tout en cercle. */
.home-hero .home-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1192px, calc(100% - 48px));
  margin: 36px auto 0;
  padding: 44px 24px 36px;
  border-radius: var(--r-panel);
  background: var(--a-cream);
  isolation: isolate;
}
.home-ring__stage { position: relative; width: min(100%, 660px); container-type: inline-size; }
.home-ring__brain { position: relative; width: 35%; aspect-ratio: 1; margin: 0 auto; }
.home-ring__arc { display: none; }
.home-hero .home-ring__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.home-ring__tool { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .35); transition: scale .35s ease, box-shadow .35s ease; }
.home-ring__tool img { width: 60%; height: 60%; object-fit: contain; }
.home-hero .home-ring__agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 20px 12px; margin-top: 28px; }
.home-ring__agent { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.home-ring__agent .home-face { width: 64px; transition: transform .3s ease, box-shadow .3s ease; }
.home-ring__name { font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.home-ring__name a { color: inherit; text-decoration: none; }
.home-ring__name a:hover,
.home-ring__name a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* Les mots du chapeau qui mènent aux pages des agents. */
.home-hero__lead a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.home-hero__lead a:hover { text-decoration-thickness: 2px; }
.home-ring__desc { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.home-hero .home-ring__cap { max-width: 34em; margin-top: 16px; padding-inline: 16px; font-size: 14px; text-align: center; color: var(--muted); }

.home-ring__stage.is-ring { aspect-ratio: 1; --t: 7.9cqi; --tc: 5cqi; }
/* Anneaux : pointillés des agents (rayon 40), orbite des outils (25) et disque du cerveau (22). */
.home-ring__stage.is-ring::before,
.home-ring__stage.is-ring::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.home-ring__stage.is-ring::before { width: 80%; height: 80%; border: 1px dashed rgb(59 58 54 / .38); }
.home-ring__stage.is-ring::after { width: 50%; height: 50%; border: 1px solid rgb(59 58 54 / .14); background: radial-gradient(closest-side, #efedf9 88%, transparent 88.5%); }
.home-hero .is-ring .wp-block-image.home-ring__brain { position: absolute; left: 32.5%; top: 32.5%; z-index: 1; width: 35%; margin: 0; }
.home-hero .is-ring .wp-block-group.home-ring__tools,
.home-hero .is-ring .wp-block-group.home-ring__agents { position: absolute; inset: 0; z-index: 2; display: block; margin: 0; }
.home-hero .is-ring .wp-block-image.home-ring__tool { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: var(--tc); height: var(--tc); margin: 0; transform: translate(-50%, -50%); }
.home-hero .is-ring .wp-block-group.home-ring__agent { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 3; display: block; width: var(--t); height: var(--t); margin: 0; transform: translate(-50%, -50%); }
.home-hero .is-ring .home-ring__agent .home-face { position: absolute; inset: 0; width: auto; }
.home-hero .is-ring p.home-ring__name { position: absolute; top: calc(100% + 8px); left: 50%; margin: 0; transform: translateX(-50%); white-space: nowrap; font-size: clamp(12px, 2.25cqi, 15px); pointer-events: none; }
.home-hero .is-ring p.home-ring__desc { display: none; }
.home-hero .is-ring .home-ring__agent--custom p.home-ring__name,
.home-hero .is-ring p.home-ring__name:has(a) { pointer-events: auto; }
/* Un agent qui a sa page : son visage est cliquable aussi (home.js). */
.home-hero .is-ring .home-ring__agent:has(.home-ring__name a) { cursor: pointer; }
.home-hero .is-ring .home-ring__agent--custom p.home-ring__desc { position: absolute; top: calc(100% + 8px + 1.25em); left: 50%; display: block; margin: 0; transform: translateX(-50%); white-space: nowrap; font-size: clamp(10px, 1.8cqi, 12px); }
.home-ring__agent.is-lit .home-face { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--ink), 0 14px 24px -12px rgb(0 0 0 / .45); }
.home-ring__tool.is-used { scale: 1.22; box-shadow: 0 0 0 1.5px var(--ink), 0 10px 18px -8px rgb(0 0 0 / .4); }
.home-ring__labels { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.home-ring__labels text { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 1.45px; font-weight: 600; letter-spacing: .3px; fill: var(--muted); paint-order: stroke; stroke: #efedf9; stroke-width: .7px; stroke-linejoin: round; }
.home-ring__labels .is-tools { stroke: var(--a-cream); }

/* ===== Une semaine avec votre équipe ===== */
.wp-block-group.home-work { padding: 120px 0 40px; }
.home-work .home-work__panel { width: min(1192px, calc(100% - 48px)); margin: 0 auto; padding: 96px 64px; border-radius: var(--r-panel); background: var(--a-lavender); }
.home-work__head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.home-work .home-work__lead { color: var(--text); }
.home-work .home-work__collage { position: relative; height: 660px; margin-top: 64px; }
.home-work .wp-block-group.home-card {
  position: absolute;
  left: var(--l);
  top: var(--t);
  z-index: 1;
  width: var(--w);
  margin: 0;
  padding: 16px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(var(--rot));
  animation: home-float 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes home-float { 50% { transform: rotate(var(--rot)) translateY(-7px); } }
.home-card--social { --l: 3%; --t: 4%; --w: 292px; --rot: -4deg; --delay: -3s; }
.home-card--seo { --l: 37%; --t: 0%; --w: 300px; --rot: 2deg; --delay: -1s; }
.home-card--agenda { --l: 72%; --t: 3%; --w: 272px; --rot: 3deg; --delay: -5s; }
.home-card--doc { --l: 16%; --t: 57%; --w: 196px; --rot: 5deg; --delay: -4s; }
.home-card--phone { --l: 36%; --t: 56%; --w: 336px; --rot: -2deg; --delay: -2s; }
.home-work .wp-block-image.home-work__brain { position: absolute; left: calc(-4% + 35px); top: calc(69% + 35px); z-index: 0; width: 161px; aspect-ratio: 1; margin: 0; }
.home-work p.home-work__chip {
  position: absolute;
  left: 26%;
  top: 49%;
  z-index: 2;
  margin: 0;
  padding: 13px 18px;
  border-radius: var(--r-btn);
  background: var(--ink);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 14px 26px -14px rgb(0 0 0 / .6);
}
.home-work__chip::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -16px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l18 8-7.5 2.2L11 20z' fill='%231d1d1b'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-work .wp-block-group.home-prompts { position: absolute; left: 69%; top: 60%; z-index: 2; display: flex; flex-direction: column; gap: 10px; width: 340px; margin: 0; }
.home-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: calc(var(--r-card) * .7);
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / .4);
  transition: opacity .5s ease, transform .5s ease;
}
.home-prompt::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3eeee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.8 4.9L19 9.7l-4.9 1.8L12 16.4l-1.8-4.9L5 9.7l5.2-1.8z' fill='none' stroke='%23b0606e' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M18.5 15.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7z' fill='%23b0606e'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* Les demandes passées s'estompent par leur fond, le texte gardant un contraste suffisant (4,5:1). */
.home-prompts .home-prompt:nth-child(1) { background: rgb(255 255 255 / .45); color: #5f5e58; box-shadow: none; }
.home-prompts .home-prompt:nth-child(2) { background: rgb(255 255 255 / .7); color: #5f5e58; }
.home-prompts .home-prompt:nth-child(-n+2)::before { opacity: .55; }
.home-prompts .home-prompt:nth-child(n+4) { display: none; }
.home-prompts.is-moving .home-prompt { transform: translateY(-6px); }

/* Intérieur des cartes */
.home-card__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.25; text-align: left; }
.home-card__ht { flex: 1; min-width: 0; }
.home-card__t { font-weight: 600; color: var(--ink); }
.home-card__s { font-size: 12.5px; color: var(--muted); }
.home-card__logo { flex: none; width: 22px; height: 22px; margin-left: auto; }
.home-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.home-card .home-card__p { margin-bottom: 12px; font-size: 14px; line-height: 1.45; text-align: left; color: var(--text); }
.home-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: #f1f0ea; font-size: 12.5px; white-space: nowrap; color: var(--ink); }
.home-tag--ok { background: #e4f2e8; color: #185e3b; }
.home-tag--ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.home-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-card .home-post {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  height: 150px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 2px;
  background: linear-gradient(150deg, #3c6f60, var(--brand) 60%, #24493f);
  text-align: left;
  color: #fff;
}
.home-post__k { align-self: flex-start; margin-bottom: auto !important; padding: 3px 8px; border-radius: 999px; background: rgb(255 255 255 / .16); font-size: 11.5px; }
.home-post__t { font-family: var(--agentsia-font-serif, 'Quattrocento', Georgia, serif); font-size: 22px; line-height: 1.1; }
.home-post__s { font-size: 13px; opacity: .85; }
.home-card .home-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.home-big__n { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.home-big__l { font-size: 14px; color: var(--muted); }
.home-card .home-spark { margin-bottom: 10px; }
.home-spark img { display: block; width: 100%; height: 64px; }
.home-rows,
.home-slots { display: flex; flex-direction: column; gap: 6px; }
.home-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--soft); font-size: 13px; text-align: left; color: var(--text); }
.home-row__v { font-weight: 600; color: var(--ink); }
.home-card .home-slots { margin-bottom: 12px; }
.home-slot { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--soft); font-size: 13.5px; text-align: left; color: var(--muted); }
.home-slot__time { width: 42px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.home-slot--new { background: #f3e3cc; color: var(--ink); }
.home-card .home-doc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 210 / 297;
  margin: 0 auto 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  text-align: left;
}
.home-doc::before { content: ""; height: 44px; border-radius: 2px; background: var(--brand); }
.home-doc__t { font-family: var(--agentsia-font-serif, 'Quattrocento', Georgia, serif); font-size: 16px; line-height: 1.1; color: var(--ink); }
/* Les lignes de texte de la plaquette, sous le titre. */
.home-doc__t::after { content: ""; display: block; height: 34px; margin-top: 8px; background: linear-gradient(var(--line) 0 4px, transparent 4px 10px, var(--line) 10px 14px, transparent 14px 20px, var(--line) 20px 24px, transparent 24px 30px, var(--line) 30px 34px) 0 0 / 100% 100% no-repeat; -webkit-mask: linear-gradient(90deg, #000 62%, transparent 62%) 0 10px / 100% 4px no-repeat, linear-gradient(#000, #000); }
.home-doc__p { margin-top: auto !important; font-size: 12px; font-weight: 600; color: var(--brand); }
.home-doc__cap { display: flex; align-items: center; gap: 8px; font-size: 13px; text-align: left; color: var(--ink); }
.home-doc__cap .home-mini { width: 26px; height: 26px; }
.home-card .home-wave { margin-bottom: 12px; }
.home-wave img { display: block; width: 100%; height: 44px; }
.home-wave__bars { display: flex; align-items: center; gap: 3px; height: 44px; }
.home-wave__bars i { flex: 1; height: var(--h); border-radius: 2px; background: #9ccf8f; animation: home-wave 1.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes home-wave { 50% { transform: scaleY(.55); } }

/* ===== Capturer, améliorer, orchestrer ===== */
.wp-block-group.home-process { max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 20px; }
.home-process__head { margin-bottom: 44px; text-align: center; }
.home-process__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: home-step; }
.home-step { position: relative; display: flex; flex-direction: column; counter-increment: home-step; }
.home-step + .home-step::before { left: -14px; top: 0; margin-top: calc(25% - 18px); transform: translateX(-50%); }
.home-step .home-step__vis { position: relative; aspect-ratio: 2 / 1; margin-bottom: 18px; overflow: hidden; border-radius: var(--r-card); background: var(--a-cream) no-repeat center / 100% 100%; }
.home-step--capture .home-step__vis { background-image: url("../images/accueil/lignes-capturer.svg"); }
.home-step--orchestrate .home-step__vis { background-image: url("../images/accueil/lignes-orchestrer.svg"); }
.home-step__vis .wp-block-image.home-step__brain { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%); }
.home-step--capture { --x: 70%; --y: 50%; --s: 34%; }
.home-step--improve { --x: 50%; --y: 52%; --s: 36%; }
.home-step--orchestrate { --x: 30%; --y: 50%; --s: 34%; }
.home-step__vis .wp-block-image.home-step__tile {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 13%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--r-tile);
  background: #fff;
  box-shadow: 0 10px 20px -12px rgb(0 0 0 / .35);
  transform: translate(-50%, -50%);
}
.home-step__tile img { width: 58%; height: 58%; object-fit: contain; }
.home-step__tile--1 { left: 13%; top: 28%; }
.home-step__tile--2 { left: 13%; top: 72%; }
.home-step__tile--3 { left: 30%; top: 16%; }
.home-step__tile--4 { left: 30%; top: 84%; }
.home-step__vis .wp-block-image.home-step__face { position: absolute; z-index: 1; width: 16%; margin: 0; transform: translate(-50%, -50%); }
.home-step__face--1 { left: 66%; top: 20%; }
.home-step__face--2 { left: 82%; top: 50%; }
.home-step__face--3 { left: 66%; top: 80%; }
.home-step__vis p.home-step__chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 11px 6px 8px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: 0 10px 20px -14px rgb(0 0 0 / .4);
  transform: translate(-50%, -50%);
  animation: home-bob 4.4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes home-bob { 50% { transform: translate(-50%, calc(-50% - 4px)); } }
.home-step__chip::before { content: ""; width: 15px; height: 15px; background: var(--i) center / contain no-repeat; }
.home-step__chip--1 { left: 20%; top: 26%; --d: 0s; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%231f7a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.home-step__chip--2 { left: 81%; top: 34%; --d: -1.1s; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%238a6d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5l1-4 10-10 3 3-10 10z'/%3E%3Cpath d='M13.5 7.5l3 3'/%3E%3C/g%3E%3C/svg%3E"); }
.home-step__chip--3 { left: 24%; top: 78%; --d: -2.2s; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%235f58d0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.home-step__chip--4 { left: 78%; top: 76%; --d: -3.3s; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h4l2-5 4 10 2-5h4' fill='none' stroke='%23a0485a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.home-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); }
.home-step__title::before { content: counter(home-step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; color: #fff; }
.home-step__desc { max-width: 30em; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* ===== Un second cerveau pour toute l'entreprise ===== */
.wp-block-group.home-brain { max-width: var(--wrap); margin: 0 auto; padding: 150px 24px 40px; }
.home-brain__head { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 56px; text-align: center; }
.home-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 48px 40px;
  border-radius: var(--r-panel);
  background: #efedf9;
  isolation: isolate;
}
.home-flow__links { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.home-flow__links .base { fill: none; stroke: rgb(255 255 255 / .7); stroke-width: 1.6; filter: drop-shadow(0 0 3px rgb(255 255 255 / .9)); }
.home-flow__links .flow { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 3 19; filter: drop-shadow(0 0 4px #fff); animation: home-flow 1.4s linear infinite; }
@keyframes home-flow { to { stroke-dashoffset: -22; } }
.home-flow__in,
.home-flow__out { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.home-flow__k { margin-bottom: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgb(29 29 27 / .55); }
.home-flow__list,
.home-flow__agents { display: flex; flex-direction: column; gap: 12px; }
.home-src { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r-card); background: rgb(255 255 255 / .92); box-shadow: 0 14px 28px -22px rgb(60 50 140 / .45); }
.home-src__logo { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; width: 48px; height: 48px; padding: 6px; border-radius: var(--r-tile); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.home-src__logo--ink { background: #efedfb; box-shadow: none; }
.home-src__img { width: 20px; height: 20px; }
.home-src__img:only-child { width: 26px; height: 26px; }
.home-src__img img { width: 100%; height: 100%; object-fit: contain; }
.home-src__t,
.home-fa__t { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.home-src__s,
.home-fa__s { margin-top: 2px; font-size: 12.5px; line-height: 1.38; color: var(--muted); }
.home-flow__agents { position: relative; gap: 10px; }
.home-flow__agents::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; z-index: 0; border-left: 2px dotted rgb(110 100 220 / .5); }
.home-fa { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.home-fa .home-face { flex: none; width: 46px; margin: 0 5px; }
.home-fa__card { flex: 1; padding: 8px 14px; border-radius: var(--r-card); background: rgb(255 255 255 / .92); box-shadow: 0 14px 28px -22px rgb(60 50 140 / .45); }
.home-mem { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.home-mem::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 196px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / .95) 0, rgb(206 199 255 / .75) 34%, rgb(206 199 255 / 0) 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.home-mem .wp-block-image.home-mem__img { position: relative; width: 362px; aspect-ratio: 1; margin: 15px 0; }
.home-mem p.home-mem__pill {
  position: absolute;
  left: 50%;
  top: 196px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 20px 12px 14px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .93);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: 0 0 0 1px #fff, 0 14px 34px -12px rgb(100 90 220 / .65);
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.home-mem__pill::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%231d1d1b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.home-mem__chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 11px; }
.home-mem__chip { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c); font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: 0 8px 16px -12px rgb(0 0 0 / .45); }
.home-mem p.home-mem__label { position: relative; z-index: 2; margin-top: 10px; padding: 8px 16px; border-radius: var(--r-btn); background: var(--ink); font-size: 14px; font-weight: 600; color: #fff; }
.home-mem p.home-mem__note { position: relative; z-index: 2; max-width: 20em; margin-top: 22px; font-size: 14px; line-height: 1.45; text-align: center; color: var(--text); }

/* ===== Commencez avec un agent ===== */
.wp-block-group.home-grow { max-width: var(--wrap); margin: 0 auto; padding: 150px 24px 40px; }
.home-grow__head { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 56px; text-align: center; }
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band) .home-grow__sub { margin-top: -22px; }
.home-grow__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-gstep { position: relative; display: flex; flex-direction: column; padding: 12px 12px 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: 0 18px 36px -30px rgb(0 0 0 / .45); }
.home-gstep + .home-gstep::before { left: -12px; top: 12px; margin-top: calc(31.25% - 18px - 7px); transform: translateX(-50%); }
.home-gstep .home-gstep__vis { display: grid; grid-template-columns: repeat(3, 20%); justify-content: center; align-content: center; gap: 6% 4%; aspect-ratio: 16 / 10; margin-bottom: 22px; border-radius: 2px; background: var(--a-cream); }
.home-gstep__tile { margin: 0; }
.home-gstep__tile--free { box-shadow: none; }
.home-gstep__tile--free img { display: block; width: 100%; height: auto; }
.home-gstep__k { margin: 0 12px 8px !important; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.home-gstep__t { margin: 0 12px 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); }
.home-gstep__d { margin: 0 12px !important; font-size: 15px; line-height: 1.5; color: var(--muted); }
.home-grow .home-grow__facts { gap: 10px 30px; margin-top: 36px; font-size: 15px; color: var(--ink); }
.home-grow__facts .home-trust__item::before { width: 18px; height: 18px; }
.home-grow .home-grow__ctas { margin-top: 30px; }

/* ===== Derniers articles ===== */
.wp-block-group.home-news { max-width: var(--wrap); margin: 0 auto; padding: 150px 24px 40px; }
.home-news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.home-news .home-news__head .wp-block-buttons { justify-content: flex-end; }
.home-news .wp-block-post-template { gap: 28px; margin: 0; padding: 0; list-style: none; }
.home-news .wp-block-post { position: relative; display: flex; flex-direction: column; gap: 18px; }
.home-news__img { margin: 0; overflow: hidden; border-radius: var(--r-card); background: var(--a-cream); }
.home-news__img img { display: block; width: 100%; height: 100%; aspect-ratio: 768 / 429; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.home-news .wp-block-post:hover .home-news__img img { transform: scale(1.035); }
.home-news__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; }
.home-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.home-news__cat a { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); background: var(--a-blue); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink); }
.home-news__cat .wp-block-post-terms__separator { display: none; }
.home-news__cat a + a { display: none; }
.home-news__date { font-size: 14px; color: var(--muted); }
.home-news .home-news__title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.18; color: var(--ink); text-wrap: balance; }
.home-news h3.home-news__title a { text-decoration: none; color: var(--ink); }
.home-news__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.home-news__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.home-news .home-news__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 2px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.home-news__more::after {
  content: "";
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%231d1d1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s ease;
}
.home-news .wp-block-post:hover .home-news__more::after { transform: translate(2px, -2px); }

/* ===== L'application (vérification Google) ===== */
.wp-block-group.home-app { max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 40px; }
.home-app__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; padding: 48px; border-radius: var(--r-panel); background: var(--a-cream); }
:is(.home-hero, .home-work, .home-process, .home-brain, .home-grow, .home-news, .home-band, .home-app) h2.home-app__title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; color: var(--ink); }
.home-app__txt { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; color: var(--text); }
.home-app p { margin: 0; }
.home-app__list { display: flex; flex-direction: column; gap: 8px; }
.home-app__item { position: relative; padding-left: 26px; }
.home-app__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%231f7a4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-app .home-app__ctas { justify-content: flex-start; margin-top: 10px; }
@media (max-width: 980px) {
  .home-app__in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 24px; }
}
@media (max-width: 640px) {
  .wp-block-group.home-app { padding: 80px 16px 24px; }
}

/* ===== Bandeau final ===== */
.wp-block-group.home-band { max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 40px; }
.home-band__in {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  padding: 48px 24px;
  overflow: hidden;
  border-radius: var(--r-panel);
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.home-band__in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 20 18 / .18), rgb(20 20 18 / .42) 55%, rgb(20 20 18 / .55)); }
.home-band .wp-block-image.home-band__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.home-band__img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.home-band__mid { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-band__k { font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.home-band__word { width: clamp(260px, 34vw, 470px); }
.home-band__word img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.home-band p.home-band__side { position: absolute; bottom: 44px; margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.home-band__side--l { left: 6%; text-align: left; }
.home-band__side--r { right: 6%; text-align: right; }
.home-band .wp-block-button__link { background: rgb(29 29 27 / .92); }

/* ===== Écrans étroits ===== */
@media (max-width: 980px) {
  .home-work .home-work__panel { padding: 72px 32px; }
  .home-work .home-work__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: auto; margin-top: 44px; }
  .home-work .wp-block-group.home-card,
  .home-work .wp-block-group.home-prompts { position: relative; left: auto; top: auto; width: auto; transform: none; animation: none; }
  .home-work p.home-work__chip,
  .home-work .wp-block-image.home-work__brain { display: none; }
  .home-work .wp-block-group.home-prompts { grid-column: 1 / -1; }
  .home-prompts .home-prompt:nth-child(-n+2) { display: none; }
  .home-process__steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 68px; }
  .home-step + .home-step::before { left: 50%; top: -52px; margin-top: 0; transform: translateX(-50%) rotate(90deg); }
  .home-flow { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 18px; }
  .home-flow__links { display: none; }
  .home-mem { order: -1; }
  .home-grow__steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 44px; }
  .home-gstep + .home-gstep::before { left: 50%; top: -40px; margin-top: 0; transform: translateX(-50%) rotate(90deg); }
  .home-news .wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-news .wp-block-post:not(:first-child) { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 20px; }
}
@media (max-width: 640px) {
  .wp-block-group.home-hero { padding-top: 120px; }
  .home-hero .home-ring { width: calc(100% - 32px); padding: 20px 10px 24px; }
  .home-ring__stage.is-ring { --t: 9.8cqi; --tc: 6.6cqi; }
  .home-hero .is-ring p.home-ring__name,
  .home-hero .is-ring .home-ring__agent--custom p.home-ring__desc { display: none; }
  .home-ring__labels { display: none; }
  .home-work .home-work__panel { width: calc(100% - 32px); padding: 56px 18px; }
  .home-work .home-work__collage { grid-template-columns: minmax(0, 1fr); }
  .wp-block-group.home-work,
  .wp-block-group.home-brain,
  .wp-block-group.home-grow,
  .wp-block-group.home-news { padding-top: 96px; }
  .wp-block-group.home-process { padding-top: 88px; }
  .home-mem .wp-block-image.home-mem__img { width: 260px; margin: 8px 0; }
  .home-mem::before { top: 138px; width: min(340px, 92vw); height: min(340px, 92vw); }
  .home-mem p.home-mem__pill { top: 138px; font-size: 14px; }
  .home-mem__chip { padding: 5px 8px; font-size: 12px; }
  .home-grow .home-grow__facts { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
  .home-news__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .home-news .wp-block-post:not(:first-child) { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: 14px; }
  .home-news .wp-block-post:not(:first-child) .home-news__title { font-size: 17px; }
  .home-news .wp-block-post:not(:first-child) .home-news__cat,
  .home-news .wp-block-post:not(:first-child) .home-news__more { display: none; }
  .home-band__in { gap: 18px; align-content: center; min-height: 520px; }
  .home-band p.home-band__side { position: static; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-work .wp-block-group.home-card,
  .home-wave__bars i,
  .home-step__vis p.home-step__chip,
  .home-flow__links .flow { animation: none; }
  .home-prompt,
  .home-ring__tool,
  .home-ring__agent .home-face,
  .home-news__img img { transition: none; }
}

/* Dans l'éditeur : cartes et pastilles immobiles, pour cliquer dedans sans qu'elles bougent. */
.editor-styles-wrapper .home-work .wp-block-group.home-card,
.editor-styles-wrapper .home-step__vis p.home-step__chip { animation: none; }
.editor-styles-wrapper .home-prompts .home-prompt:nth-child(n+4) { display: flex; }

/* Liste des agents sous le cercle (créée par home.js), sur téléphone seulement. */
.home-ring__list { display: none; grid-template-columns: 1fr 1fr; gap: 10px 14px; width: 100%; margin: 16px 0 0; padding: 0 16px; list-style: none; font-size: 13px; line-height: 1.3; text-align: left; color: var(--muted); }
.home-ring__list b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.home-ring__list b a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .home-ring__list { display: grid; }
}
