/* AI Business Accelerator : démonstration « vos agents IA travaillent ensemble ».
   Fond clair de la page, console sombre ; un orchestrateur, huit agents, deux demandes qui alternent. */
.ag-demo { --nuit: #0a0a14; --lilas: #c4b5fd; --or: #f5dcb0; --or2: #e8c07d; --vert: #34d399; --wa: #25d366; }
.ag-demo, .ag-demo * { box-sizing: border-box; }
:where(.ag-demo) * { margin: 0; padding: 0; }
.ag-demo .ag-onglets, .ag-demo .ag-console { max-width: 1104px; }
/* ── Onglets des deux demandes ── */
.ag-onglets { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ag-onglet { position: relative; overflow: hidden; flex: 1 1 280px; text-align: left; cursor: pointer; font: inherit; border: 1px solid rgba(15,21,35,.12);
  background: #fff; border-radius: 14px; padding: 14px 18px 16px; color: #1f2a3d; transition: border-color .3s, box-shadow .3s, transform .3s; }
.ag-onglet small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #7c3aed; margin-bottom: 4px; }
.ag-onglet b { font-weight: 600; font-size: 15.5px; }
.ag-onglet i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--or)); }
.ag-onglet[aria-selected="true"] { border-color: rgba(124,58,237,.45); box-shadow: 0 12px 30px rgba(15,21,35,.12); transform: translateY(-2px); }
.ag-onglet:focus-visible { outline: 2px solid #7c3aed; outline-offset: 3px; }

/* ── Console sombre ── */
.ag-console { position: relative; border-radius: 24px; padding: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #1d1747 0%, #0e0b24 45%, #08071a 100%); box-shadow: 0 34px 80px rgba(15,21,35,.32);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; }
.ag-console::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px;
  -webkit-mask: radial-gradient(80% 70% at 30% 40%, #000, transparent); mask: radial-gradient(80% 70% at 30% 40%, #000, transparent); }
.ag-col { position: relative; min-width: 0; }
.ag-col-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.ag-live { display: inline-flex; align-items: center; gap: 7px; color: var(--vert); letter-spacing: 1.2px; }
.ag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ag-pouls 1.8s infinite; }
@keyframes ag-pouls { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ── Réseau d'agents ── */
.ag-reseau { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin: 22px auto 0; }
.ag-reseau svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ag-lien { stroke: rgba(196,181,253,.13); stroke-width: .35; }
.ag-trait { fill: none; stroke: url(#ag-degrade); stroke-width: .7; stroke-linecap: round; filter: drop-shadow(0 0 1.2px rgba(0,212,255,.9)); }
.ag-paquet { fill: #fff; filter: drop-shadow(0 0 1.6px #00d4ff) drop-shadow(0 0 3px rgba(168,85,247,.9)); }
.ag-orbite { fill: none; stroke: rgba(196,181,253,.08); stroke-width: .3; stroke-dasharray: 1 2.2; transform-origin: 50px 50px; animation: ag-tourne 60s linear infinite; }
@keyframes ag-tourne { to { transform: rotate(360deg); } }
.ag-agent { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; transition: opacity .4s; }
.ag-rond { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--c, var(--lilas));
  background: radial-gradient(circle at 35% 30%, #2a2552, #15122e 70%); border: 1px solid rgba(255,255,255,.14);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s, border-color .45s; }
.ag-rond svg { width: 24px; height: 24px; }
.ag-nom { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.72); line-height: 1.2; transition: color .3s; }
.ag-agent.ag-repos { opacity: .5; }
.ag-agent.ag-actif .ag-rond { transform: scale(1.14); border-color: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.04), 0 0 26px var(--c); }
.ag-agent.ag-actif .ag-nom { color: #fff; }
.ag-agent.ag-actif .ag-rond::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--c); animation: ag-onde 1.4s ease-out infinite; }
@keyframes ag-onde { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.5); } }
.ag-agent.ag-centre { width: 110px; }
.ag-client-noeud { flex-direction: row; width: auto; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(245,220,176,.08); border: 1px solid rgba(245,220,176,.25); }
.ag-client-noeud .ag-rond { width: 30px; height: 30px; color: var(--or); }
.ag-client-noeud .ag-rond svg { width: 16px; height: 16px; }
.ag-client-noeud .ag-nom { color: var(--or); }
.ag-client-noeud .ag-ecrit { top: -14px; }
.ag-agent.ag-centre .ag-rond { width: 74px; height: 74px; --c: var(--or); color: var(--or);
  background: radial-gradient(circle at 35% 30%, #5a4a6e, #2a1f52 55%, #15122e); border-color: rgba(245,220,176,.4); }
.ag-agent.ag-centre .ag-rond svg { width: 32px; height: 32px; }
.ag-agent.ag-centre .ag-nom { font-size: 12.5px; color: var(--or); }
/* Points « en train d'écrire » au-dessus de l'agent actif */
.ag-ecrit { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); display: none; gap: 3px; padding: 4px 7px; border-radius: 10px; background: rgba(255,255,255,.12); }
.ag-ecrit i { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: ag-point 1s infinite; }
.ag-ecrit i:nth-child(2) { animation-delay: .15s; } .ag-ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-point { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.ag-agent.ag-ecrit-on .ag-ecrit { display: flex; }

/* ── Fil des échanges ── */
.ag-fil { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 236px; }
.ag-msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); animation: ag-arrive .55s cubic-bezier(.16,1,.3,1) both; }
.ag-msg.ag-vieux { opacity: .45; }
.ag-msg.ag-client { background: rgba(245,220,176,.08); border-color: rgba(245,220,176,.22); }
@keyframes ag-arrive { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ag-de { display: flex; align-items: center; gap: 3px; padding-top: 1px; }
.ag-pastille { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--c, #fff); }
.ag-pastille svg { width: 13px; height: 13px; }
.ag-de .ag-fleche { color: rgba(255,255,255,.35); font-size: 11px; }
.ag-msg p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.ag-msg p b { color: #fff; font-weight: 600; }

/* ── Résultat : navigateur (landing page) ── */
.ag-scene { position: relative; min-height: 440px; }
.ag-vue { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .5s, transform .6s cubic-bezier(.16,1,.3,1), visibility 0s .6s; }
.ag-vue.ag-montre { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .6s cubic-bezier(.16,1,.3,1); }
.ag-nav { border-radius: 16px; overflow: hidden; background: #fff; color: #10172a; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.ag-nav-barre { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eef1f7; border-bottom: 1px solid #e1e6ef; }
.ag-nav-barre i { width: 9px; height: 9px; border-radius: 50%; background: #d4d9e3; }
.ag-nav-barre i:nth-child(1) { background: #ff6b6b; } .ag-nav-barre i:nth-child(2) { background: #ffc94d; } .ag-nav-barre i:nth-child(3) { background: #4cd38a; }
.ag-url { flex: 1; margin-left: 8px; background: #fff; border-radius: 7px; padding: 5px 10px; font-size: 11.5px; color: #6b7487; display: flex; align-items: center; gap: 6px; }
.ag-url svg { width: 11px; height: 11px; color: #4cd38a; }
.ag-page { position: relative; padding: 16px 18px 18px; --marque: #7c3aed; --marque2: #f59e0b; }
.ag-p-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ag-logo { font-family: 'DM Serif Display', serif; font-size: 17px; }
.ag-logo span { color: var(--marque); }
.ag-menu { display: flex; gap: 10px; }
.ag-menu i { width: 34px; height: 6px; border-radius: 4px; background: #e6e9f0; }
.ag-p-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: center; }
.ag-p-h1 { font-family: 'DM Serif Display', serif; font-size: 22px; line-height: 1.15; min-height: 52px; }
.ag-p-h1 em { color: var(--marque); }
.ag-p-sous { font-size: 12px; line-height: 1.5; color: #556078; margin: 8px 0 12px; min-height: 36px; }
.ag-p-cta { display: inline-block; font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--marque), #5b21b6); box-shadow: 0 8px 18px rgba(124,58,237,.35); }
.ag-p-visuel { position: relative; aspect-ratio: 4 / 3.4; border-radius: 14px; overflow: hidden; background: #eef1f7; }
.ag-p-visuel .ag-art { position: absolute; inset: 0; opacity: 0; transition: opacity .9s; background: linear-gradient(180deg, #312e81, #7c3aed 55%, #f59e0b); }
.ag-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ag-soleil { transform-box: fill-box; transform-origin: 50% 50%; transform: translateY(26px); transition: transform 1.6s cubic-bezier(.16,1,.3,1) .2s; }
.ag-perso { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.92); opacity: 0; transition: transform .9s cubic-bezier(.34,1.56,.64,1) .7s, opacity .5s .7s; }
.ag-eclat { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
.ag-p-visuel.ag-genere .ag-soleil { transform: none; }
.ag-p-visuel.ag-genere .ag-perso { transform: none; opacity: 1; }
.ag-p-visuel.ag-genere .ag-eclat { animation: ag-eclat 2.4s ease-in-out 1.2s infinite; }
.ag-p-visuel.ag-genere .ag-eclat:nth-of-type(2) { animation-delay: 1.7s; } .ag-p-visuel.ag-genere .ag-eclat:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes ag-eclat { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.ag-art-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #5b21b6; font-size: 11px; font-weight: 700; box-shadow: 0 6px 16px rgba(30,20,70,.25);
  opacity: 0; transform: translateY(-6px); transition: opacity .5s 1.3s, transform .6s cubic-bezier(.34,1.56,.64,1) 1.3s; }
.ag-art-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.ag-p-visuel.ag-genere .ag-art-badge { opacity: 1; transform: none; }
.ag-p-bas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.ag-carte { border-radius: 11px; background: #f3f5fa; padding: 10px; min-height: 74px; position: relative; overflow: hidden; }
.ag-carte b { display: block; font-size: 11px; margin-bottom: 4px; }
.ag-carte span { font-size: 10px; color: #6b7487; line-height: 1.4; display: block; }
.ag-carte.ag-video { background: #10172a; color: #fff; display: grid; place-items: center; }
.ag-carte.ag-video .ag-lecture { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.ag-carte.ag-video .ag-lecture::before { content: ""; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ag-carte.ag-video small { position: absolute; left: 8px; bottom: 6px; font-size: 9.5px; color: rgba(255,255,255,.75); }
.ag-carte.ag-video .ag-sous-titre { position: absolute; left: 8px; right: 8px; top: 7px; font-size: 9px; color: #fde68a; font-weight: 700; }
/* États « squelette » avant que l'agent ne remplisse le bloc */
.ag-vide { position: relative; color: transparent !important; }
.ag-vide::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, #eceff5 25%, #f6f7fb 50%, #eceff5 75%); background-size: 200% 100%; animation: ag-squelette 1.4s linear infinite; }
.ag-carte.ag-vide::after, .ag-p-cta.ag-vide::after { border-radius: inherit; }
.ag-carte.ag-video.ag-vide { background: #f3f5fa; }
.ag-carte.ag-video.ag-vide > * { visibility: hidden; }
.ag-p-cta.ag-vide { box-shadow: none; }
@keyframes ag-squelette { to { background-position: -200% 0; } }
.ag-plein { animation: ag-pop .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes ag-pop { from { opacity: .2; transform: scale(.94); } to { opacity: 1; transform: none; } }
.ag-p-visuel.ag-genere .ag-art { opacity: 1; }
.ag-balayage { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); background-size: 250% 100%; background-position: 160% 0; }
.ag-p-visuel.ag-genere .ag-balayage { animation: ag-balaye 1.2s ease-out; }
@keyframes ag-balaye { to { background-position: -60% 0; } }

/* Badge final */
.ag-badge { position: absolute; left: 50%; bottom: -18px; transform: translate(-50%, 10px) scale(.9); opacity: 0; z-index: 3; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #1a1206;
  background: linear-gradient(135deg, var(--or), var(--or2)); box-shadow: 0 14px 34px rgba(232,192,125,.4); transition: opacity .4s, transform .6s cubic-bezier(.34,1.56,.64,1); }
.ag-badge.ag-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ag-badge svg { width: 16px; height: 16px; }

/* ── Résultat : téléphone WhatsApp + agenda + CRM ── */
.ag-wa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.ag-tel { border-radius: 28px; padding: 8px; background: #11131c; box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.ag-tel-ecran { border-radius: 22px; overflow: hidden; background: #0b141a; }
.ag-tel-tete { display: flex; align-items: center; gap: 9px; padding: 12px 12px 10px; background: #1f2c33; }
.ag-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.ag-tel-tete b { display: block; font-size: 12.5px; }
.ag-tel-tete span { font-size: 10.5px; color: var(--wa); }
.ag-bulles { display: flex; flex-direction: column; gap: 7px; padding: 12px 10px 14px; min-height: 300px; justify-content: flex-end;
  background: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1.5px) 0 0 / 14px 14px, #0b141a; }
.ag-bulle { max-width: 86%; font-size: 12px; line-height: 1.45; padding: 7px 10px 16px; border-radius: 10px; position: relative; animation: ag-arrive .45s cubic-bezier(.16,1,.3,1) both; }
.ag-bulle small { position: absolute; right: 8px; bottom: 3px; font-size: 9px; color: rgba(255,255,255,.5); }
.ag-bulle.ag-recu { align-self: flex-start; background: #1f2c33; border-top-left-radius: 3px; }
.ag-bulle.ag-envoye { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.ag-bulle.ag-envoye small::after { content: " ✓✓"; color: #53bdeb; }
.ag-bulle.ag-ecrit-bulle { padding: 9px 12px; display: flex; gap: 3px; }
.ag-bulle.ag-ecrit-bulle i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.7); animation: ag-point 1s infinite; }
.ag-bulle.ag-ecrit-bulle i:nth-child(2) { animation-delay: .15s; } .ag-bulle.ag-ecrit-bulle i:nth-child(3) { animation-delay: .3s; }
.ag-cote { display: flex; flex-direction: column; gap: 14px; }
.ag-agenda, .ag-crm { border-radius: 16px; padding: 14px; background: #fff; color: #10172a; box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.ag-mini-titre { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7487; margin-bottom: 10px; }
.ag-mini-titre svg { width: 14px; height: 14px; color: #7c3aed; }
.ag-jour { font-family: 'DM Serif Display', serif; font-size: 18px; margin-bottom: 8px; }
.ag-creneaux { display: grid; gap: 6px; }
.ag-creneau { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 7px 10px; border-radius: 8px; background: #f3f5fa; color: #556078; transition: background .4s, color .4s, box-shadow .4s, transform .4s; }
.ag-creneau.ag-pris { background: #eceff5; color: #a0a8b8; text-decoration: line-through; }
.ag-creneau.ag-libre { background: rgba(52,211,153,.12); color: #047857; }
.ag-creneau.ag-reserve { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; box-shadow: 0 8px 18px rgba(124,58,237,.35); transform: scale(1.03); text-decoration: none; }
.ag-creneau em { font-style: normal; font-size: 10.5px; font-weight: 700; }
.ag-crm { opacity: .35; transform: translateY(8px); transition: opacity .5s, transform .6s cubic-bezier(.16,1,.3,1); }
.ag-crm.ag-on { opacity: 1; transform: none; }
.ag-fiche { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ag-fiche .ag-avatar { width: 34px; height: 34px; color: #fff; }
.ag-fiche b { display: block; font-size: 13.5px; }
.ag-fiche span { font-size: 11px; color: #6b7487; }
.ag-etiquettes { display: flex; flex-wrap: wrap; gap: 5px; }
.ag-etiquettes span { font-size: 10.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: #f3f0ff; color: #6d28d9; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.ag-etiquettes span.ag-on { opacity: 1; transform: none; }

.ag-modules { margin-top: 38px; font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-modules span { padding: 4px 9px; border-radius: 999px; background: rgba(196,181,253,.1); border: 1px solid rgba(196,181,253,.2); color: var(--lilas); font-weight: 600; }
.ag-note { margin-top: 14px; font-size: 12.5px; color: #6b7487; }
canvas.ag-etincelles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .ag-console { grid-template-columns: 1fr; padding: 20px 16px 26px; gap: 22px; border-radius: 20px; }
  .ag-reseau { max-width: 380px; }
  .ag-scene { min-height: 0; }
  .ag-vue { position: relative; inset: auto; display: none; }
  .ag-vue.ag-montre { display: block; }
}
@media (max-width: 600px) {
  .ag-agent { width: 74px; }
  .ag-rond { width: 42px; height: 42px; } .ag-rond svg { width: 19px; height: 19px; }
  .ag-agent.ag-centre .ag-rond { width: 58px; height: 58px; } .ag-agent.ag-centre .ag-rond svg { width: 26px; height: 26px; }
  .ag-nom { font-size: 10px; }
  .ag-p-hero { grid-template-columns: 1fr; }
  .ag-p-visuel { aspect-ratio: 16 / 8; }
  .ag-p-bas { grid-template-columns: 1fr 1fr; } .ag-p-bas .ag-carte:last-child { grid-column: span 2; }
  .ag-wa { grid-template-columns: 1fr; }
  .ag-bulles { min-height: 250px; }
  .ag-fil { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-demo *, .ag-demo *::before, .ag-demo *::after { animation: none !important; transition: none !important; }
}
