/* =============================================================================
   Applipro, page « Présentation » : la page vidéo envoyée aux prospects.
   Même en-tête réduit que la page de démo (page-demo.css). Dessous : le film en
   grand, la bande de logos, les onze clips par thème, les questions, la demande
   de démo et la signature. Un clip s'ouvre dans une fenêtre par-dessus la page.
   ============================================================================= */

.pv-hero h1 span { display: inline; }

/* --- Le film --- */
.pv-film { width: var(--wrap); max-width: 1180px; margin: 44px auto 0; padding-bottom: 84px; scroll-margin-top: 20px; }
.pv-stage { position: relative; overflow: hidden; border-radius: 30px; background: #0F1424; box-shadow: 0 0 0 1px rgba(24, 24, 146, .08), 0 56px 100px -56px rgba(24, 24, 146, .6); aspect-ratio: 16 / 9; }
.pv-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0F1424; }
.pv-play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: #0F1424; cursor: pointer; }
.pv-play[hidden] { display: none; }
.pv-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .35s ease; }
.pv-play:hover img { transform: scale(1.015); }
.pv-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 20, 36, 0) 45%, rgba(15, 20, 36, .5) 100%); }
/* Le bouton de lecture : un disque blanc et son triangle, au centre */
.pv-play i, .pv-thumb i { position: absolute; left: 50%; top: 50%; z-index: 1; border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 34px -14px rgba(15, 20, 36, .7); transition: transform .3s var(--ease); }
.pv-play i { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.pv-play i::after, .pv-thumb i::after { content: ''; position: absolute; left: 50%; top: 50%; border-style: solid; border-color: transparent transparent transparent var(--blue-500); }
.pv-play i::after { margin: -15px 0 0 -9px; border-width: 15px 0 15px 25px; }
.pv-play:hover i { transform: scale(1.06); }
.pv-play span { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 1; font-size: 17px; font-weight: 600; color: #fff; text-align: center; }
.pv-stage.is-error .pv-play img { opacity: .5; }
/* À la fin du film */
.pv-after { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; background: rgba(15, 20, 36, .88); color: #fff; text-align: center; }
.pv-after[hidden] { display: none; }
.pv-after p { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.pv-after span { font-size: 17px; color: rgba(255, 255, 255, .78); }
.pv-after div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.pv-cap { max-width: 820px; margin: 22px auto 0; font-size: 17px; line-height: 1.5; color: var(--gray-800); text-align: center; text-wrap: balance; }
.pv-cap strong { font-weight: 600; color: var(--gray-900); }

/* --- Les fonctionnalités --- */
.pv-feat { width: var(--wrap); max-width: 1180px; margin: 0 auto; padding: 0 0 96px; scroll-margin-top: 28px; }
.pv-head { text-align: center; }
.pv-head h2 { max-width: 880px; margin: 0 auto; font-size: clamp(30px, 3.1vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.pv-head p { margin-top: 14px; font-size: 18px; color: var(--gray-800); }
.pv-group { margin-top: 56px; }
.pv-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.pv-group h3 span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--gray-600); }
.pv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pv-clip { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: center; gap: 20px; width: 100%; height: 100%; padding: 12px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: box-shadow .3s ease, transform .4s var(--ease); }
.pv-clip:hover { box-shadow: 0 0 0 1px var(--blue-100), 0 26px 44px -30px rgba(24, 24, 146, .5); transform: translateY(-2px); }
.pv-thumb { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #0F1424; aspect-ratio: 16 / 9; }
.pv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-thumb i { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.pv-thumb i::after { margin: -8px 0 0 -4px; border-width: 8px 0 8px 13px; }
.pv-clip:hover .pv-thumb i { transform: scale(1.08); }
.pv-thumb em { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 7px; background: rgba(15, 20, 36, .82); font-size: 12px; font-style: normal; font-weight: 600; line-height: 1; color: #fff; }
.pv-txt { display: block; padding-right: 8px; }
.pv-txt strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--gray-900); }
.pv-txt span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--gray-800); }

/* --- Après les vidéos --- */
.pv-ask { display: grid; justify-items: center; gap: 6px; margin-bottom: 110px; padding: 44px 30px 46px; }
.pv-ask p { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.pv-ask span { font-size: 17px; color: var(--gray-800); text-wrap: balance; }
.pv-ask .btn { margin-top: 16px; font-weight: 600; color: #fff; text-decoration: none; }

/* --- La signature, puis le pied de page --- */
.pv-sign { margin-top: 40px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.02em; color: var(--blue-500); text-align: center; }
.pv-sign + .cta-res { margin-top: 12px; }
.pv-note { width: var(--wrap); margin: -40px auto 48px; font-size: 13.5px; color: var(--gray-600); text-align: center; text-wrap: balance; }

/* --- La fenêtre d'un clip --- */
.pv-dlg { width: min(1040px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--gray-900); box-shadow: 0 60px 110px -40px rgba(12, 14, 60, .6); overflow: auto; overscroll-behavior: contain; }
.pv-dlg::backdrop { background: rgba(18, 22, 36, .66); }
.pv-dlg[open] { animation: pv-in .28s var(--ease); }
@keyframes pv-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pv-dlg-v { background: #0F1424; }
.pv-dlg-v video { display: block; width: 100%; max-height: min(585px, calc(100dvh - 250px)); aspect-ratio: 16 / 9; background: #0F1424; }
.pv-dlg-b { padding: 22px 28px 26px; }
.pv-dlg-k { font-size: 14px; font-weight: 700; color: var(--blue-500); }
.pv-dlg-b h2 { margin-top: 4px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.pv-dlg-d { max-width: 760px; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--gray-800); }
.pv-dlg-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.pv-dlg-a .btn { padding: 13px 18px; font-size: 14px; }
.pv-dlg-a [hidden] { display: none; }
.pv-more { margin-left: 8px; font-size: 15px; font-weight: 600; color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.pv-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 20, 36, .7); cursor: pointer; transition: background .25s ease; }
.pv-x:hover { background: rgba(15, 20, 36, .92); }
.pv-x::before, .pv-x::after { content: ''; position: absolute; left: 12px; top: 19px; width: 16px; height: 2px; border-radius: 2px; background: #fff; }
.pv-x::before { transform: rotate(45deg); }
.pv-x::after { transform: rotate(-45deg); }
/* Sur téléphone, les clips existent en format vertical */
.pv-dlg.is-vertical { width: min(420px, 100% - 24px); }
.pv-dlg.is-vertical .pv-dlg-v video { max-height: calc(100dvh - 330px); aspect-ratio: 9 / 16; margin: 0 auto; width: auto; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .pv-dlg[open] { animation: none; }
  .pv-clip, .pv-play img, .pv-play i, .pv-thumb i { transition: none; }
}

@media (max-width: 1080px) {
  .pv-clip { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
  .pv-txt strong { font-size: 17px; }
}
@media (max-width: 900px) {
  .pv-film { padding-bottom: 68px; }
  .pv-feat { padding-bottom: 76px; }
  .pv-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pv-clip { grid-template-columns: 200px minmax(0, 1fr); }
  .pv-ask { margin-bottom: 90px; }
  .pv-stage { border-radius: 24px; }
  .pv-play i { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .pv-play i::after { margin: -12px 0 0 -7px; border-width: 12px 0 12px 20px; }
}
@media (max-width: 560px) {
  .pv-film { margin-top: 30px; }
  .pv-stage { border-radius: 18px; }
  .pv-play i { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .pv-play i::after { margin: -10px 0 0 -6px; border-width: 10px 0 10px 16px; }
  .pv-play span { bottom: 14px; font-size: 14px; }
  .pv-cap { margin-top: 16px; font-size: 15.5px; }
  .pv-group { margin-top: 40px; }
  .pv-group h3 { font-size: 21px; }
  .pv-clip { grid-template-columns: 116px minmax(0, 1fr); align-items: start; gap: 12px; padding: 10px; border-radius: 18px; }
  .pv-thumb { border-radius: 10px; }
  .pv-thumb i { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .pv-thumb i::after { margin: -6px 0 0 -3px; border-width: 6px 0 6px 10px; }
  .pv-thumb em { right: 5px; bottom: 5px; padding: 3px 5px; font-size: 11px; }
  .pv-txt { padding-right: 2px; }
  .pv-txt strong { font-size: 16px; }
  .pv-txt span { display: -webkit-box; overflow: hidden; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
  .pv-ask { margin-bottom: 64px; padding: 32px 20px 34px; }
  .pv-after span { font-size: 15px; }
  .pv-dlg { border-radius: 22px; }
  .pv-dlg-b { padding: 18px 18px 20px; }
  .pv-dlg-b h2 { font-size: 20px; }
  .pv-dlg-d { font-size: 15px; }
  .pv-dlg-a { gap: 8px; margin-top: 14px; }
  .pv-dlg-a .btn { flex: 1 1 0; padding: 13px 8px; font-size: 12.5px; white-space: nowrap; }
  .pv-more { flex-basis: 100%; margin: 4px 0 0; text-align: center; }
}

/* >>> Réglage « ordinateur portable » (généré par outils/reglage-portable.py, ne pas modifier à la main) */
@media (min-width: 1100px) and (max-height: 900px) {
  .pv-head h2 { font-size: clamp(28px, 2.7vw, 37px); }
}
/* <<< fin du réglage « ordinateur portable » */
