/* =========================================================
   Flex — pages des agents (agents/<id>.html)
   S'appuie sur ../site.css (couleurs, polices, en-tête, boutons, conversation,
   étapes, pied de page) et n'ajoute que ce qui est propre aux pages agents (préfixe .ag-).
   ========================================================= */

/* Couleur de l'agent : seulement en touches (halo, portrait), la lavande reste la couleur de Flex */
.page-agent { --agent: #A894FF; }
.page-agent[data-agent="cindy"]  { --agent: #F59E62; }
.page-agent[data-agent="sophie"] { --agent: #C38BFF; }
.page-agent[data-agent="marc"]   { --agent: #7CC97A; }
.page-agent[data-agent="julie"]  { --agent: #5AA9F0; }
.page-agent[data-agent="ines"]   { --agent: #F07489; }
.page-agent[data-agent="herve"]  { --agent: #7C8CF8; }
.page-agent[data-agent="nora"]   { --agent: #3FC8B0; }
.page-agent[data-agent="paul"]   { --agent: #D9B86C; }

/* ---------- Navigation ---------- */
@media (min-width: 1080px) {
  .nav-liens a.is-courant { color: #fff; background: rgba(168, 148, 255, .1); }
}
.menu-mobile li a.is-courant { color: var(--lavande); }
.menu-agents { margin-top: 26px; }
.menu-agents-titre { margin-bottom: 12px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.menu-mobile .menu-agents ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-mobile .menu-agents li a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 11px 4px 10px; border: 1px solid var(--trait); border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  font: 600 .84rem/1 var(--f-titre); letter-spacing: -.01em; color: var(--texte-2);
}
.menu-mobile .menu-agents li a[aria-current="page"] { border-color: rgba(168, 148, 255, .55); background: rgba(168, 148, 255, .1); color: #fff; }
.menu-agents .avatar { width: 34px; height: 34px; font-size: .9rem; }

/* ---------- Fil d'Ariane ---------- */
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.fil-ariane li { display: inline-flex; align-items: center; gap: 8px; }
.fil-ariane li + li::before { content: "/"; color: rgba(168, 148, 255, .35); }
.fil-ariane a { display: inline-flex; align-items: center; min-height: 32px; color: var(--texte-2); text-decoration: none; transition: color .2s; }
.fil-ariane a:hover { color: #fff; }
.fil-ariane [aria-current] { color: var(--lavande); }

/* ---------- Héros ---------- */
.ag-heros { position: relative; padding: calc(var(--entete) + 14px) 0 52px; overflow-x: clip; }
html:not(.js) .ag-heros { padding-top: calc(var(--entete) + 74px); }
.ag-heros .heros-halo--a { background: radial-gradient(closest-side, color-mix(in srgb, var(--agent) 32%, rgba(91, 63, 207, .5)), rgba(91, 63, 207, .1) 55%, transparent); }
.ag-heros-grille { position: relative; z-index: 1; display: grid; grid-template-areas: "haut" "visuel" "bas"; gap: 26px; }
.ag-heros-haut { grid-area: haut; display: flex; flex-direction: column; align-items: flex-start; }
.ag-heros-bas { grid-area: bas; display: flex; flex-direction: column; align-items: flex-start; }
.ag-visuel { grid-area: visuel; position: relative; min-width: 0; }
.ag-heros .pastille { margin-top: 14px; }
.ag-titre { margin: 18px 0 0; font-size: 1rem; line-height: 1; }
.ag-prenom { display: block; font-size: clamp(4.3rem, 2.4rem + 7.6vw, 8.4rem); line-height: .86; letter-spacing: -.035em; }
.ag-accroche {
  display: block; max-width: 13.5em; margin-top: .32em;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.02; letter-spacing: -.03em;
  color: var(--lavande); text-wrap: balance;
}
.ag-chapeau { font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem); line-height: 1.55; color: var(--texte-2); max-width: 37ch; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; width: 100%; }
.ag-actions .btn { flex: 1 1 220px; }
.ag-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: 100%; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--trait); }
.ag-outils-titre { margin-right: 6px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.ag-outils span:not(.ag-outils-titre) {
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--trait-2); background: rgba(255, 255, 255, .03);
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--texte-2);
}

/* Scène du personnage */
.ag-scene {
  position: relative; isolation: isolate;
  height: clamp(330px, 92vw, 460px);
  border-radius: 30px; overflow: hidden;
  /* tour 3 : personnage moins grand (environ 70 % d'avant), centré, la tête vers 40-50 % de la hauteur ; placé
     par rapport à la carte (unités de conteneur). --s : côté du carré de l'image (et de la 3D, même cadrage) ;
     --cx : centre horizontal ; --cy : hauteur du centre de la tête ; --bx / --by : départ de la bulle */
  container-type: size;
  --s: 64cqw; --cx: 50cqw; --cy: 50cqh; --bx: .2; --by: .1;
  border: 1px solid var(--trait-2);
  background: radial-gradient(110% 80% at 50% 28%, color-mix(in srgb, var(--agent) 16%, #2C2456) 0%, #1C1838 46%, #131129 100%);
  box-shadow: 0 50px 120px -50px color-mix(in srgb, var(--agent) 30%, rgba(91, 63, 207, .75)), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.ag-scene::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 45% at 50% 44%, color-mix(in srgb, var(--agent) 30%, rgba(168, 148, 255, .2)), transparent 72%);
}
.ag-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.ag-scene .scene-sol { background: radial-gradient(closest-side, color-mix(in srgb, var(--agent) 22%, rgba(168, 148, 255, .22)), transparent); }
.ag-scene .perso-hote { inset: 17% 0 0; }
@supports (width: 1cqw) {
  /* le centre de la tête est à 34,5 % du haut du carré (cadrage « hero » de personnages.js) */
  .ag-scene .perso-hote { inset: auto; width: var(--s); height: var(--s); left: calc(var(--cx) - var(--s) / 2); top: calc(var(--cy) - .345 * var(--s)); }
}
.ag-bulle {
  position: absolute; top: 6%; right: 5%; z-index: 3;
  max-width: min(270px, 64%);
  padding: 12px 16px; border-radius: 18px 18px 18px 6px;
  background: rgba(240, 238, 250, .97); color: var(--encre);
  font: 600 .95rem/1.35 var(--f-titre); letter-spacing: -.01em;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  transform-origin: 0% 100%;
}
/* petite pointe vers la bouche du personnage */
.ag-bulle::after {
  content: ""; position: absolute; left: 3px; bottom: -9px; width: 16px; height: 13px;
  background: inherit; clip-path: polygon(0 100%, 12% 0, 100% 0);
}
@media (min-width: 720px) {
  @supports (width: 1cqw) {
    /* la bulle part juste au-dessus de sa tempe (côté opposé au journal) et grandit vers le haut */
    .ag-bulle { top: auto; right: auto; left: calc(var(--cx) + var(--bx) * var(--s)); bottom: calc(100cqh - var(--cy) + var(--by) * var(--s)); max-width: min(270px, calc(100cqw - var(--cx) - var(--bx) * var(--s) - 16px)); }
  }
}
.ag-etiquette {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(15, 14, 26, .74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--trait-2);
  font-size: .92rem;
}
.ag-etiquette b { font: 700 1rem/1 var(--f-titre); }
.ag-etiquette span:last-child { font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lavande); }

/* Journal de l'agent (exemple) */
.ag-journal {
  position: relative; z-index: 4; display: none;
  padding: 14px 14px 8px; border-radius: 20px;
  background: rgba(22, 20, 42, .86);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--trait-2);
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ag-journal-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.ag-journal-titre { display: flex; align-items: center; gap: 8px; font: 700 .95rem/1 var(--f-titre); letter-spacing: -.01em; }
.ag-journal-titre .ic { color: var(--lavande); width: 17px; height: 17px; }
.ag-journal .journal-liste li { padding: 7px 2px; }
.ag-tag--note { color: var(--texte-2); background: rgba(255, 255, 255, .06); }

@media (min-width: 720px) {
  .ag-actions { width: auto; }
  .ag-actions .btn { flex: 0 0 auto; }
  /* tablette : le journal est posé en bas à gauche de la carte, le personnage se décale à droite */
  .ag-scene { height: 500px; --s: 58cqh; --cx: 62cqw; --cy: 42cqh; }
  .ag-journal { display: block; position: absolute; left: 18px; bottom: 18px; width: 352px; }
  .ag-etiquette { left: auto; right: 16px; }
}
@media (min-width: 1024px) {
  .ag-heros { padding: calc(var(--entete) + 20px) 0 56px; }
  .ag-heros-grille {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    grid-template-areas: "haut visuel" "bas visuel";
    column-gap: 44px; row-gap: 0;
    min-height: calc(100svh - var(--entete) - 76px);
    align-content: center;
  }
  .ag-heros-haut { align-self: end; }
  .ag-heros-bas { align-self: start; padding-top: 22px; }
  .ag-visuel { align-self: center; padding-bottom: 36px; }
  .ag-scene { height: clamp(420px, calc(100svh - 220px), 560px); margin-left: 8%; --s: min(64cqw, 60cqh); --cx: 50cqw; --cy: 41cqh; }
  @supports not (width: 1cqw) { .ag-scene .perso-hote { inset: 11% 0 0 12%; } }
  .ag-journal { left: 0; bottom: 0; width: 352px; }
}
@media (min-width: 1360px) {
  .ag-scene { margin-left: 14%; }
  .ag-journal { left: -2%; }
}

/* ---------- En bref ---------- */
.ag-reperes { position: relative; z-index: 1; border-block: 1px solid var(--trait); background: rgba(23, 21, 43, .55); }
.ag-reperes ul { list-style: none; display: grid; }
.ag-reperes li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--trait); min-width: 0; }
.ag-reperes li:last-child { border-bottom: 0; }
.ag-reperes b { font: 500 1.45rem/1.1 var(--f-mono); letter-spacing: -.03em; color: var(--texte); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ag-reperes span { font-size: .93rem; line-height: 1.4; color: var(--texte-2); }
@media (min-width: 820px) {
  .ag-reperes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-reperes li { gap: 10px; padding: 32px 30px; border-bottom: 0; border-left: 1px solid var(--trait); }
  .ag-reperes li:first-child { padding-left: 0; border-left: 0; }
  .ag-reperes b { font-size: 1.75rem; }
}

/* ---------- Ce qu'il fait ---------- */
.ag-fait-grille { list-style: none; display: grid; gap: 12px; }
.ag-fait { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.ag-fait-num { position: absolute; top: 22px; right: 22px; font: 500 .72rem/1 var(--f-mono); color: var(--texte-3); letter-spacing: .06em; }
.ag-fait-icone {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px;
  border-radius: 15px; border: 1px solid var(--trait-2); color: #fff;
  background: linear-gradient(180deg, rgba(168, 148, 255, .22), rgba(91, 63, 207, .12));
}
.ag-fait-icone .ic { width: 23px; height: 23px; }
.ag-fait h3 { font-size: 1.26rem; padding-right: 28px; }
.ag-fait p { color: var(--texte-2); font-size: .97rem; line-height: 1.5; }
@media (min-width: 620px) { .ag-fait-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .ag-fait-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ag-fait { padding: 28px; min-height: 220px; }
}

/* ---------- Exemple (conversation qui s'écrit) ---------- */
.ag-exemple-grille { display: grid; gap: 34px; }
.ag-ex-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ag-rejouer .ic { width: 18px; height: 18px; }
.ag-ex-note { font: 500 .74rem/1.55 var(--f-mono); color: var(--texte-3); }
.ag-cadre {
  min-width: 0; padding: 10px; border-radius: 28px;
  border: 1px solid var(--trait-2);
  background: linear-gradient(180deg, rgba(31, 27, 58, .9), rgba(19, 17, 38, .94));
  box-shadow: 0 40px 100px -50px rgba(91, 63, 207, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ag-conv .conv-fil { max-height: none; height: auto; overflow: visible; padding: 18px 12px 22px; }
.ag-conv .conv-tete .etiquette-exemple { flex: none; }
@media (max-width: 479px) { .ag-fictif { display: none; } }
.ag-conv .msg { max-width: 96%; }
.ag-conv .carte-msg { width: min(340px, 100%); }
.ag-conv .msg-corps { min-width: 0; }
/* message pas encore écrit : il garde sa place ; les points « en train d'écrire » s'affichent en haut de cette place */
.ag-attente { visibility: hidden; }
.ag-conv .msg-points { top: 0; bottom: auto; }
.ag-cm-stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ag-cm-stats li { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px solid #E8E5F1; }
.ag-cm-stats b { font: 800 1.35rem/1 var(--f-titre); letter-spacing: -.03em; color: var(--encre); font-variant-numeric: tabular-nums; }
.ag-cm-stats span { font-size: .74rem; color: #6C6888; }
.ag-hashtags { margin-top: 6px; font-size: .78rem; color: #4B32B8; overflow-wrap: anywhere; }
.ag-cm-google { background: #fff !important; color: #3B5BDB !important; border: 1px solid #E1DEEC; }
.ag-manque { padding: 0 4px; border-radius: 4px; background: #FFF1D6; color: #8A5300; font-family: var(--f-mono); font-size: .92em; white-space: nowrap; }
/* mail entrant (Hervé) : ni vous, ni l'agent */
.ag-entrant {
  display: flex; gap: 11px; align-items: flex-start; align-self: stretch;
  padding: 12px 14px; border-radius: 16px;
  border: 1px dashed rgba(168, 148, 255, .3); background: rgba(255, 255, 255, .03);
}
.ag-entrant-icone { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: rgba(168, 148, 255, .14); color: var(--lavande); }
.ag-entrant-icone .ic { width: 18px; height: 18px; }
.ag-entrant-corps { min-width: 0; display: grid; gap: 3px; }
.ag-entrant-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ag-entrant-tete b { font: 700 .95rem/1.2 var(--f-titre); }
.ag-entrant-tete span { font: 500 .64rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.ag-entrant-objet { font: 600 .86rem/1.3 var(--f-titre); color: var(--texte-2); }
.ag-entrant-texte { font-size: .92rem; line-height: 1.45; color: var(--texte); }
@media (min-width: 1024px) {
  .ag-exemple-grille { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
  .ag-ex-texte { position: sticky; top: calc(var(--entete) + 40px); }
  .ag-cadre { padding: 14px; }
  .ag-conv .conv-fil { height: auto; padding: 22px 22px 26px; }
}

/* ---------- Comment ça marche ---------- */
.ag-etape-journal {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--trait);
  background: linear-gradient(180deg, #17142E, #100E21);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 60px -36px rgba(0, 0, 0, .9);
  font-size: .9rem; line-height: 1.3;
}
.etape > .ag-etape-journal { color: var(--texte-2); }
.ag-etape-journal .avatar { width: 26px; height: 26px; font-size: .72rem; }
.ag-ej-texte { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ej-texte b { font: 700 .92rem/1 var(--f-titre); color: var(--texte); margin-right: 3px; }
.ag-etape-journal time { margin-left: auto; padding-left: 6px; font: 500 .72rem/1 var(--f-mono); color: var(--texte-3); }
/* La grille des étapes (site.css) n'a pas de colonne définie sur téléphone : sans min-width: 0, la ligne de journal
   (texte sur une seule ligne) élargit l'étape au-delà de l'écran et l'heure est coupée. */
.ag-comment .etape { min-width: 0; }
/* Ligne de journal dans un cadre étroit (téléphone, tablette) : le nom passe au-dessus du message, qui peut aller
   à la ligne. Rien n'est coupé. Sur une seule ligne dès qu'il y a la place. */
.ag-etape-journal { container-type: inline-size; }
@container (max-width: 340px) {
  .ag-ej-texte { display: grid; gap: 4px; white-space: normal; overflow: visible; text-overflow: clip; text-wrap: pretty; }
  .ag-ej-texte b { margin-right: 0; }
  .ag-etape-journal time { align-self: flex-start; margin-top: 1px; }
  .ag-etape-journal .avatar { align-self: flex-start; }
}

/* ---------- Ce qu'il ne fait jamais ---------- */
.ag-jamais {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 30px; padding: clamp(22px, 4.5vw, 56px);
  border-radius: 32px; border: 1px solid var(--trait-2);
  background: radial-gradient(120% 120% at 100% 0%, #251F4A 0%, #17152B 52%, #121027 100%);
  box-shadow: 0 50px 120px -70px rgba(91, 63, 207, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ag-jamais-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ag-jamais-note { display: flex; gap: 10px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--trait); font: 500 .76rem/1.55 var(--f-mono); color: var(--texte-2); }
.ag-jamais-note .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--lavande); }
.ag-jamais-liste { list-style: none; display: grid; gap: 10px; }
.ag-jamais-liste li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center;
  padding: 18px; border-radius: 18px; border: 1px solid var(--trait); background: rgba(13, 12, 24, .5);
}
.ag-jamais-icone { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(168, 148, 255, .1); border: 1px solid var(--trait-2); color: var(--lavande); }
.ag-jamais-icone .ic { width: 21px; height: 21px; }
.ag-jamais-liste h3 { font-size: 1.1rem; line-height: 1.22; }
.ag-jamais-liste p { grid-column: 2; color: var(--texte-2); font-size: .94rem; line-height: 1.45; }
@media (min-width: 720px) { .ag-jamais-liste { grid-template-columns: 1fr 1fr; } .ag-jamais-liste li { align-content: start; } }
@media (min-width: 1024px) { .ag-jamais { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 52px; align-items: center; } }

/* ---------- Ses collègues ---------- */
.ag-collegues { list-style: none; display: grid; gap: 12px; }
.ag-collegues > li { min-width: 0; display: flex; }
.ag-collegue {
  flex: 1; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center;
  min-height: 128px; padding: 14px 44px 14px 14px;
  color: inherit; text-decoration: none;
}
.ag-col-portrait {
  position: relative; display: block; width: 92px; height: 100px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--trait);
  background: radial-gradient(70% 62% at 50% 64%, color-mix(in srgb, var(--c) 34%, transparent), transparent 76%), rgba(255, 255, 255, .02);
}
.ag-col-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .5s var(--ease); }
.ag-collegue:hover .ag-col-portrait img { transform: translateY(-3px) scale(1.04); }
.ag-col-texte { display: grid; gap: 3px; min-width: 0; }
.ag-col-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 800 1.22rem/1.1 var(--f-titre); letter-spacing: -.025em; }
.ag-col-role { font: 500 .68rem/1.25 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lavande); }
.ag-col-desc { margin-top: 5px; font-size: .89rem; line-height: 1.42; color: var(--texte-2); }
.ag-col-relais {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 6px; border-radius: 999px;
  background: rgba(76, 197, 148, .12); color: var(--vert);
  font: 500 .6rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.ag-col-relais .ic { width: 12px; height: 12px; }
.ag-col-fleche { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; color: var(--texte-3); transition: transform .35s var(--ease), color .3s; }
.ag-collegue:hover .ag-col-fleche, .ag-collegue:focus-visible .ag-col-fleche { color: var(--lavande); transform: translateX(3px); }
.ag-collegue:focus-visible { border-radius: 24px; }
@media (min-width: 720px) { .ag-collegues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ag-collegues { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

/* ---------- Essai ---------- */
.ag-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 28px; padding: clamp(22px, 4.5vw, 56px);
  border-radius: 32px; border: 1px solid rgba(168, 148, 255, .32);
  background: radial-gradient(120% 120% at 0% 0%, #2C2559 0%, #1A1734 50%, #141229 100%);
  box-shadow: 0 50px 120px -60px rgba(124, 99, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.ag-cta-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ag-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 6px; }
.ag-cta-actions .btn { flex: 1 1 210px; }
.ag-cta-prix { max-width: 60ch; font: 500 .76rem/1.6 var(--f-mono); color: var(--texte-2); font-variant-numeric: tabular-nums; }
/* petite scène encadrée, comme celle du héros (image fixe : un seul personnage 3D par page) */
.ag-cta-visuel {
  position: relative; isolation: isolate; overflow: hidden; min-height: 300px;
  border-radius: 24px; border: 1px solid var(--trait-2);
  background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--c) 18%, #2C2456) 0%, #1C1838 52%, #131129 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ag-cta-visuel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 45% at 50% 58%, color-mix(in srgb, var(--c) 30%, rgba(168, 148, 255, .2)), transparent 72%);
}
.ag-cta-visuel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
  mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.ag-cta-portrait { position: absolute; left: 50%; bottom: 0; width: min(330px, 92%); height: auto; aspect-ratio: 1; transform: translateX(-46%); object-fit: contain; object-position: 50% 100%; }
.ag-cta-bulle {
  position: absolute; top: 18px; right: 16px; z-index: 2; max-width: min(210px, 64%);
  padding: 10px 14px; border-radius: 16px 16px 16px 5px;
  background: rgba(240, 238, 250, .97); color: var(--encre);
  font: 600 .9rem/1.3 var(--f-titre); letter-spacing: -.01em;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
}
.ag-cta-nom {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: rgba(15, 14, 26, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--trait-2);
}
.ag-cta-nom b { font: 700 .95rem/1 var(--f-titre); }
.ag-cta-nom span { font: 500 .64rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lavande); }
@media (max-width: 719px) {
  .ag-cta-visuel { min-height: 340px; }
  .ag-cta-portrait { width: min(280px, 78%); }
}
@media (min-width: 720px) {
  .ag-cta-actions { width: auto; }
  .ag-cta-actions .btn { flex: 0 0 auto; }
  .ag-cta-visuel { min-height: 360px; }
}
@media (min-width: 1024px) {
  .ag-cta { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: stretch; }
  .ag-cta-visuel { min-height: 0; }
  .ag-cta-portrait { width: min(380px, 96%); }
}

/* ---------- Portraits illustrés (Hervé, Sophie, Paul, Cindy, Marc, Julie ; 01/11/2026) ----------
   Image opaque à fond violet nuit, sans 3D : elle remplit la carte du héros (visage en haut), le bas se fond
   dans la carte ; même principe pour la scène de l'essai et les vignettes des collègues. */
.ag-scene--illustre .perso-hote { inset: 0; width: auto; height: auto; left: 0; top: 0; }
.ag-scene--illustre .perso-fixe > img {
  object-fit: cover; object-position: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent 98%); mask-image: linear-gradient(180deg, #000 64%, transparent 98%);
}
@supports (width: 1cqw) {
  /* portrait en 1:1,45 posé au centre de la scène (comme l'ancien personnage), ses bords se fondent dans la carte :
     le fond violet de l'image et celui de la carte (accordé plus bas) se rejoignent */
  .ag-scene--illustre .perso-hote { --w: min(80cqw, 76cqh); inset: auto; width: var(--w); height: calc(var(--w) * 1.45); left: calc(var(--cx) - var(--w) / 2); top: 5cqh; }
  .ag-scene--illustre .perso-fixe > img {
    --fondu-x: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 12%, #000 26%, #000 74%, rgba(0, 0, 0, .55) 88%, transparent 100%);
    --fondu-y: linear-gradient(180deg, transparent 0, #000 6%, #000 56%, rgba(0, 0, 0, .45) 74%, transparent 92%);
    -webkit-mask-image: var(--fondu-x), var(--fondu-y); -webkit-mask-composite: source-in;
    mask-image: var(--fondu-x), var(--fondu-y); mask-composite: intersect;
  }
  @media (min-width: 720px) { .ag-scene--illustre .perso-hote { --w: min(80cqw, 64cqh); top: 4cqh; } }
}
.ag-scene--illustre::after { display: none; } /* le portrait a déjà son grain */
/* fond de carte plus proche de celui du portrait (bleu nuit, lueur violette sous le buste) : pas de halo autour */
.ag-scene--illustre { background: radial-gradient(70% 60% at var(--cx, 50%) 62%, color-mix(in srgb, var(--agent) 10%, #2A1F5E) 0%, #151230 52%, #0D0B1E 100%); }
.ag-scene--illustre::before { opacity: .45; }
.ag-scene--illustre .scene-sol { display: none; }
/* la bulle reste en haut à droite, au-dessus du portrait */
.ag-scene--illustre .ag-bulle { max-width: min(220px, 52%); }
@media (min-width: 720px) {
  @supports (width: 1cqw) {
    .ag-scene--illustre .ag-bulle { left: auto; right: 5%; top: 6%; bottom: auto; max-width: min(250px, 46%); }
  }
}
.ag-col-portrait img.portrait-illustre { object-fit: cover; object-position: 50% 24%; }
/* scène de l'essai : le buste (img/<id>-hero.webp) remplit le cadre, bas fondu ; fond de cadre accordé au portrait */
.ag-cta-visuel:has(.portrait-illustre) { background: radial-gradient(80% 60% at 50% 66%, color-mix(in srgb, var(--c) 10%, #2A1F5E) 0%, #151230 55%, #0D0B1E 100%); }
.ag-cta-visuel:has(.portrait-illustre)::after { display: none; }
.ag-cta-portrait.portrait-illustre {
  left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none;
  object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .45) 80%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .45) 80%, transparent 98%);
}
/* téléphone : le portrait descend un peu pour laisser la bulle au-dessus de la tête */
@media (max-width: 719px) {
  .ag-cta-portrait.portrait-illustre {
    top: 16%; height: 84%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 60%, rgba(0, 0, 0, .45) 80%, transparent 98%);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 60%, rgba(0, 0, 0, .45) 80%, transparent 98%);
  }
}

/* ---------- Sans JS ou sans animation : rien de caché ---------- */
html:not(.motion) .ag-attente { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .ag-attente { visibility: visible !important; }
}

/* ---------- Offre qui comprend l'agent (tarifs 2026 : Boite IA/01 Stratégie/Grille tarifaire 2026.md) ---------- */
.ag-inclus { margin-top: 16px; }
.ag-inclus a {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid rgba(76, 197, 148, .35); background: rgba(76, 197, 148, .08);
  font: 500 .78rem/1.35 var(--f-mono); color: var(--texte); text-decoration: none;
  transition: border-color .25s, background-color .25s;
}
.ag-inclus a::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); }
.ag-inclus a:hover { border-color: rgba(76, 197, 148, .6); background: rgba(76, 197, 148, .14); }
.ag-inclus b { color: var(--vert); font-weight: 500; }
.ag-offre { display: grid; gap: 8px; width: 100%; max-width: 600px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--trait-2); background: rgba(13, 12, 24, .45); }
.ag-offre-nom { font: 700 1.08rem/1.25 var(--f-titre); letter-spacing: -.01em; color: var(--texte); }
.ag-offre-nom b { color: var(--lavande); font-weight: 800; }
.ag-offre-prix { font: 500 .8rem/1.5 var(--f-mono); color: var(--texte-2); }
.ag-offre-equipe { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.45; color: var(--texte-2); }
.ag-offre-equipe .avatars { flex: none; }
.ag-offre-equipe .avatars .avatar { width: 30px; height: 30px; margin-left: -8px; box-shadow: 0 0 0 2px #1B1836; }
.ag-offre-equipe .avatars .avatar:first-child { margin-left: 0; }
@media (max-width: 420px) { .ag-offre-equipe { flex-direction: column; align-items: flex-start; gap: 8px; } }
