/* Bloc « talk » (26/11 au soir, demande de Serge : « plus sous la forme d'un chat ») : une conversation avec Jack. À gauche
   l'écran montre le graphique dont on parle, la partie citée en lumière (cadre or, reste voilé) ; à droite le fil du chat :
   la question s'écrit, Jack réfléchit (trois points), l'écran passe au graphique de sa réponse, la réponse s'écrit.
   Une seule vue visible à la fois. Les éléments v6talk__a / v6talk__b, cachés, restent pour v6.js. */
.v7site #talk.v9talk { background: var(--v7bg); }
.v7site #talk .v9t__row { display: grid; grid-template-columns: minmax(0, 772fr) minmax(0, 464fr); gap: 44px; align-items: stretch; margin-top: 20px; }
.v7site #talk .v9t__box { position: relative; min-width: 0; }
.v7site #talk .v9t__scr.v6talk__screen { position: relative; display: block; width: 100%; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 5px solid #fff; border-radius: 18px; background: #fff; box-shadow: var(--v7shs); cursor: zoom-in; }
/* une vue s'efface (0,35 s), puis la suivante paraît : jamais deux superposées */
.v7site #talk .v9t__v { position: absolute; inset: 0; padding: 12px 16px; box-sizing: border-box; background: #fff; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.v7site #talk .v9t__v.is-on { opacity: 1; visibility: visible; transition: opacity .5s ease .35s, visibility 0s linear .35s; }
.v7site #talk .v9t__v img, .v7site #talk .v9t__v svg { position: absolute; inset: 12px 16px; width: calc(100% - 32px); height: calc(100% - 24px); max-width: none; }
.v7site #talk .v9t__v img { object-fit: contain; }
.v7site #talk .v9t__veil { fill: #fff; opacity: 0; transition: opacity .7s ease; }
.v7site #talk .v9t__fr { fill: none; stroke: var(--v7goldd); stroke-width: 3.5px; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .7s ease; }
.v7site #talk .v9t__v.is-lit .v9t__veil { opacity: .66; }
.v7site #talk .v9t__v.is-lit .v9t__fr { opacity: 1; }
.v7site #talk .v9t__scr .v7zoom { z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; }
.v7site #talk .v9t__tag { position: absolute; z-index: 3; left: 22px; bottom: -13px; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; padding: 8px 14px; border-radius: 999px; background: rgba(10, 21, 53, .9); color: #fff; font: 600 13px/1 'Inter', sans-serif; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 8px 16px -8px rgba(10, 21, 53, .6); }
.v7site #talk .v9t__tg { display: none; }
.v7site #talk[data-v="0"] .v9t__tg[data-v="0"], .v7site #talk[data-v="1"] .v9t__tg[data-v="1"], .v7site #talk[data-v="2"] .v9t__tg[data-v="2"], .v7site #talk[data-v="3"] .v9t__tg[data-v="3"] { display: inline; }

