/* ══════════════════════════════════════════════════
   ParcSync — Page « Ce qui arrive » (compléments à style.css)
   Scène Three.js plein écran en arrière-plan, étiquettes 3D en HTML.
   ══════════════════════════════════════════════════ */

/* ── Scène 3D ── */
.stage3d { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity .8s var(--ease); }
body[data-chap="fin"] .stage3d { opacity: 0; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
body.moteur-pret .stage3d canvas { opacity: 1; transition-duration: .3s; }
body.moteur-pret .stage3d canvas.is-masque { opacity: 0; }

.tags { position: absolute; inset: 0; overflow: hidden; }
.tag3d {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--encre); white-space: nowrap;
  background: rgba(255,255,255,.9); border: 1px solid var(--verre-bord);
  box-shadow: 0 8px 18px -10px rgba(15,23,42,.5);
  opacity: 0; transition: opacity .35s ease; will-change: transform;
}
.tag3d.is-on { opacity: 1; }
.tag3d i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: none; }
.tag3d--bleu i { background: var(--accent); }
.tag3d--gris i { background: #94a3b8; }
.tag3d--gris { color: var(--doux); }

.sans3d { display: none; position: absolute; right: 6vw; top: 50%; max-width: 280px; padding: 16px 18px; border-radius: 14px; background: var(--verre-fond); border: 1px solid var(--verre-bord); font-size: 14px; color: var(--corps); }
body.no-3d .sans3d { display: block; }

/* ── Statut « en cours de développement » ── */
.statut-dev { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 3px 11px; border-radius: 999px; background: #fef3c7; border: 1px solid #fcd34d; font-size: 12px; font-weight: 700; color: #92400e; }
.statut-dev i { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; animation: pouls-ambre 2.2s infinite; }
@keyframes pouls-ambre {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.pastille--dev { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.pastille--dev .pastille__point { background: #f59e0b; animation-name: pouls-ambre; }

/* ── Hero ── */
.puces { display: flex; flex-wrap: wrap; gap: 10px; }
.puces li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--verre-fond); border: 1px solid var(--verre-bord);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; color: var(--encre);
}
.puces .ico { width: 18px; height: 18px; color: var(--accent); }

/* ── Étapes du conseiller IA ── */
.chap--ia { min-height: 92vh; }
.stepper { display: flex; gap: 6px; margin: 0 0 16px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(15,23,42,.045); font-size: 12px; font-weight: 700; line-height: 1.2; color: #64748b; transition: background-color .3s, color .3s; }
.stepper b { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #cbd5e1; color: #fff; font-size: 11px; transition: background-color .3s; }
.stepper .is-fait { color: var(--vert-texte); }
.stepper .is-fait b { background: #16a34a; }
.stepper .is-actif { background: rgba(37,99,235,.12); color: var(--accent-fonce); }
.stepper .is-actif b { background: var(--accent); }

/* ── Section « différence » ── */
#difference { min-height: 100svh; display: flex; align-items: center; padding-block: 110px 80px; }
.trio-diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diff { padding: 28px; border-radius: 22px; overflow: hidden; }
.diff__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: rgba(37,99,235,.1); color: var(--accent-fonce); }
.diff h3 { margin-bottom: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.diff p { font-size: 15px; color: var(--corps); }
.note-dev { margin-top: 40px; text-align: center; font-size: 14px; color: var(--doux); }
.note-dev a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 700; color: var(--accent-fonce); }
.note-dev a:hover { text-decoration: underline; }
.note-dev .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.note-dev a:hover .ico { transform: translateX(3px); }

/* ── Bouton secondaire en verre ── */
.btn--verre { background: var(--verre-fond); color: var(--encre); border: 1px solid var(--verre-bord); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--verre:hover { transform: translateY(-2px); border-color: #94a3b8; box-shadow: 0 10px 20px -12px rgba(15,23,42,.4); }
.btn--verre:hover .ico { transform: translateX(-3px); }
.btn--verre .ico { width: 18px; height: 18px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .chap--ia { min-height: 96svh; }
  .trio-diff { grid-template-columns: 1fr; }
  #difference { padding-block: 100px 60px; }
  .nav .btn--verre span { display: none; }
  .nav .btn--verre { padding-inline: 12px; }
}
@media (max-width: 720px) {
  .tag3d--sec { display: none; }
  .tag3d { font-size: 11px; padding: 4px 10px 4px 8px; }
  .stepper li { font-size: 11px; padding: 5px 6px; gap: 6px; }
  .stepper b { width: 20px; height: 20px; }
}
@media (max-width: 380px) { .stepper li { flex-direction: column; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  .tag3d, .stage3d canvas { transition: none !important; }
}
