/* 27 nov. 2026 (Lydie) : animation 3D « un site qui se construit », dans la partie « Votre site internet » de agence-seo-ia.html
   (repris de l'essai site-essais/demo-3d/). */
.s3d { position: relative; margin: clamp(40px, 6vh, 70px) 0 0; }
.s3d__piste { position: relative; height: 430vh; }
.s3d__scene { position: sticky; top: 72px; height: calc(100vh - 72px); overflow: hidden; border-radius: 20px; background: #020202; border: 1px solid rgba(201, 169, 110, 0.18); }
.s3d__scene::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,11,13,.94) 0%, rgba(11,11,13,.75) 26%, rgba(11,11,13,0) 44%); }
#s3dCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s3d-beat { position: absolute; z-index: 2; left: clamp(22px, 5vw, 72px); top: 50%; transform: translateY(calc(-50% + 18px)); max-width: 300px; opacity: 0; pointer-events: none;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); text-align: left; }
.s3d-beat.is-on { opacity: 1; transform: translateY(-50%); }
.s3d-beat__k { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, #C9A96E); }
.s3d-beat__t { margin: 0; font-size: clamp(26px, 2.4vw, 38px); font-weight: 800; line-height: 1.1; color: var(--fg, #F2EDE4); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.s3d-beat__t em { font-style: normal; color: var(--accent, #C9A96E); }
.s3d-beat__s { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: rgba(242, 237, 228, 0.75); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
.s3d__barre { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: min(320px, 60%); height: 3px; transform: translateX(-50%); border-radius: 3px; background: rgba(242, 237, 228, 0.12); overflow: hidden; }
.s3d__barre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C9A96E, #00A2E9); }
@media (max-width: 760px) {
  .s3d__piste { height: 380vh; }
  .s3d__scene { border-radius: 0; top: 64px; height: calc(100vh - 64px); }
  .s3d__scene::before { display: none; }
  .s3d-beat { left: 20px; right: 20px; top: auto; bottom: 64px; transform: translateY(14px); max-width: none; }
  .s3d-beat.is-on { transform: none; }
  .s3d-beat__t { font-size: 28px; }
  .s3d-beat__s { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .s3d__piste { height: auto; }
  .s3d__scene { position: relative; height: auto; overflow: visible; display: grid; gap: 22px; padding: 30px 22px; }
  .s3d__scene::before, .s3d__barre { display: none; }
  #s3dCanvas { position: relative; height: 60vh; }
  .s3d-beat { position: static; opacity: 1; transform: none !important; max-width: 640px; }
}

/* 27 nov. 2026 (Lydie : version Blender) : sur ordinateur, le texte de l'étape en haut, sur une ligne, et la vidéo en dessous */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .s3d__scene::before { display: none; }
  .s3d-beat { top: 26px; left: 0; right: 0; max-width: none; text-align: center; transform: translateY(10px); }
  .s3d-beat.is-on { transform: none; }
  .s3d-beat__k { margin-bottom: 8px; }
  .s3d-beat__t { font-size: clamp(24px, 2.4vw, 34px); }
  .s3d-beat__t br { display: none; }
  .s3d-beat__t em::before { content: " "; }
  .s3d-beat__s { margin-top: 8px; font-size: 15.5px; }
}