/* le fil du chat */
.v7site #talk .v9t__chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.v7site #talk .v9t__who { display: flex; align-items: center; gap: 12px; flex: none; padding-bottom: 12px; border-bottom: 1px solid var(--v7line); }
.v7site #talk .v9t__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; box-shadow: 0 0 0 2px var(--v7goldd), 0 8px 18px -8px rgba(10, 21, 53, .5); }
.v7site #talk .v9t__who p { display: flex; flex-direction: column; gap: 3px; margin: 0; font: 700 18px/1.1 'Inter', sans-serif; color: var(--v7ink); }
.v7site #talk .v9t__who span { font: 600 12px/1.2 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--v7gold); }
.v7site #talk .v9t__thread { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 2px 2px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px); mask-image: linear-gradient(to bottom, transparent 0, #000 26px); }
.v7site #talk .v9t__thread::-webkit-scrollbar { display: none; }
.v7site #talk .v9t__thread > :first-child { margin-top: auto; }
.v7site #talk .v9t__m { flex: none; margin: 0; }
.v7site #talk .v9t__q { align-self: flex-end; max-width: 88%; padding: 10px 16px; border: 0; border-radius: 18px 18px 4px 18px; background: #fff; box-shadow: var(--v7shs); font: 500 20px/1.28 'Inter', sans-serif; text-align: left; color: var(--v7ink); cursor: pointer; }
.v7site #talk .v9t__q:focus-visible { outline: 3px solid var(--v7action); outline-offset: 3px; }
.v7site #talk .v9t__a { align-self: flex-start; max-width: 96%; padding: 11px 17px 12px; border-radius: 4px 18px 18px 18px; background: linear-gradient(165deg, #172c6c 0%, #0f1e4b 60%); box-shadow: var(--v7shf); }
.v7site #talk .v9t__a p { margin: 0; font: italic 400 22px/1.24 'Newsreader', Georgia, serif; color: #fff; }
.v7site #talk .v9t__a b { font: 600 .9em/1 'Inter', sans-serif; font-style: normal; color: #fff; }
.v7site #talk .v9t__dots { align-self: flex-start; display: none; gap: 6px; padding: 15px 18px; border-radius: 4px 18px 18px 18px; background: linear-gradient(165deg, #172c6c 0%, #0f1e4b 60%); }
.v7site #talk .v9t__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--v7goldd); animation: v9t-dot 1.1s ease-in-out infinite; }
.v7site #talk .v9t__dots i:nth-child(2) { animation-delay: .18s; } .v7site #talk .v9t__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes v9t-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }

/* avec le script : les messages paraissent un à un, leurs mots s'écrivent */
.v7site #talk.is-js .v9t__m:not(.is-in) { display: none; }
.v7site #talk.is-js .v9t__m.is-in { animation: v9t-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.v7site #talk.is-js .v9t__w { opacity: 0; transition: opacity .25s ease; }
.v7site #talk.is-js .v9t__w.is-w { opacity: 1; }
.v7site #talk.is-think .v9t__dots { display: flex; animation: v9t-in .35s ease both; }
/* un échange passé : la réponse se réduit à sa première phrase, pâlie ; la question reste et se reclique */
.v7site #talk .v9t__a.is-past { opacity: .5; box-shadow: none; }
.v7site #talk .v9t__a.is-past .v9t__rest { display: none; }
.v7site #talk .v9t__q.is-past { opacity: .6; box-shadow: none; background: rgba(255, 255, 255, .7); }
.v7site #talk .v9t__q.is-past:hover, .v7site #talk .v9t__q.is-past:focus-visible { opacity: 1; box-shadow: var(--v7shs); background: #fff; }
.v7site #talk.is-fade .v9t__thread { opacity: 0; transition: opacity .8s ease; }
@keyframes v9t-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1280px) {
  .v7site #talk.v9talk { padding: 26px 0 22px; }
  .v7site #talk .v7title { margin-top: 8px; font-size: 62px; }
}
@media (max-width: 1100px) {
  .v7site #talk .v9t__row { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .v7site #talk .v9t__chat { height: 470px; }
}
@media (max-width: 600px) {
  .v7site #talk .v9t__tag { left: 12px; font-size: 12px; }
  .v7site #talk .v9t__v, .v7site #talk .v9t__v img, .v7site #talk .v9t__v svg { inset: 4px; }
  .v7site #talk .v9t__v img, .v7site #talk .v9t__v svg { width: calc(100% - 8px); height: calc(100% - 8px); }
  .v7site #talk .v9t__q { max-width: 94%; }
  .v7site #talk .v9t__a p { font-size: 20px; }
  .v7site #talk .v9t__chat { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .v7site #talk .v9t__v, .v7site #talk .v9t__v.is-on, .v7site #talk .v9t__veil, .v7site #talk .v9t__fr { transition: none; }
  .v7site #talk.is-js .v9t__m.is-in, .v7site #talk .v9t__dots i { animation: none; }
}
