/* ==========================================================================
   Pages agent, nouveau design (octobre 2026), d'après la maquette
   « Agent SEO & GEO ». Restyle les patterns existants (agent-hero, agent-stats,
   agent-feature-row, agent-tasks, agent-audience, agent-blog, agent-faq) : les
   six pages agent changent d'aspect sans retoucher leur contenu.
   Chargée après design-v2.css. --agent = couleur de l'agent (ses réglages),
   posée par functions.php sur les pages agent.
   ========================================================================== */

:root { --agent: var(--a-yellow); }

/* ===== Héros =====
   Texte centré sur la page blanche, puis la constellation (photo de l'agent et
   logos de ses outils) dans un grand panneau à la couleur de l'agent, avec des
   orbites. La couleur de fond posée sur le bloc par l'éditeur est ignorée : le
   blanc fait partie du design, la couleur vient des réglages de l'agent. */
.wp-block-group.agent-hero,
.agent-hero.has-background {
  background: #fff !important;
  padding: 290px 24px 40px;   /* la marge négative de solution.css (-150px) laisse ~140px sous l'en-tête fixe */
  overflow: visible;
  overflow-x: clip;           /* rien ne dépasse en largeur (ancienne carte photo : page à 1 054 px de large sur téléphone) */
}
.agent-hero__inner {
  --cw: min(600px, calc(100vw - 88px));        /* largeur de la constellation */
  position: relative;
  max-width: calc(var(--wrap) - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  isolation: isolate;
}
/* Le panneau de couleur, derrière la constellation. */
.agent-hero__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--cw) * 300 / 340 + 120px);
  border-radius: var(--r-panel);
  background: var(--agent);
  z-index: -1;
}
.agent-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  padding: 0;
  text-align: center;
}
.agent-hero .agent-hero__headline,
.agent-hero h1.agent-hero__headline {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
}
/* 2e ligne du titre en Quattrocento, comme le héros de l'accueil (maquette, option « 2e ligne »). */
.agent-hero .agent-hero__subline {
  margin: 0 0 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;
  line-height: 0.98;
  color: var(--faint);
  text-wrap: balance;
}
.agent-hero .agent-hero__desc {
  max-width: 36em;
  margin: 0 0 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.agent-hero .agent-hero__ctas {
  justify-content: center;
  gap: 12px;
  padding: 0;
}

/* La constellation, centrée dans le panneau. */
.agent-hero__inner > .agent-hero__card {
  width: var(--cw);
  max-width: none;
  margin: 100px 0 60px;
  align-self: center;
}
/* Les orbites remplacent la trame de points : deux cercles autour de l'agent. */
.agent-hero__card::before,
.agent-hero__card::after {
  content: "";
  position: absolute;
  inset: auto;
  left: 50%;
  top: 48%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.agent-hero__card::before {
  width: 92%;
  background: none;
  border: 1.5px dashed rgb(59 58 54 / .32);
}
.agent-hero__card::after {
  width: 54%;
  border: 1px solid rgb(59 58 54 / .16);
  background: rgb(255 255 255 / .6);
}
/* Logos des outils : des pastilles rondes blanches, plus petites que leur emplacement
   (sa largeur est fixée par solution.css selon le nombre de logos). « scale » et non
   « transform » : le flottement anime déjà transform. */
.agent-hero__star:not(.agent-hero__star--center) .agent-hero__star-tile,
.agent-hero__star:not(.agent-hero__star--center) .wp-block-image { scale: .62; }
.agent-hero__star:not(.agent-hero__star--center) .agent-hero__star-tile,
.agent-hero__star:not(.agent-hero__star--center) .wp-block-image {
  border-radius: 50%;
  padding: 24%;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / .4);
}
/* L'agent au centre : sa tuile, à sa couleur, cerclée de blanc. */
.agent-hero__star--center { width: 42%; }
.agent-hero__star--center .agent-hero__star-tile,
.agent-hero__star--center .wp-block-image {
  background: var(--agent);
  border-radius: calc(var(--r-tile) * 2);
  padding: 8%;
  box-shadow: 0 0 0 7px rgb(255 255 255 / .75), 0 26px 44px -22px rgb(0 0 0 / .45);
}

/* L'ancien CSS masquait la constellation sous 1100px : elle reste, sous le texte. */
@media (max-width: 1100px) {
  .agent-hero__inner > .agent-hero__card { display: block; }
}
@media (max-width: 900px) {
  .wp-block-group.agent-hero,
  .agent-hero.has-background { padding: 250px 16px 24px; }
  .agent-hero__inner { --cw: min(520px, calc(100vw - 64px)); }
  .agent-hero__inner > .agent-hero__card { margin: 64px 0 40px; }
  .agent-hero__inner::after { height: calc(var(--cw) * 300 / 340 + 80px); }
}

/* ===== Chiffres =====
   Trois chiffres centrés entre deux filets, en Instrument Sans 600. */
.agent-stats { padding: 40px 24px 0; background: #fff; }
.agent-stats__inner {
  max-width: calc(var(--wrap) - 48px);
  border-block: 1px solid var(--line);
}
.agent-stat {
  align-items: center;
  gap: 10px;
  padding: 38px 20px;
  border-top: 0;
  text-align: center;
}
.agent-stats .agent-stat__number {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.agent-stats .agent-stat__label { margin: 0; color: var(--muted); }

/* ===== Piliers (lignes de fonctionnalité) =====
   Le visuel sur un aplat arrondi, le texte à côté ; le nom de la fonctionnalité
   (sous-titre) passe au-dessus de la phrase, en pastille. */
.wp-block-group.agent-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: calc(var(--wrap) - 48px);
  min-height: 0;
  margin-inline: auto;
  padding: 56px 0;
}
.wp-block-group.agent-feature-row--image-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); }
.agent-feature-row--image-right > .agent-feature-panel--visual { order: 2; }
.agent-feature-row > .agent-feature-panel:first-child,
.agent-feature-row > .agent-feature-panel:last-child,
.agent-feature-row--image-right > .agent-feature-panel:first-child,
.agent-feature-row--image-right > .agent-feature-panel:last-child { border-radius: 0; }
.agent-feature-row > .agent-feature-panel--visual,
.agent-feature-row--image-right > .agent-feature-panel--visual {
  min-height: 360px;
  padding: 34px 30px;
  border-radius: var(--r-panel);
}
.agent-feature-panel--visual .wp-block-image { padding: 0; }
.agent-feature-panel--visual .wp-block-image img { filter: drop-shadow(0 18px 26px rgb(29 29 27 / .1)); }
.agent-feature-panel--text { background: none; }
/* Lignes « collantes » (réglage Position du bloc, page SEO en ligne) : pile de cartes.
   Transparentes dans ce design, elles laissaient voir la ligne précédente au travers : chacune prend le fond de sa
   section et se colle sous l'en-tête fixe. Sur tablette, téléphone ou écran bas, une ligne plus haute que l'écran
   aurait son bas caché par la suivante : l'effet y est coupé. */
