/* ============================================================
   VIDEOTHEQUE KAIROS (/demos/ et /en/demos/)
   Se charge apres landing.css + editorial.css : la page reprend le
   systeme clair de l'accueil (nav blanche, bleu #0060c6, Mariana #07232f)
   et y ajoute un hero cinema, un lecteur avec lueur d'ambiance et un
   parcours client anime. Aucune dependance externe.
   ============================================================ */

.demos-page {
  --ink: #07232f;
  --brand: #0060c6;
  --brand-dark: #004eaa;
  --brand-soft: #e8f1fc;
  --sky: #83baff;
  --mist: #dbe2ea;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  background: #f5f7fa;
}
.demos-page section { padding: 96px 0; }
.demos-page .section-head { max-width: 720px; margin: 0 0 44px; text-align: left; }
.demos-page .section-head p { color: var(--muted-2); font-size: 17px; line-height: 1.65; margin: 0; }
.demos-page .kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; }
.demos-page .kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.demos-page .btn svg { width: 18px; height: 18px; }
.demos-page .btn .ico-play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ffffff26; margin-left: -6px; }
.demos-page .btn .ico-play svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }

/* ---------- HERO ---------- */
.dm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 72px !important;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, #0060c614, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-bottom: 1px solid var(--line);
}
.dm-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.dm-aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.dm-aurora span:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; background: #b9d8ff; }
.dm-aurora span:nth-child(2) { width: 420px; height: 420px; left: 32%; bottom: -260px; background: #dbe8f7; }
.dm-aurora span:nth-child(3) { width: 300px; height: 300px; left: -120px; top: 40px; background: #e3edf9; }
.dm-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(#07232f1f 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 72%);
}
.dm-spot {
  position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, #0060c612, transparent 65%);
  transform: translate(calc(var(--sx, 70vw) - 50%), calc(var(--sy, 200px) - 50%));
  transition: transform .5s var(--ease-out);
}
.dm-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.dm-hero-copy { min-width: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted-2); font-weight: 500; transition: color .2s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.dm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid #c9d8ea; background: #ffffffcc;
  box-shadow: 0 6px 18px #07232f0a;
  font-size: 13px; font-weight: 600; color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dm-eyebrow .live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dm-eyebrow .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 #ffffffaa; }
.motion-ready:not(.motion-paused) .dm-eyebrow .live::before { animation: dm-ping 1.8s ease-out infinite; }

.demos-page .dm-hero h1 {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.055em;
  color: var(--ink);
  margin: 22px 0 20px;
  max-width: 13ch;
}
.dm-hl { position: relative; display: inline-block; color: var(--brand); white-space: nowrap; }
.dm-hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
  border-radius: 4px; background: linear-gradient(90deg, #b9d8ff, #dbe8f7);
  transform-origin: left; transform: scaleX(1);
}
.motion-ready .dm-hl::after { animation: dm-underline 1.1s .55s var(--ease-out) both; }
.dm-shine {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand) 40%, #5ea4ff 50%, var(--brand) 60%, var(--brand) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.motion-ready:not(.motion-paused) .dm-shine { animation: dm-shine 6s 1.6s ease-in-out infinite; }

.dm-lead { font-size: 18px; line-height: 1.65; color: var(--muted-2); max-width: 50ch; margin: 0; }
.dm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dm-hero-actions .btn { min-height: 52px; }
.dm-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.dm-hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.dm-hero-meta svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Entree du hero */
.motion-ready .dm-hero-copy > * { animation: dm-rise .9s var(--ease-out) both; }
.motion-ready .dm-hero-copy > :nth-child(2) { animation-delay: .06s; }
.motion-ready .dm-hero-copy > :nth-child(3) { animation-delay: .12s; }
.motion-ready .dm-hero-copy > :nth-child(4) { animation-delay: .18s; }
.motion-ready .dm-hero-copy > :nth-child(n+5) { animation-delay: .24s; }
.motion-ready .dm-stage { animation: dm-stage-in 1.3s .1s var(--ease-out) both; }

/* ---------- SCENE CINEMA ---------- */
.dm-stage {
  --rx: 0deg; --ry: 0deg; --px: 0; --py: 0;
  position: relative; min-width: 0;
  padding: 44px 34px 52px;
  perspective: 1600px;
}
.dm-orbit { position: absolute; inset: -6% -4%; width: 108%; height: 112%; z-index: 0; pointer-events: none; overflow: visible; }
.dm-orbit .track { fill: none; stroke: #0060c626; stroke-width: 1.2; }
.dm-orbit .track.dash { stroke-dasharray: 2 9; stroke: #0060c640; }
.dm-orbit .comet { fill: none; stroke: url(#dmComet); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 86; }
.motion-ready:not(.motion-paused) .dm-orbit .comet { animation: dm-orbit 10s linear infinite; }
.motion-ready:not(.motion-paused) .dm-orbit .comet.c2 { animation-duration: 16s; animation-direction: reverse; }

.dm-screen {
  position: relative; z-index: 2; display: block; width: 100%;
  padding: 0; margin: 0; border: 0; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: var(--ink);
  border-radius: 16px;
  box-shadow: 0 50px 100px -20px #07232f55, 0 30px 60px -30px #0060c655, 0 0 0 1px #07232f14, inset 0 1px 0 #ffffff1f;
  transform: rotateX(calc(4deg + var(--rx))) rotateY(calc(-9deg + var(--ry))) rotateZ(-1deg);
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-out), box-shadow .5s;
}
.dm-screen:hover, .dm-screen:focus-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); box-shadow: 0 60px 120px -20px #07232f66, 0 40px 80px -30px #0060c677, 0 0 0 1px #07232f14, inset 0 1px 0 #ffffff1f; }
.dm-screen:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }
.dm-screen-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9fb8cc; }
.dm-dots { display: inline-flex; gap: 6px; }
.dm-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2b4a5c; }
.dm-dots i:first-child { background: #5ea4ff; }
.dm-screen-art { display: block; position: relative; margin: 0 8px; border-radius: 9px; overflow: hidden; aspect-ratio: 16 / 9; background: #0c2a37; }
.dm-screen-art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-out), filter .6s; }
.dm-screen:hover .dm-screen-art img { transform: scale(1.04); filter: saturate(1.1); }
.dm-screen-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #07232f00 40%, #07232fb3 100%); }
.dm-screen-play {
  position: absolute; z-index: 2; inset: 0; margin: auto;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 12px #0060c63d, 0 14px 34px #0008;
  transition: transform .3s var(--ease-out), background .2s, color .2s;
}
.dm-screen-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.dm-screen:hover .dm-screen-play { transform: scale(1.08); background: #fff; color: var(--brand); }
.motion-ready:not(.motion-paused) .dm-screen-play { animation: dm-halo 2.6s ease-in-out infinite; }
.dm-screen-cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dm-screen-cap strong { font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.dm-screen-cap span { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: #07232fcc; }
.dm-screen-bar { display: flex; align-items: center; gap: 12px; padding: 13px 16px 15px; font-size: 12px; color: #9fb8cc; }
.dm-screen-bar .track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: #ffffff1f; overflow: hidden; }
.dm-screen-bar .track i { position: absolute; inset: 0; width: 38%; border-radius: inherit; background: linear-gradient(90deg, #0060c6, #83baff); }
.motion-ready:not(.motion-paused) .dm-screen-bar .track i { animation: dm-scrub 9s ease-in-out infinite; }

/* Cartes flottantes autour de l'ecran */
.dm-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 11px;
  border-radius: 14px;
  background: #ffffffeb;
  border: 1px solid #dbe2ea;
  box-shadow: 0 22px 44px -12px #07232f33, 0 2px 6px #07232f0d;
  color: var(--ink);
  font-size: 13px; line-height: 1.3;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate3d(calc(var(--px) * var(--d, 10px)), calc(var(--py) * var(--d, 10px)), 0);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.dm-float strong { display: block; font-weight: 650; font-size: 13px; }
.dm-float small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.dm-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); }
.dm-float .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-float .ic.ok { background: #e3f6ee; color: #11845b; }
.dm-float .stars { color: #f2a900; letter-spacing: 1px; font-size: 12px; }
.dm-float.f1 { --d: 18px; top: 8px; left: -6px; }
.dm-float.f2 { --d: -14px; top: 36%; right: -14px; }
.dm-float.f3 { --d: 22px; bottom: 6px; left: 12%; }
.motion-ready:not(.motion-paused) .dm-float.f1 > * { animation: dm-bob 6s ease-in-out infinite; }
.motion-ready:not(.motion-paused) .dm-float.f2 > * { animation: dm-bob 7s -2s ease-in-out infinite; }
.motion-ready:not(.motion-paused) .dm-float.f3 > * { animation: dm-bob 6.5s -4s ease-in-out infinite; }
.motion-ready .dm-float { animation: dm-pop .8s var(--ease-out) both; }
.motion-ready .dm-float.f1 { animation-delay: .7s; }
.motion-ready .dm-float.f2 { animation-delay: .95s; }
.motion-ready .dm-float.f3 { animation-delay: 1.2s; }

.motion-control {
  position: absolute; right: 24px; bottom: 16px; z-index: 5;
  min-height: 36px; padding: 7px 12px;
  border: 1px solid #c5d1df; border-radius: 6px;
  background: #ffffffd9; color: var(--muted-2);
  font: 12px Inter, sans-serif; cursor: pointer;
}
.motion-control:hover { color: var(--ink); border-color: #9ca9b9; }

/* ---------- BANDE DE CHIFFRES ---------- */
.dm-stats { padding: 0 !important; background: #fff; border-bottom: 1px solid var(--line); }
.dm-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.dm-stats li { padding: 30px 26px; border-left: 1px solid var(--line); }
.dm-stats li:first-child { border-left: 0; padding-left: 0; }
.dm-stats strong { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dm-stats strong em { font-style: normal; color: var(--brand); }
.dm-stats li > span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- VIDEOTHEQUE ---------- */
.dm-library { background: #fff; position: relative; }
.demos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.demos-layout > * { min-width: 0; }

.player-wrap { position: sticky; top: calc(var(--nav-h) + 20px); }
.player-ambient {
  position: absolute; z-index: 0; inset: 4% 2% 30%; width: 96%; height: 66%;
  filter: blur(46px) saturate(1.5); opacity: 0; transform: scale(1.06);
  transition: opacity 1s ease; pointer-events: none; border-radius: 30px;
}
.player-wrap.ambient-on .player-ambient { opacity: .55; }
.player-card {
  position: relative; z-index: 1;
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 12px;
  box-shadow: 0 40px 80px -30px #07232f59, 0 0 0 1px #07232f10;
}
.player-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #04121a; }
.player-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #04121a; }
.player-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: #07232fd9; border: 1px solid #ffffff2b;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .25s ease;
}
.player-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.player-card.is-playing .player-badge { opacity: 0; }
.player-start {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; margin: 0; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #07232f1a 0%, #07232f80 100%);
  transition: opacity .25s ease;
}
.player-start span {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 12px #ffffff22, 0 14px 32px #0007;
  transition: transform .25s var(--ease-out), background .2s, color .2s;
}
.player-start svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.player-start:hover span, .player-start:focus-visible span { transform: scale(1.07); background: #fff; color: var(--brand); }
.player-start:focus-visible { outline: 3px solid var(--sky); outline-offset: -5px; }
.motion-ready:not(.motion-paused) .player-start span { animation: dm-halo-dark 2.6s ease-in-out infinite; }
.player-card.has-started .player-start { opacity: 0; pointer-events: none; }

/* Enchainement automatique */
.up-next {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: #07232fe6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.up-next.show { opacity: 1; visibility: visible; }
.up-next .up-next-kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.up-next .up-next-title { margin: 0 0 18px; color: #fff; font-size: clamp(17px, 2vw, 22px); font-weight: 600; letter-spacing: -.02em; }
.up-next-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.up-next-go { position: relative; width: 64px; height: 64px; border: 0; padding: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.up-next-go svg.ring { position: absolute; inset: -6px; width: 76px; height: 76px; transform: rotate(-90deg); }
.up-next-go svg.ring circle { fill: none; stroke: var(--sky); stroke-width: 3; stroke-dasharray: 220; stroke-dashoffset: 220; stroke-linecap: round; }
.up-next.show .up-next-go svg.ring circle { animation: dm-countdown 5s linear forwards; }
.up-next-go svg.tri { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.up-next-cancel { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid #ffffff40; background: transparent; color: #fff; font: 600 14px Inter, sans-serif; cursor: pointer; }
.up-next-cancel:hover { background: #ffffff14; }

.player-meta { padding: 20px 14px 10px; }
.player-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.player-eyebrow .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px; border-radius: 999px; border: 1px solid #ffffff2b; background: #ffffff0d; font-size: 12.5px; font-weight: 600; color: #dbe2ea; }
.player-eyebrow a.chip { color: var(--sky); transition: background .2s, border-color .2s; }
.player-eyebrow a.chip:hover { background: #ffffff1a; border-color: var(--sky); }
.player-eyebrow a.chip[hidden] { display: none; }
.player-meta h3 { margin: 0 0 10px; font: 600 clamp(21px, 2.3vw, 28px)/1.2 Inter, sans-serif; letter-spacing: -.035em; color: #fff; }
.player-text { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: #c5d3df; max-width: 68ch; }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demos-page .player-card .btn.ghost { color: #fff; border-color: #4d6d82; }
.demos-page .player-card .btn.ghost:hover { background: #143849; }
.player-meta .video-error { margin: 14px 0 0; color: #ffd7a8; font-size: 14px; }
.player-meta .video-error a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.player-meta.swap { animation: dm-fade .5s var(--ease-out); }

/* Liste de lecture */
.playlist { display: flex; flex-direction: column; gap: 10px; }
.playlist-head { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.playlist-head-2 { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.playlist-item {
  --p: 0;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: center;
  width: 100%; padding: 10px; margin: 0;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: #f8fafc;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.playlist-item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--brand), var(--sky)); transition: width .25s linear; }
.playlist-item:hover { background: #fff; border-color: #b9cde3; box-shadow: 0 14px 30px -14px #07232f2e; transform: translateY(-2px); }
.playlist-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.playlist-item[aria-current="true"] { background: #fff; border-color: var(--brand); box-shadow: 0 16px 34px -16px #0060c659, inset 3px 0 0 var(--brand); }
.playlist-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0c2a37; }
.playlist-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease-out); }
.playlist-item:hover .playlist-thumb img { transform: scale(1.08); }
.playlist-thumb .dur { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; color: #fff; background: #07232fd9; }
.playlist-thumb .play-dot { position: absolute; inset: 0; display: grid; place-items: center; background: #07232f59; opacity: 0; transition: opacity .25s; }
.playlist-thumb .play-dot svg { width: 26px; height: 26px; fill: #fff; }
.playlist-item:hover .play-dot, .playlist-item[aria-current="true"] .play-dot { opacity: 1; }
.playlist-copy { min-width: 0; }
.playlist-copy .n { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.playlist-copy .t { display: block; margin: 3px 0 3px; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.playlist-copy .d { display: block; font-size: 13px; color: var(--muted); }
/* Egaliseur visible sur la video en cours */
.eq { display: none; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; }
.playlist-item.is-live .eq { display: inline-flex; }
.motion-ready:not(.motion-paused) .playlist-item.is-live .eq i { animation: dm-eq .9s ease-in-out infinite; }
.playlist-item.is-live .eq i:nth-child(2) { animation-delay: -.3s; }
.playlist-item.is-live .eq i:nth-child(3) { animation-delay: -.6s; }

.demos-note { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); color: #164d87; font-size: 13.5px; line-height: 1.6; }
.demos-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demos-note strong { color: var(--ink); }

/* ---------- PARCOURS CLIENT ---------- */
.dm-journey { background: #eef3f9; position: relative; overflow: hidden; }
.journey { --fill: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.journey::before, .journey::after { content: ""; position: absolute; top: 25px; left: 26px; right: 26px; height: 2px; border-radius: 2px; }
.journey::before { background: #c9d6e4; }
.journey::after { background: linear-gradient(90deg, var(--brand), var(--sky)); transform-origin: left; transform: scaleX(var(--fill)); box-shadow: 0 0 12px #0060c666; }
.journey-step { position: relative; min-width: 0; display: flex; flex-direction: column; }
.journey-node {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  background: #fff; border: 2px solid #c9d6e4; color: var(--muted);
  font-size: 13px; font-weight: 700;
  transition: background .5s, border-color .5s, color .5s, box-shadow .5s;
}
.journey-step.lit .journey-node { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 7px #0060c626; }
.journey-card {
  position: relative; flex: 1; display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid #d5dfea; background: #fff;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.journey-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), #0060c614, transparent 45%);
}
.journey-card:hover { transform: translateY(-6px); border-color: #a8c4e4; box-shadow: 0 30px 60px -28px #07232f40; }
.journey-card:hover::before { opacity: 1; }
.journey-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c2a37; }
.journey-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1s var(--ease-out); }
.journey-card:hover .journey-shot img { transform: scale(1.07); }
.journey-shot .tag { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #ffffffeb; color: var(--ink); }
.journey-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.journey-body h3 { margin: 0 0 8px; font: 600 18px/1.3 Inter, sans-serif; letter-spacing: -.025em; color: var(--ink); }
.journey-body p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted-2); }
.journey-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.journey-play {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 6px;
  border: 1px solid #c5d1df; border-radius: 999px; background: #fff; color: var(--ink);
  font: 600 13.5px Inter, sans-serif; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.journey-play i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transition: transform .25s var(--ease-out); }
.journey-play i svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }
.journey-play:hover { border-color: var(--brand); color: var(--brand); }
.journey-play:hover i { transform: scale(1.1); }
.journey-play:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.journey-link { font-size: 13px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.journey-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.journey-films { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; color: var(--muted-2); }
.journey-films .journey-play { background: transparent; }

/* ---------- TRANSCRIPTIONS + FAQ ---------- */
.dm-read { background: #fff; }
.dm-read-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.dm-read-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.dm-acc { display: grid; gap: 12px; }
.dm-acc details {
  border: 1px solid var(--line); border-radius: 14px; background: #f8fafc;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.dm-acc details:hover { border-color: #b9cde3; }
.dm-acc details[open] { background: #fff; border-color: #b9cde3; box-shadow: 0 18px 40px -24px #07232f33; }
.dm-acc details.flash { animation: dm-flash 1.6s ease; }
.dm-acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -.01em;
}
.dm-acc summary::-webkit-details-marker { display: none; }
.dm-acc summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 14px; }
.dm-acc summary .tnum { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--brand); }
.dm-acc summary::after {
  content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230060c6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease-out), background-color .2s;
}
.dm-acc details[open] summary::after { transform: rotate(135deg); background-color: #d6e7fb; }
.dm-acc .tbody { padding: 0 20px 20px; }
.dm-acc .tbody p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: var(--muted-2); }
.dm-acc .tbody p:last-child { margin-bottom: 0; }
.dm-acc .tbody a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dm-acc details[open] .tbody { animation: dm-fade .45s var(--ease-out); }
.dm-faq { background: #f5f7fa; border-top: 1px solid var(--line); }
.dm-faq .dm-acc details { background: #fff; }

/* ---------- APPEL A L'ACTION ---------- */
.dm-cta { padding: 24px 0 96px !important; background: #f5f7fa; }
.demos-page .cta-band { position: relative; overflow: hidden; isolation: isolate; }
.demos-page .cta-band::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, #0060c659, transparent 65%);
}
.demos-page .cta-band > * { position: relative; z-index: 1; }
.demos-page .cta-band .closing-mark { position: absolute; z-index: 0; }
.motion-ready:not(.motion-paused) .demos-page .cta-band .closing-mark,
.motion-ready:not(.motion-paused).demos-page .cta-band .closing-mark { animation: dm-spin 60s linear infinite; }
.demos-page .cta-band .cta-eyebrow { display: inline-block; color: var(--sky); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- PIED DE PAGE ---------- */
.demos-page .sms-disclaimer { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- ANIMATIONS ---------- */
@keyframes dm-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes dm-stage-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dm-pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes dm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes dm-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dm-shine { 0%, 60%, 100% { background-position: 100% 0; } 30% { background-position: 0 0; } }
@keyframes dm-ping { 0% { box-shadow: 0 0 0 0 #ffffffcc; } 80%, 100% { box-shadow: 0 0 0 7px #ffffff00; } }
@keyframes dm-halo { 0%, 100% { box-shadow: 0 0 0 12px #0060c63d, 0 14px 34px #0008; } 50% { box-shadow: 0 0 0 22px #0060c61a, 0 14px 34px #0008; } }
@keyframes dm-halo-dark { 0%, 100% { box-shadow: 0 0 0 12px #ffffff22, 0 14px 32px #0007; } 50% { box-shadow: 0 0 0 20px #ffffff10, 0 14px 32px #0007; } }
@keyframes dm-orbit { to { stroke-dashoffset: -100; } }
@keyframes dm-scrub { 0% { width: 6%; } 85% { width: 100%; } 100% { width: 100%; opacity: 0; } }
@keyframes dm-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes dm-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dm-countdown { to { stroke-dashoffset: 0; } }
@keyframes dm-flash { 0%, 100% { box-shadow: 0 0 0 0 #0060c600; } 30% { box-shadow: 0 0 0 6px #0060c640; } }
@keyframes dm-spin { to { rotate: 360deg; } }

.demos-page.motion-paused *, .demos-page.motion-paused *::before, .demos-page.motion-paused *::after { animation-play-state: paused !important; }
/* En pause (ou onglet en arriere-plan), les entrees ne doivent jamais laisser un element invisible. */
.demos-page.motion-paused :is(.dm-hero-copy > *, .dm-stage, .dm-float) { animation: none !important; opacity: 1; }
.demos-page.motion-paused .dm-hl::after { animation: none !important; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  /* editorial.css affiche le menu des 1100px, mais landing.css ne l'empile qu'a 768px. */
  .demos-page .menu-toggle { flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
  .dm-hero-grid { gap: 36px; }
  .demos-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .playlist-item { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .journey::before, .journey::after { display: none; }
  .dm-read-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .demos-page section { padding: 64px 0; }
  .dm-hero { padding: 36px 0 56px !important; }
  .dm-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .demos-page .dm-hero h1 { max-width: 16ch; }
  .dm-stage { max-width: 640px; width: 100%; margin: 0 auto; padding: 40px 18px 46px; }
  .demos-layout { grid-template-columns: 1fr; gap: 28px; }
  .player-wrap { position: relative; top: auto; }
  /* La liste devient un carrousel horizontal qui deborde vers la droite. */
  .playlist { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .playlist::-webkit-scrollbar { display: none; }
  .playlist-head { display: none; }
  .playlist-item { flex: 0 0 min(72vw, 270px); grid-template-columns: 1fr; gap: 10px; padding: 8px 8px 12px; scroll-snap-align: start; }
  .playlist-item:hover { transform: none; }
  .playlist-copy { padding: 0 4px; }
  .playlist-copy .d { display: none; }
  .demos-note { margin-top: 4px; }
  .dm-read-grid { grid-template-columns: 1fr; gap: 28px; }
  .dm-read-grid .section-head { position: static; }
  .dm-stats ul { grid-template-columns: repeat(2, 1fr); }
  .dm-stats li { padding: 22px 18px; }
  .dm-stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .dm-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .demos-page .footer { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  .demos-page .container { width: calc(100% - 32px); }
  .playlist { margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .breadcrumb { margin-bottom: 18px; }
  .dm-eyebrow { font-size: 12px; }
  .demos-page .dm-hero h1 { font-size: clamp(34px, 10.5vw, 46px); margin: 18px 0 16px; }
  .dm-lead { font-size: 16px; }
  .dm-hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .dm-hero-actions .btn { width: 100%; }
  .dm-hero-meta { gap: 6px 14px; font-size: 13px; }
  .dm-stage { padding: 30px 6px 40px; }
  .dm-screen, .dm-screen:hover { transform: none; }
  .dm-screen-play { width: 64px; height: 64px; }
  .dm-screen-play svg { width: 24px; height: 24px; }
  .dm-screen-cap strong { font-size: 14px; }
  .dm-float { padding: 8px 11px 8px 8px; border-radius: 12px; gap: 8px; }
  .dm-float .ic { width: 28px; height: 28px; border-radius: 8px; }
  .dm-float .ic svg { width: 15px; height: 15px; }
  .dm-float strong { font-size: 12px; }
  .dm-float small { font-size: 10.5px; }
  .dm-float.f1 { top: 0; left: 0; }
  .dm-float.f2 { display: none; }
  .dm-float.f3 { bottom: 0; left: auto; right: 0; }
  .motion-control { display: none; }
  .demos-page .section-head { margin-bottom: 30px; }
  .demos-page .section-head p { font-size: 16px; }
  .player-card { padding: 8px; border-radius: 14px; margin: 0 -6px; }
  .player-stage { border-radius: 8px; }
  .player-start span { width: 68px; height: 68px; }
  .player-start svg { width: 24px; height: 24px; }
  .player-meta { padding: 16px 8px 8px; }
  .player-text { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .player-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .player-actions .btn { width: 100%; padding-inline: 10px; font-size: 14px; }
  .journey { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .journey-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding-bottom: 22px; }
  .journey-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: #c9d6e4; }
  .journey-step.lit:not(:last-child)::before { background: linear-gradient(var(--brand), var(--sky)); }
  .journey-node { width: 40px; height: 40px; margin: 0; font-size: 12px; }
  .journey-shot { aspect-ratio: 16 / 9; }
  .journey-body { padding: 16px 16px 18px; }
  .journey-card:hover { transform: none; }
  .dm-acc summary { padding: 14px 16px; font-size: 15px; }
  .dm-acc .tbody { padding: 0 16px 16px; }
  .dm-cta { padding: 8px 0 64px !important; }
  .demos-page .cta-band { padding: 40px 22px; }
  .demos-page .cta-band h2 { font-size: clamp(28px, 8vw, 36px); }
  .demos-page .cta-actions { display: grid; grid-template-columns: 1fr; }
  .demos-page .cta-actions .btn { width: 100%; }
  .demos-page .cta-band .closing-mark { width: 220px; top: auto; bottom: -60px; right: -60px; opacity: .12; }
}

@media (hover: none) {
  .playlist-item .play-dot { opacity: 0; }
  .playlist-item[aria-current="true"] .play-dot { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .demos-page *, .demos-page *::before, .demos-page *::after { animation: none !important; transition: none !important; }
  .dm-screen { transform: none; }
  .dm-spot { display: none; }
}

/* Lien d'evitement clavier */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
