/* ==========================================================================
   Drop2Desk - Styles Démo Épurée & Symétrique (QR à gauche / Photo à droite)
   Design System Pennylane / Drop2Desk - Responsive & Zéro Émoji
   ========================================================================== */

.landing-demo-section {
  padding: 44px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.landing-side-by-side-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1040px) {
  .landing-side-by-side-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 720px;
  }
}

.landing-demo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  padding: 28px 22px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  padding: 28px 22px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.landing-demo-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px auto;
}

/* Badge épuré sans éclair */
.landing-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.landing-demo-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px 0;
}

.landing-demo-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Grille 2 colonnes parfaitement symétriques (QR à gauche / Photo à droite) */
.landing-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 720px) {
  .landing-demo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .landing-demo-card {
    padding: 24px 16px;
  }

  .landing-demo-square-frame {
    width: 240px;
    height: 240px;
    margin: 0 auto 14px auto;
  }
}

/* Boîtes communes pour les 2 colonnes */
.landing-demo-box-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.landing-demo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 14px;
  min-height: 22px;
}

.landing-demo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.landing-demo-status-dot.connected {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Cadre QR code et Cadre Photo de TAILLE IDENTIQUE (agrandis harmonieusement à 240px x 240px) */
.landing-demo-square-frame {
  position: relative;
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  width: 240px;
  height: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.landing-demo-qr-canvas {
  width: 216px;
  height: 216px;
  display: block;
}

/* Voile d'expiration ou de quota sur le QR */
.landing-demo-qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 5;
  backdrop-filter: blur(2px);
}

.landing-demo-qr-overlay.hidden {
  display: none !important;
}

.landing-demo-overlay-msg {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.landing-demo-reload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.landing-demo-reload-btn:hover {
  background: #0369a1;
}

/* Minuteur 60 secondes & Quota */
.landing-demo-timer-wrap {
  width: 100%;
  max-width: 240px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.landing-demo-timer-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 5px;
}

.landing-demo-timer-bar-bg {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.landing-demo-timer-bar-fill {
  height: 100%;
  background: #0284c7;
  width: 100%;
  transition: width 1s linear;
}

.landing-demo-quota-badge {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* Carte exemple modèle élégante (Option 1 - Zéro effet de bug) */
.landing-demo-sample-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
}

.landing-demo-sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-demo-sample-pill {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.landing-demo-sample-id {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.landing-demo-sample-doc {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.landing-demo-sample-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.landing-demo-sample-chip {
  width: 22px;
  height: 15px;
  background: #fef08a;
  border: 1px solid #eab308;
  border-radius: 3px;
  flex-shrink: 0;
}

.landing-demo-sample-title-bar {
  height: 8px;
  background: #0284c7;
  border-radius: 4px;
  flex: 1;
}

.landing-demo-sample-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
}

.landing-demo-sample-hint {
  text-align: center;
  font-size: 0.73rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.3;
}

.landing-demo-preview-img,
.landing-demo-doc-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #f1f5f9;
}

/* Enveloppe centrée des outils et du bouton Télécharger */
.landing-demo-tools-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 12px auto 10px auto;
  width: 100%;
}

/* Mini Barre d'outils vectorielle compacte centrée sous la photo */
.landing-demo-mini-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 10px;
  width: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.landing-demo-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  padding: 0;
}

.landing-demo-tool-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.landing-demo-tool-btn:active {
  transform: translateY(0);
}

/* Bouton télécharger vert Drop2Desk centré en dessous */
.landing-demo-mini-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 18px;
  background: #059669;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.landing-demo-mini-download-btn:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* Bulle interactive élégante : "Débloquer avec l'option Pro - voir nos offres" */
.landing-demo-pro-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #071746;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  width: 100%;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(7, 23, 70, 0.15);
  animation: demoToastFadeIn 0.25s ease-out;
  transition: opacity 0.3s;
}

.landing-demo-pro-toast.hidden {
  display: none !important;
}

.landing-demo-pro-toast a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.landing-demo-pro-toast a:hover {
  color: #7dd3fc;
}

@keyframes demoToastFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Styles Vidéo Démonstration Drop2Desk & Modale Plein Écran
   ========================================================================== */
.landing-video-thumb-frame {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 350px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 1040px) {
  .landing-video-thumb-frame {
    aspect-ratio: 16 / 9;
    min-height: unset;
  }
}

.landing-video-thumb-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.landing-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease-out;
}

.landing-video-thumb-frame:hover .landing-video-thumb-img {
  transform: scale(1.03);
}

.landing-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.25);
  transition: background 0.2s;
}

.landing-video-thumb-frame:hover .landing-video-play-overlay {
  background: rgba(15, 23, 42, 0.15);
}

.landing-video-play-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
}

.landing-video-thumb-frame:hover .landing-video-play-icon {
  transform: scale(1.1);
  background: #047857;
}

.landing-video-time-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.landing-video-bottom-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-video-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #071746;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.landing-video-launch-btn:hover {
  background: #0d2568;
  transform: translateY(-1px);
}

.landing-video-features {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-video-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

/* Modale Vidéo Dédiée Drop2Desk */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: videoModalFadeIn 0.2s ease-out;
}

.video-modal-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 18px;
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0b1324;
  border-bottom: 1px solid #1e293b;
}

.video-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
}

.video-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.15s;
}

.video-modal-close:hover {
  color: #ffffff;
}

.video-modal-body {
  position: relative;
  width: 100%;
  padding: 0;
  background: #000000;
}

.video-modal-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-modal-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes videoModalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