.wp-block-group.agent-feature-row.is-position-sticky { top: 85px; background-color: inherit; }
@media (max-width: 1024px), (max-height: 820px) {
  .wp-block-group.agent-feature-row.is-position-sticky { position: relative; top: auto; }
}
.agent-feature-panel__inner {
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
}
.agent-feature-row .agent-feature__subtitle {
  order: -1;
  display: inline-flex;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 13.5px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--muted);
}
.agent-feature-row .agent-feature__title {
  max-width: none;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.agent-feature-row .agent-feature__desc {
  max-width: 32em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== Ce que l'agent accomplit (tâches) =====
   Plus de section sombre : un grand aplat lavande, des cartes blanches. Le panneau
   est un pseudo-élément (la section prend toute la largeur ; les marges verticales
   des blocs sont neutralisées par le thème, le padding non). */
.wp-block-group.agent-tasks {
  position: relative;
  isolation: isolate;
  background: none;
  padding: 216px max(88px, calc((100% - var(--wrap)) / 2 + 88px)) 136px;
}
.agent-tasks::before {
  content: "";
  position: absolute;
  inset: 120px max(24px, calc((100% - var(--wrap)) / 2 + 24px)) 40px;
  border-radius: var(--r-panel);
  background: var(--a-lavender);
  z-index: -1;
}
.agent-tasks__header { margin-bottom: 48px; gap: 22px; }
.agent-tasks .agent-tasks__title {
  max-width: 18em;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--ink);
}
.agent-tasks .agent-tasks__desc { max-width: 36em; font-size: clamp(17px, 1.6vw, 20px); color: var(--text); }
.agent-tasks__grid { max-width: none; gap: 16px; }
.agent-tasks__row { gap: 16px; }
.agent-task-card {
  justify-content: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 26px 26px 28px;
  border: 0;
  border-radius: var(--r-card);
  background: #fff;
}
.agent-task-card__top { gap: 14px; }
/* L'étiquette (filet coloré à gauche) devient une pastille avec un point de couleur. */
.agent-task-card__tag {
  align-self: flex-start;
  gap: 6px;
  padding: 5px 10px;
  border-left: 0;
  border-radius: var(--r-pill);
  background: #f1f0ea;
}
.agent-task-card__tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--k, #8b84ea);
}
.agent-task-card__tag--green { --k: #6fbb5c; }
.agent-task-card__tag--white { --k: #a9a79e; }
.agent-task-card__tag span,
.agent-task-card__tag p,
.agent-task-card__tag--purple,
.agent-task-card__tag--green,
.agent-task-card__tag--white { color: var(--ink); font-size: 12.5px; line-height: 1.3; }
.agent-tasks .agent-task-card__title {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}
.agent-tasks .agent-task-card__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ===== Pour qui (audience) ===== */
.wp-block-group.agent-audience { background: #fff; padding: 140px 24px 40px; }
.agent-audience__header { padding-bottom: 56px; }
.agent-audience .agent-audience__title-sans,
.agent-audience .agent-audience__title-serif {
  margin: 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--ink);
}
.agent-audience .agent-audience__title-serif { color: var(--faint); }
.agent-audience__grid { max-width: calc(var(--wrap) - 48px); gap: 16px; }
.agent-audience-card {
  min-height: 420px;
  padding: 24px 24px 0;
  border-radius: var(--r-card);
  background: var(--a-cream);
}
.agent-audience .agent-audience-card__name {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.agent-audience .agent-audience-card__desc { font-size: 15px; color: var(--muted); }
.agent-audience-card__dot { width: 10px; height: 10px; border-radius: 50%; }
.agent-audience-card__image { margin: 0 -24px; border-radius: 0; }
/* Carte sans photo (page du Documentaliste) : pas de hauteur réservée à l'image. */
.agent-audience-card:not(:has(.agent-audience-card__image)) { min-height: 0; padding-bottom: 28px; }

/* ===== Pour aller plus loin (sous-pages de l'agent) =====
   Bloc écrit dans le contenu des pages (.agentsia-related--subpages) : des cartes
   crème entièrement cliquables. */
.agentsia-related { padding: 140px 24px 40px; }
.agentsia-related > .wp-block-heading {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
}
.agentsia-related > .wp-block-columns {
  max-width: calc(var(--wrap) - 48px);
  margin-inline: auto;
  gap: 16px;
}
.agentsia-related .agentsia-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 210px;
  padding: 24px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--a-cream);
  box-shadow: none;
  transition: transform .2s ease, background-color .2s ease;
}
.agentsia-related .agentsia-card:hover { transform: translateY(-3px); background: #eeede5; }
.agentsia-related .agentsia-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.035em; }
.agentsia-related .agentsia-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.agentsia-related .agentsia-card .wp-block-buttons { margin-top: auto; padding: 0; }
/* Le bouton devient un lien discret, étendu à toute la carte. */
.agentsia-related .agentsia-card .wp-block-button .wp-block-button__link {
  min-height: 0;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
}
.agentsia-related .agentsia-card .wp-block-button .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ===== Articles (agent-blog) ===== */
.wp-block-group.agent-blog { padding: 140px 24px 40px; }
.agent-blog .agent-blog__title {
  margin: 0 0 48px;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.agent-blog__grid { max-width: calc(var(--wrap) - 48px); gap: 28px; }
.agent-blog-card { gap: 16px; border: 0; border-radius: 0; background: none; }
.agent-blog-card__cover { height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-card); }
.agent-blog-card__body { padding: 0; gap: 8px; }
.agent-blog .agent-blog-card__title {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink);
}
.agent-blog .agent-blog-card__date { order: -1; font-size: 13px; color: var(--muted); }

