/* =====================================================
   Service Commercial IA — vidéothèque « Nos réalisations »
   Reprend la charte de styles.css : marine, orange, crème,
   Space Grotesk + Inter. Animations coupées si le visiteur
   demande moins de mouvement.
   ===================================================== */

.vt-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hero-count { color: var(--navy); font-weight: 700; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.hero-compact .orb-2 { display: none; }

/* ===== Barre de recherche (reste sous la navigation au défilement) ===== */
.vt-toolbar {
  position: sticky; top: 84px; z-index: 50;
  padding: 18px 0 14px;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.vt-search { position: relative; max-width: 760px; }
.vt-search input {
  width: 100%;
  padding: 16px 52px 16px 54px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font: 500 1.02rem var(--font-body);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.vt-search input::placeholder { color: #8A93A6; }
.vt-search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 80, 44, 0.14), var(--shadow);
}
.vt-search input::-webkit-search-cancel-button { display: none; }
.vt-search-icon {
  position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; pointer-events: none;
}
.vt-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--tint); color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.vt-clear:hover { background: var(--navy); color: var(--white); }

.vt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vt-pills button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font: 600 0.88rem var(--font-body); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
}
.vt-pills button:hover { border-color: var(--accent); }
.vt-pills button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vt-pill-count {
  min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: rgba(244, 80, 44, 0.12); color: var(--accent); font-size: 0.78rem;
}
.vt-pills button[aria-pressed="true"] .vt-pill-count { background: var(--accent); color: var(--white); }
.vt-pills button.vt-pill-zero { opacity: 0.5; }
.vt-status { min-height: 1.4em; margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.vt-status:empty { min-height: 0; margin: 0; }

/* ===== Parties et cartes ===== */
.vt-part { padding: 80px 0 88px; scroll-margin-top: 200px; }
.vt-part[hidden], .vt-card[hidden] { display: none; }
.vt-part h2 { margin-bottom: 12px; }
.vt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px;
}

.vt-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  font: inherit; color: inherit; cursor: pointer; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  animation: vt-in .6s cubic-bezier(.2,.8,.2,1) both;
}
.vt-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 80, 44, 0.12), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.vt-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(11, 28, 51, 0.16); }
.vt-card:hover::before { opacity: 1; }
.vt-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vt-grid .vt-card:nth-child(2) { animation-delay: .08s; }
.vt-grid .vt-card:nth-child(3) { animation-delay: .16s; }
.vt-grid .vt-card:nth-child(n+4) { animation-delay: .24s; }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.vt-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep);
}
.vt-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.vt-card:hover .vt-thumb img { transform: scale(1.05); }
.vt-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 28, 51, 0.45));
}
.vt-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 10px 30px rgba(244, 80, 44, 0.45);
  opacity: 0.92; transition: transform .3s cubic-bezier(.2,1.6,.4,1), opacity .3s ease;
}
.vt-play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-style: solid; border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--white);
}
.vt-card:hover .vt-play, .vt-card:focus-visible .vt-play { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
.vt-duration {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(11, 28, 51, 0.82); color: var(--white);
  font: 600 0.8rem var(--font-body); letter-spacing: 0.02em;
}

.vt-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.vt-tool {
  align-self: flex-start;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: rgba(244, 80, 44, 0.10);
  padding: 5px 12px; border-radius: 10px; line-height: 1.35;
}
.vt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vt-name { font-size: 0.8rem; font-weight: 500; color: #8A93A6; }
.vt-name::before { content: "Notre outil\00a0: "; }
.vt-player-head .vt-meta { margin-bottom: 8px; }
.vt-player-head .vt-meta .tag { margin-bottom: 0; border-radius: 10px; line-height: 1.35; }
.vt-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.22;
  letter-spacing: -0.01em; color: var(--navy);
}
.vt-hook { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ===== Aucun résultat ===== */
.vt-empty { padding: 72px 24px 96px; }
.vt-empty[hidden] { display: none; }
.vt-empty-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 44px 36px; border-radius: var(--radius);
  background: var(--white); border: 2px dashed rgba(244, 80, 44, 0.45); box-shadow: var(--shadow);
}
.vt-empty-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.vt-empty-card .lead { margin: 0 auto 26px; }
.vt-suggest {
  border: 0; background: rgba(244, 80, 44, 0.10); color: var(--accent);
  font: 600 1rem var(--font-body); padding: 1px 10px; border-radius: 999px; cursor: pointer;
}
.vt-suggest:hover { background: var(--accent); color: var(--white); }

/* ===== Lecteur (fenêtre au-dessus de la page) ===== */
body.vt-locked { overflow: hidden; }
.vt-player {
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 22px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.vt-player::backdrop { background: rgba(11, 28, 51, 0.78); backdrop-filter: blur(6px); }
.vt-player[open] { animation: vt-pop .35s cubic-bezier(.2,.9,.3,1.1); }
@keyframes vt-pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
.vt-player-inner { max-height: calc(100vh - 32px); overflow-y: auto; }
.vt-player-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 22px 26px 16px;
  position: sticky; top: 0; z-index: 2; background: var(--white);
}
.vt-player-head .tag { margin-bottom: 8px; }
.vt-player-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: 0; }
.vt-close {
  flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--tint); color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .2s ease;
}
.vt-close:hover { background: var(--accent); color: var(--white); transform: rotate(90deg); }
.vt-close:focus-visible, .vt-chapters button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vt-screen { background: #000; aspect-ratio: 16 / 9; max-height: 68vh; display: grid; }
.vt-screen video, .vt-screen iframe { width: 100%; height: 100%; border: 0; display: block; }

.vt-player-body {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; padding: 24px 26px 28px;
}
.vt-player-text p { color: var(--muted); margin-bottom: 20px; }
.vt-chapters[hidden] { display: none; }
.vt-chapters h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent);
  font-family: var(--font-body); font-weight: 700; margin-bottom: 10px;
}
.vt-chapters ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.vt-chapters button {
  display: flex; gap: 12px; width: 100%; text-align: left;
  padding: 7px 10px; border: 0; border-radius: 10px; background: none;
  font: 500 0.92rem var(--font-body); color: var(--ink); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.vt-chapters button span {
  flex-shrink: 0; min-width: 40px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent);
}
.vt-chapters button:hover { background: var(--tint); }
.vt-chapters button.on { background: var(--navy); color: var(--white); }
.vt-chapters button.on span { color: var(--accent-soft); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .vt-grid { grid-template-columns: repeat(2, 1fr); }
  .vt-player-body { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .vt-toolbar { position: static; padding-top: 4px; background: transparent; border-bottom: 0; backdrop-filter: none; }
  .vt-pills { flex-wrap: nowrap; overflow-x: auto; margin: 12px -24px 0; padding: 0 24px 4px; scrollbar-width: none; }
  .vt-pills::-webkit-scrollbar { display: none; }
  .vt-pills button { flex-shrink: 0; }
  .vt-search input { font-size: 1rem; padding: 14px 48px 14px 48px; }
  .vt-search-icon { left: 17px; }
  .vt-part { padding: 56px 0 64px; scroll-margin-top: 90px; }
  .vt-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
  .vt-player { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .vt-player-inner { max-height: 100dvh; }
  .vt-player-head { padding: 14px 16px 10px; }
  .vt-player-head .tag { font-size: 0.68rem; padding: 4px 10px; }
  .vt-player-head h2 { font-size: 1.15rem; }
  .vt-close { width: 40px; height: 40px; }
  .vt-player-body { padding: 20px 16px 28px; }
  .vt-screen { max-height: none; }
  .vt-empty-card { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-card, .vt-player[open] { animation: none !important; }
}