/* ===== Questions fréquentes =====
   Deux colonnes : le titre, fixe pendant le défilement, et les questions en
   cartes crème. Le balisage (h3 + paragraphe) ne change pas : le JSON-LD FAQ
   continue de le lire. */
.wp-block-group.agent-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
  max-width: calc(var(--wrap) - 48px);
  margin-inline: auto;
  padding: 140px 0 40px;
  background: #fff;
}
.agent-faq__header {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: none;
  margin: 0;
}
.agent-faq .agent-faq__title,
.agent-faq p.agent-faq__sub {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--ink);
}
/* « fréquentes. » : deuxième ligne grise du titre, collée à la première. */
.agent-faq p.agent-faq__sub { margin-top: -22px; color: var(--faint); }
.agent-faq p.agent-faq__lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); }

/* Accordéon (assets/js/agent-faq.js ajoute .is-js) : la question devient un bouton. */
.agent-faq.is-js .agent-faq__item,
.agent-faq.is-js .agent-faq__item:last-child { padding: 0; }
.agent-faq.is-js .agent-faq__q { margin: 0; }
.agent-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px 20px 24px;
  border: 0;
  border-radius: var(--r-card);
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.agent-faq__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.agent-faq__pm {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform .3s ease;
}
.agent-faq__pm svg { width: 14px; height: 14px; }
.agent-faq__item.is-open .agent-faq__pm { transform: rotate(45deg); }
.agent-faq__panel { padding: 0 24px 24px; }
.agent-faq__panel[hidden] { padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .agent-faq__pm { transition: none; }
}
.agent-faq__list { display: flex; flex-direction: column; gap: 10px; max-width: none; margin: 0; }
.agent-faq__item,
.agent-faq__item:last-child {
  padding: 22px 24px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--a-cream);
}
.agent-faq .agent-faq__q {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.agent-faq .agent-faq__a { font-size: 16px; color: var(--muted); }

/* ===== Écrans étroits ===== */
@media (max-width: 980px) {
  .wp-block-group.agent-feature-row,
  .wp-block-group.agent-feature-row--image-right { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 16px; }
  .agent-feature-row--image-right > .agent-feature-panel--visual { order: 0; }
  .agent-feature-row > .agent-feature-panel--visual { min-height: 0; }
  .wp-block-group.agent-tasks { padding: 168px 48px 96px; }
  .agent-tasks::before { inset: 96px 16px 24px; }
  .agent-tasks__row { grid-template-columns: minmax(0, 1fr); }
  .wp-block-group.agent-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 96px 16px 32px; }
  .agent-faq__header { position: static; }
}
@media (max-width: 640px) {
  .agent-stats__inner { grid-template-columns: minmax(0, 1fr); }
  .agent-stat + .agent-stat { border-top: 1px solid var(--line); }
  .wp-block-group.agent-tasks { padding: 152px 30px 80px; }
  .wp-block-group.agent-audience,
  .agentsia-related,
  .wp-block-group.agent-blog { padding: 96px 16px 32px; }
}

/* ==========================================================================
   Nouveaux blocs des pages agent (patterns agent-video, agent-steps,
   agent-team, agent-pricing, agent-sovereignty, agent-cta-audit)
   Les marges hautes sont écrites avec le nom de la section devant : sinon
   `body .is-layout-flow > *` (style.css) les remet à zéro.
   ========================================================================== */

/* Tête de section : titre noir, deuxième ligne grise (un paragraphe), chapeau. */
.agent-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  margin: 0 auto 56px;
  text-align: center;
}
.agent-section-title,
p.agent-section-sub {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--ink);
  text-wrap: balance;
}
p.agent-section-sub { color: var(--faint); }
p.agent-section-lead {
  max-width: 36em;
  margin: 0;
  padding-top: 22px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Les sections posées sur un aplat : le panneau est un pseudo-élément (voir les tâches). */
.wp-block-group.agent-team,
.wp-block-group.agent-sov,
.wp-block-group.agent-cta {
  position: relative;
  isolation: isolate;
  padding: 192px max(88px, calc((100% - var(--wrap)) / 2 + 88px)) 112px;
}
.agent-team::before,
.agent-sov::before,
.agent-cta::before {
  content: "";
  position: absolute;
  inset: 120px max(24px, calc((100% - var(--wrap)) / 2 + 24px)) 40px;
  border-radius: var(--r-panel);
  z-index: -1;
}
.agent-team::before { background: var(--a-peach); }
.agent-sov::before { background: var(--ink); }
.agent-cta::before { background: var(--agent); }
:is(.agent-team, .agent-cta) p.agent-section-sub { color: rgb(29 29 27 / .45); }
:is(.agent-team, .agent-cta) p.agent-section-lead { color: var(--text); }
:is(.agent-team__txt, .agent-sov__txt, .agent-cta__txt) :is(.agent-section-title, .agent-section-sub, .agent-section-lead) { text-align: left; }

/* ===== Vidéo de présentation ===== */
.wp-block-group.agent-video { padding: 120px 24px 40px; }
/* Vidéo YouTube (bloc Intégrer) ou fichier (bloc Vidéo) : les deux sont pris en charge,
   même si le bloc a perdu la classe agent-video__player en route. */
.agent-video :is(.wp-block-embed, .wp-block-video) {
  max-width: calc(var(--wrap) - 48px);
  margin: 0 auto;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--ink);
}
.agent-video .wp-block-embed:not(.wp-has-aspect-ratio) iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.agent-video .wp-block-video { aspect-ratio: 16 / 9; }
.agent-video .wp-block-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== Étapes de mise en route =====
   Sans script, la première étape est active ; assets/js (lot 4) fera défiler les autres. */
.wp-block-group.agent-steps { padding: 140px 24px 40px; }
.agent-steps__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
  max-width: calc(var(--wrap) - 48px);
  margin: 0 auto;
}
.agent-steps__list { display: flex; flex-direction: column; gap: 6px; }
.agent-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 14px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  transition: background-color .3s ease;
}
.agent-step__n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.agent-steps .agent-step__title { margin: 5px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; color: var(--ink); }
.agent-steps .agent-step__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.agent-steps:not(.is-js) .agent-step:first-child,
.agent-step.is-on { background: var(--a-cream); }
.agent-steps:not(.is-js) .agent-step:first-child .agent-step__n,
.agent-step.is-on .agent-step__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.agent-steps:not(.is-js) .agent-step:first-child .agent-step__desc,
.agent-step.is-on .agent-step__desc { color: var(--muted); }
/* Avec assets/js/agent-steps.js : le titre devient un bouton qui couvre la carte,
   et une barre se remplit sous l'étape active avant de passer à la suivante. */
.agent-steps.is-js .agent-step { position: relative; }
.agent-step__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.agent-step__btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.agent-step__btn:focus-visible { outline: none; }
.agent-step__btn:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.agent-step:not(.is-on):hover { background: rgb(245 244 238 / .55); }
.agent-steps .agent-step__bar {
  grid-column: 2;
  display: block;
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.agent-step__bar i { display: block; width: 0; height: 100%; background: var(--ink); }
.agent-step:not(.is-on) .agent-step__bar { visibility: hidden; }
.agent-steps__in.is-auto .agent-step.is-on .agent-step__bar i { animation: agent-step-fill 5.5s linear forwards; }
.agent-steps__in.is-fixed .agent-step.is-on .agent-step__bar i { width: 100%; transition: width .35s ease; }
@keyframes agent-step-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .agent-step__bar i { transition: none !important; }
}
.agent-steps__vis {
  display: grid;
  padding: 34px 30px;
  border-radius: var(--r-panel);
  background: var(--a-green);
  overflow: hidden;
}
.agent-steps__img {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.agent-steps:not(.is-js) .agent-steps__img:first-child,
.agent-steps__img.is-on { opacity: 1; transform: none; }
.agent-steps__img img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 26px rgb(29 29 27 / .1)); }
/* Éditeur : les quatre captures côte à côte (sur le site, une seule à la fois). */
.editor-styles-wrapper .agent-steps__vis { grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-styles-wrapper .agent-steps .agent-steps__img { grid-area: auto; opacity: 1; transform: none; }

/* ===== Travaille avec le reste de l'équipe ===== */
.agent-team__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}
.agent-team__brain { justify-self: center; max-width: 360px; margin: 0; }
.agent-team__brain img { display: block; width: 100%; height: auto; }
.agent-team .agent-team__scenario {
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--r-card);
  background: #fff;
}
/* Onglets (assets/js/agent-team-tabs.js) : un scénario à la fois. */
.agent-team__tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; }
.agent-team__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 6px;
  border: 0;
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.agent-team__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.agent-team__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.agent-team__tab .agent-team__face { width: 36px; height: 36px; }
.agent-team .agent-team__scenario[hidden] { display: none; }
@media (max-width: 640px) {
  .agent-team__tab { width: 100%; }
}

.agent-team__scenario-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.agent-team__scenario-title { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.agent-team__tag {
  flex: none;
  margin: 0;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: #f1f0ea;
  font-size: 12.5px;
  color: var(--ink);
}
.agent-team__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.agent-team__step { padding: 18px; border-radius: var(--r-card); background: var(--a-cream); }
.agent-team__step--relay { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.agent-team__who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-bottom: 14px; }
.agent-team__who--seo { --c: #f7f4cf; }
.agent-team__who--social { --c: #edcfcc; }
.agent-team__who--support { --c: #cbe2dc; }
.agent-team__who--bras { --c: #ebcea8; }
.agent-team__who--doc { --c: #dbecf4; }
.agent-team__who--pmo { --c: #d6d0ee; }
.agent-team__who--tel { --c: #d2ecc3; }
.agent-team__face {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c);
}
.agent-team__face img { position: absolute; left: -9%; top: 4%; width: 118%; max-width: none; height: 118%; }
.agent-team__who-name { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.agent-team__who--you .agent-team__who-name {
  display: inline-grid;
  place-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
}
/* Nom long (« Assistant personnel ») : l’heure passe sous le nom plutôt que de couper l’un ou l’autre. */
.agent-team__who-time { margin: 0 0 0 auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.agent-team__step-title { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.025em; line-height: 1.25; }
.agent-team__step-desc { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.agent-team .agent-team__note { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 14px; color: var(--text); }
.agent-team__note::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("../images/sphere-memoire.webp") 50% 32% / 114.6% auto no-repeat;
}

/* ===== Tarifs ===== */
.wp-block-group.agent-pricing { padding: 140px 24px 40px; }
.agent-pricing__panel {
  max-width: calc(var(--wrap) - 48px);
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--r-panel);
  background: var(--agent);
}
.agent-pricing__offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.agent-offer {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: 0 18px 36px -30px rgb(0 0 0 / .45);
}
.agent-offer--mid { box-shadow: 0 0 0 2px var(--ink), 0 26px 44px -28px rgb(0 0 0 / .5); }
.agent-offer__name { margin: 0; font-size: 26px; letter-spacing: -0.045em; line-height: 1.1; }
.agent-pricing .agent-offer__desc { margin: 8px 0 0; min-height: 3em; font-size: 15px; line-height: 1.45; color: var(--muted); }
.agent-pricing .agent-offer__price { margin: 22px 0; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.agent-offer__price strong {
  display: block;
  margin-bottom: 8px;
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.86;
  color: var(--ink);
}
.agent-offer__ctas,
.agent-offer__ctas .wp-block-button,
.agent-offer__ctas .wp-block-button__link { width: 100%; }
.agent-pricing .agent-offer__k {
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.agent-offer__rows { display: flex; flex-direction: column; gap: 11px; }
.agent-offer__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}
.agent-offer__row strong { justify-self: end; font-weight: 600; color: var(--ink); }
.agent-pricing .agent-pricing__incl { max-width: 52em; margin: 28px auto 0; font-size: 15px; text-align: center; color: var(--ink); }
.agent-pricing .agent-pricing__more { margin: 24px 0 0; text-align: center; }
.agent-pricing__more a { font-weight: 500; color: var(--ink); }

/* ===== IA souveraine ===== */
.wp-block-group.agent-sov {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  color: #fff;
}
.agent-sov .agent-section-title { color: #fff; }
.agent-sov p.agent-section-sub { color: rgb(255 255 255 / .45); }
.agent-sov p.agent-section-lead { color: rgb(255 255 255 / .7); }
.agent-sov__list { display: flex; flex-direction: column; gap: 12px; }
.agent-sov__item {
  position: relative;
  padding: 20px 20px 20px 80px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: var(--r-card);
  background: rgb(255 255 255 / .06);
}
.agent-sov__item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-tile);
  background: rgb(255 255 255 / .1) var(--i) center / 22px no-repeat;
}
.agent-sov__item--server { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='4' width='16' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='16' height='7' rx='1.5'/%3E%3Cpath d='M8 7.5h.01M8 16.5h.01'/%3E%3C/svg%3E"); }
.agent-sov__item--shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l7 3v5c0 4.2-3 7.6-7 9-4-1.4-7-4.8-7-9v-5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.agent-sov__item--folder { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a2 2 0 0 1 2-2h4l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.agent-sov__title { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.agent-sov .agent-sov__desc { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: rgb(255 255 255 / .65); }

/* ===== Appel final : l'audit offert ===== */
.wp-block-group.agent-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
}
.agent-cta .agent-cta__ctas { justify-content: flex-start; margin-top: 26px; gap: 12px; }
.agent-score {
  padding: 22px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.agent-score__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.agent-score__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.agent-score__tag { margin: 0; padding: 3px 9px; border-radius: var(--r-pill); background: #f1f0ea; font-size: 11.5px; color: var(--ink); }
.agent-score__main { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center; }
.agent-score__gauge {
  display: grid;
  place-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79%),
    conic-gradient(#c9a12a 0 var(--v, 62%), #f1f0ea 0);
}
.agent-score__n { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.agent-score__of { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.agent-score__vs { display: flex; flex-direction: column; gap: 9px; }
.agent-score__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; align-items: center; gap: 8px; }
/* Longueurs par défaut (éditeur) ; sur le site, functions.php pose --v d'après le chiffre de la ligne. */
.agent-score__row--you { --v: 62%; --bar: #c9a12a; }
.agent-score__row--a { --v: 71%; }
.agent-score__row--b { --v: 48%; }
.agent-score__who,
.agent-score__v { margin: 0; font-size: 13px; color: var(--muted); }
.agent-score__row--you .agent-score__who { font-weight: 600; color: var(--ink); }
.agent-score__v { text-align: right; font-weight: 600; color: var(--ink); }
.agent-cta .agent-score__bar {
  width: 100%;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  opacity: 1;
  background: linear-gradient(to right, var(--bar, #d9d6ca) var(--v), #f1f0ea var(--v));
}
.agent-cta .agent-score__k { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.agent-score__acts { display: flex; flex-direction: column; gap: 6px; counter-reset: act; }
.agent-score__act {
  counter-increment: act;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: #f6f5f0;
  font-size: 13px;
  color: var(--ink);
}
.agent-score__act::before {
  content: counter(act);
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: calc(var(--r-sm) * .6);
  background: var(--agent);
  font-size: 11.5px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .agent-steps__in,
  .agent-team__top,
  .wp-block-group.agent-sov,
  .wp-block-group.agent-cta { grid-template-columns: minmax(0, 1fr); }
  .agent-team__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-pricing__offers { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .agent-pricing__panel { padding: 24px 16px; }
  .agent-pricing .agent-offer__desc { min-height: 0; }
  .wp-block-group.agent-team,
  .wp-block-group.agent-sov,
  .wp-block-group.agent-cta { padding: 160px 48px 88px; }
  .agent-team::before,
  .agent-sov::before,
  .agent-cta::before { inset: 96px 16px 24px; }
  .agent-score { transform: none; }
}
@media (max-width: 640px) {
  .agent-team__steps { grid-template-columns: minmax(0, 1fr); }
  .agent-team__scenario { padding: 18px; }
  .agent-team__brain { max-width: 240px; }
  .agent-team__scenario-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .wp-block-group.agent-team,
  .wp-block-group.agent-sov,
  .wp-block-group.agent-cta { padding: 144px 30px 72px; }
  .wp-block-group.agent-video,
  .wp-block-group.agent-steps,
  .wp-block-group.agent-pricing { padding: 96px 16px 32px; }
  .agent-score__main { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .agent-score__vs { width: 100%; }
}

/* ==========================================================================
   « Agent — Héro avec scène » (pattern agent-hero-scene), comme la maquette :
   texte centré, puis la scène sur un aplat à la couleur de l'agent. Les
   emplacements des logos (agent-hs__chip--1..8) et des cartes (par paire) sont
   fixés ici ; assets/js/agent-hero-scene.js trace les rayons, courbe les deux
   libellés des anneaux et allume chaque carte avec ses logos.
   Les éléments placés portent `.agent-hs .wp-block-group.` : dans l'éditeur,
   `.block-editor-block-list__layout .block-editor-block-list__block` les remet
   sinon en position: relative (scène en désordre).
   ========================================================================== */
.agent-hs { --agent-vivid: #c9a12a; --soft: #f6f5f0; }
.wp-block-group.agent-hs { padding: 150px 24px 40px; overflow-x: clip; background: #fff; }
.agent-hs p { margin: 0; }
.agent-hs figure { margin: 0; }

/* ----- Texte ----- */
.agent-hs__intro { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.agent-hs__crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .7);
  font-size: 14px;
  color: var(--muted);
}
.agent-hs__crumb a { color: var(--muted); text-decoration: underline; text-decoration-color: rgb(29 29 27 / .3); text-underline-offset: 3px; }
.agent-hs__crumb a:hover { color: var(--ink); }
.agent-hs__crumb strong { font-weight: 500; color: var(--ink); }
.agent-hs .agent-hs__title,
.agent-hs .agent-hs__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, comme le héros de l'accueil (maquette, option « 2e ligne »). */
.agent-hs .agent-hs__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);
}
.agent-hs__lead { max-width: 36em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.agent-hs__ctas { justify-content: center; gap: 12px; }
.agent-hs .agent-hs__price { margin-top: -8px; font-size: 15px; color: var(--muted); }
.agent-hs__price a { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.agent-hs__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.agent-hs__trust-item { display: inline-flex; align-items: center; gap: 7px; }
.agent-hs__trust-item::before {
  content: "";
  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;
}

/* ----- Les visages (fichiers visage-*.svg) dans un rond ou une tuile ----- */
.agent-hs__mini,
.agent-hs__crumb-face { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--agent); }
.agent-hs__crumb-face { width: 28px; height: 28px; }
.agent-hs__mini img,
.agent-hs__crumb-face img { position: absolute; left: -9%; top: 4%; width: 118%; max-width: none; height: 118%; }

/* ----- La scène ----- */
.agent-hs .agent-hs__stage {
  position: relative;
  max-width: calc(var(--wrap) - 48px);
  height: 700px;
  margin: 40px auto 0;
  border-radius: var(--r-panel);
  background: var(--agent);
  isolation: isolate;
}
.agent-hs .wp-block-group.agent-hs__orbits {
  position: absolute;
  margin: 0;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 600px;
  max-width: 100%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}
/* Anneaux : pointillés extérieurs (Google et les IA), disque intérieur (vos outils). */
.agent-hs__orbits::before,
.agent-hs__orbits::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.agent-hs__orbits::before { width: 84%; height: 84%; border: 1px dashed rgb(59 58 54 / .38); }
.agent-hs__orbits::after { width: 54%; height: 54%; background: rgb(255 255 255 / .88); box-shadow: 0 0 0 1px rgb(59 58 54 / .16); }
.agent-hs__lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.agent-hs__beam { stroke: var(--agent-vivid); stroke-width: .32; stroke-linecap: round; stroke-dasharray: .9 1.3; opacity: 0; transition: opacity .45s ease; }
.agent-hs__beam.is-on { opacity: .95; animation: agent-hs-beam 1.1s linear infinite; }
@keyframes agent-hs-beam { to { stroke-dashoffset: -2.2; } }
.agent-hs__arc-svg { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 1.7px; font-weight: 600; letter-spacing: .34px; fill: var(--muted); paint-order: stroke; stroke: var(--agent); stroke-width: .7px; stroke-linejoin: round; }
.agent-hs__arc-svg--in { stroke: #fff; }
/* Libellés des anneaux : droits sans script, courbés par le script. */
.agent-hs p.agent-hs__arc {
  position: absolute;
  margin: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-size: clamp(9px, 1.7cqi, 11px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.agent-hs p.agent-hs__arc--in { top: 26%; }
.agent-hs p.agent-hs__arc--out { top: 9%; }
.agent-hs.is-js p.agent-hs__arc { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

.agent-hs .wp-block-group.agent-hs__chip {
  position: absolute;
  margin: 0;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 9.5cqi;
  height: 9.5cqi;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / .4);
  transform: translate(-50%, -50%);
  transition: scale .35s ease, box-shadow .35s ease;
}
.agent-hs__chip--1 { --x: 30.91; --y: 30.91; }
.agent-hs__chip--2 { --x: 69.09; --y: 30.91; }
.agent-hs__chip--3 { --x: 69.09; --y: 69.09; }
.agent-hs__chip--4 { --x: 30.91; --y: 69.09; }
.agent-hs__chip--5 { --x: 10.53; --y: 35.64; }
.agent-hs__chip--6 { --x: 10.53; --y: 64.36; }
.agent-hs__chip--7 { --x: 89.47; --y: 35.64; }
.agent-hs__chip--8 { --x: 89.47; --y: 64.36; }
.agent-hs__chip-logo { display: grid; place-items: center; width: 54%; height: 54%; }
.agent-hs__chip-logo img { width: 100%; height: 100%; object-fit: contain; }
.agent-hs p.agent-hs__chip-l {
  position: absolute;
  margin: 0;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(11px, 2.1cqi, 13px);
  white-space: nowrap;
  color: var(--text);
  pointer-events: none;
}
.agent-hs .agent-hs__chip--1 p.agent-hs__chip-l,
.agent-hs .agent-hs__chip--2 p.agent-hs__chip-l { top: auto; bottom: calc(100% + 6px); }
.agent-hs__chip.is-on { scale: 1.16; box-shadow: 0 0 0 1.5px var(--ink), 0 12px 22px -10px rgb(0 0 0 / .45); }
.agent-hs__chip.is-on .agent-hs__chip-l { color: var(--ink); }

.agent-hs .wp-block-group.agent-hs__agent {
  position: absolute;
  margin: 0;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24cqi;
  transform: translate(-50%, -50%);
}
.agent-hs__agent-face {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: calc(var(--r-tile) * 2.3);
  overflow: hidden;
  background: var(--agent);
  box-shadow: 0 0 0 7px rgb(255 255 255 / .75), 0 26px 44px -22px rgb(0 0 0 / .45);
}
.agent-hs__agent-face img { position: absolute; left: 7%; top: 9%; width: 86%; max-width: none; height: 91%; }
.agent-hs p.agent-hs__agent-name { position: absolute; margin: 0; top: calc(100% + 14px); font-size: clamp(13px, 2.6cqi, 16px); font-weight: 600; white-space: nowrap; color: var(--ink); }

/* ----- Les quatre cartes d'exemple ----- */
.agent-hs .wp-block-group.agent-hs__card {
  position: absolute;
  margin: 0;
  left: var(--l);
  top: var(--t);
  z-index: 2;
  width: var(--w);
  padding: 16px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--ink);
  transform: rotate(var(--rot));
  animation: agent-hs-float 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: box-shadow .35s ease;
}
@keyframes agent-hs-float { 50% { transform: rotate(var(--rot)) translateY(-7px); } }
.agent-hs__card.agent-hs__pair-1 { --l: 2.5%; --t: 6%; --w: 272px; --rot: -3deg; --delay: -3s; }
.agent-hs__card.agent-hs__pair-2 { --l: 74%; --t: 5%; --w: 278px; --rot: 3deg; --delay: -5s; }
.agent-hs__card.agent-hs__pair-3 { --l: 3%; --t: 56%; --w: 282px; --rot: 2deg; --delay: -1s; }
.agent-hs__card.agent-hs__pair-4 { --l: 73.5%; --t: 52%; --w: 288px; --rot: -2deg; --delay: -2s; }
.agent-hs__card.is-on { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.agent-hs__card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.25; text-align: left; }
.agent-hs__card-ht { min-width: 0; }
.agent-hs__card-t { font-weight: 600; color: var(--ink); }
.agent-hs__card-s { font-size: 12.5px; color: var(--muted); }
.agent-hs__card-logo { flex: none; width: 22px; height: 22px; margin-left: auto; }
.agent-hs__card-logo img { width: 100%; height: 100%; object-fit: contain; }
.agent-hs__rows { display: flex; flex-direction: column; gap: 6px; }
.agent-hs__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 10px;
  border-radius: var(--r-sm);
  background: var(--soft);
  text-align: left;
}
.agent-hs__row-l { flex: 1; min-width: 0; }
.agent-hs__row-logo { flex: none; width: 16px; height: 16px; }
.agent-hs__row-logo img { width: 100%; height: 100%; object-fit: contain; }
.agent-hs__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: #f1f0ea;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--ink);
}
.agent-hs__tag--ok { background: #e4f2e8; color: #185e3b; }
.agent-hs__tag--ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.agent-hs__tag--warn { background: #f8e0da; color: #8f3324; }
.agent-hs__tag--fix { background: #f7f4cf; color: #5f5212; }
.agent-hs__state,
.agent-hs__val { padding-right: 4px; font-weight: 600; color: var(--ink); }
.agent-hs__state--ok { color: #185e3b; }
.agent-hs__state--ko { color: #8f3324; }
.agent-hs .agent-hs__q { margin-bottom: 10px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--soft); line-height: 1.4; text-align: left; color: var(--text); }
.agent-hs .agent-hs__art-t { margin-bottom: 10px; font-family: var(--agentsia-font-serif, 'Quattrocento', Georgia, serif); font-size: 19px; line-height: 1.18; text-align: left; color: var(--ink); }
.agent-hs__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-hs .agent-hs__mbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.agent-hs__mbtn { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; font-size: 12.5px; color: var(--ink); }
.agent-hs__mbtn--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.agent-hs .agent-hs__big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.agent-hs__big-n { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.agent-hs__big-l { font-size: 14px; color: var(--muted); }
.agent-hs .agent-hs__spark { margin-bottom: 10px; }
.agent-hs__spark img { display: block; width: 100%; height: 60px; }

@media (max-width: 1100px) {
  .agent-hs .agent-hs__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: auto; margin-top: 32px; padding: 24px; }
  .agent-hs .wp-block-group.agent-hs__orbits { position: relative; left: auto; top: auto; grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); transform: none; }
  .agent-hs .wp-block-group.agent-hs__card { position: relative; left: auto; top: auto; width: auto; transform: none; animation: none; }
}
@media (max-width: 640px) {
  .wp-block-group.agent-hs { padding: 120px 16px 32px; }
  .agent-hs .agent-hs__stage { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .agent-hs .wp-block-group.agent-hs__card.agent-hs__pair-3,
  .agent-hs .wp-block-group.agent-hs__card.agent-hs__pair-4 { display: none; }
  .agent-hs .wp-block-group.agent-hs__chip { width: 11cqi; height: 11cqi; }
  .agent-hs .wp-block-group.agent-hs__agent { width: 27cqi; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-hs .wp-block-group.agent-hs__card { animation: none; }
  .agent-hs__beam.is-on { animation: none; }
  .agent-hs__chip { transition: none; }
}
/* Dans l'éditeur : cartes immobiles, pour cliquer dedans sans qu'elles bougent. */
.editor-styles-wrapper .agent-hs .wp-block-group.agent-hs__card { animation: none; }

/* Héros « texte seul » : catalogue /agents-ia/ et sous-pages d'agent (pas de constellation).
   Le panneau de couleur était dimensionné pour la constellation (hauteur fixe, collé en bas) : sans elle, le titre et
   le bas du héros en sortaient (en mobile surtout). Sous-pages : tout le texte dans le panneau à la couleur de l'agent.
   Catalogue : fond blanc, comme le héros de la page Tarifs. Pastille du fil d'Ariane : inc/agent-hero-crumb.php. */
.agent-hero__inner:not(:has(> .agent-hero__card)) .wp-block-spacer { display: none; }
.agent-hero__inner:not(:has(> .agent-hero__card)) .agent-hero__text { max-width: 860px; margin-inline: auto; }
.agent-hero__inner:not(:has(> .agent-hero__card)) .agent-hero__headline { margin: 0; }
.agent-hero__inner:not(:has(> .agent-hero__card)) .agent-hero__headline:not(:has(+ .agent-hero__subline)) { margin-bottom: 22px; }
.agent-hero__inner:not(:has(> .agent-hero__card)) .agent-hero__subline { margin: 0 0 22px; }
.agent-hero__inner:not(:has(> .agent-hero__card)) .agent-hero__desc { margin: 0 0 30px; }
.agent-hero__inner:not(:has(> .agent-hero__card)) .agent-hero__micro { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.wp-block-group.agent-hero:has(.agent-hero__inner:not(:has(> .agent-hero__card))) { padding: 250px 24px 24px; }
.agent-hero__inner:not(:has(> .agent-hero__card)) { margin-inline: auto; padding: 72px 48px 64px; }
.agent-hero__inner:not(:has(> .agent-hero__card))::after { top: 0; height: auto; }
/* Catalogue : sans panneau. */
:is(.post-type-archive-ai_agent, .page-template-agents-ia) .wp-block-group.agent-hero:has(.agent-hero__inner:not(:has(> .agent-hero__card))) { padding: 260px 24px 40px; }
:is(.post-type-archive-ai_agent, .page-template-agents-ia) .agent-hero__inner:not(:has(> .agent-hero__card)) { padding: 0; }
:is(.post-type-archive-ai_agent, .page-template-agents-ia) .agent-hero__inner:not(:has(> .agent-hero__card))::after { display: none; }
@media (max-width: 900px) {
  .wp-block-group.agent-hero:has(.agent-hero__inner:not(:has(> .agent-hero__card))) { padding: 222px 16px 16px; }
  .agent-hero__inner:not(:has(> .agent-hero__card)) { padding: 40px 20px 36px; }
  :is(.post-type-archive-ai_agent, .page-template-agents-ia) .wp-block-group.agent-hero:has(.agent-hero__inner:not(:has(> .agent-hero__card))) { padding: 226px 16px 24px; }
}
.agent-hero__crumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 26px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}
.agent-hero__crumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.agent-hero__crumb a:hover { color: var(--ink); }
.agent-hero__crumb [aria-current] { color: var(--ink); }

/* Étapes sans captures (page du Documentaliste) : la liste seule, centrée. */
.agent-steps__in:not(:has(.agent-steps__vis)) { grid-template-columns: minmax(0, 760px); justify-content: center; }
