/* ═══════════════════════════════════════════════════════
   HERO DÉMO
═══════════════════════════════════════════════════════ */
.dm-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--slate-dark) 100%);
  padding: calc(var(--nav-h) + 56px) 24px 48px;
  text-align: center; position: relative; overflow: hidden; color: #fff;
}
.dm-hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(224,232,0,0.18), transparent 70%);
  pointer-events: none;
}
.dm-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.dm-hero-pre {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,232,0,0.15); color: var(--yellow);
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; margin-bottom: 20px;
  border: 1px solid rgba(224,232,0,0.3);
}
.dm-hero-h1 {
  font-size: clamp(32px, 4.4vw, 52px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 16px; color: #fff;
}
.dm-hero-h1 mark {
  background: linear-gradient(180deg, transparent 60%, rgba(224,232,0,0.45) 60%);
  color: var(--yellow); padding: 0 4px;
}
.dm-hero-script {
  font-family: var(--script); font-size: 28px; color: var(--yellow);
  display: block; margin-bottom: 16px;
}
.dm-hero-lead {
  font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.78);
  max-width: 560px; margin: 0 auto 32px;
}

/* Onglets */
.dm-tabs {
  max-width: 520px; margin: 0 auto;
  display: flex; gap: 6px; padding: 6px;
  background: rgba(255,255,255,0.08); border-radius: 14px;
  backdrop-filter: blur(8px); position: relative;
}
.dm-tab {
  flex: 1; background: none; border: none; padding: 12px 16px; border-radius: 10px;
  color: rgba(255,255,255,0.6); font-weight: 800; font-size: 14px;
  cursor: pointer; font-family: var(--font);
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dm-tab.active { background: var(--yellow); color: var(--dark); }
.dm-tab-count {
  background: rgba(0,0,0,0.15); color: inherit;
  font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 999px;
}
.dm-tab.active .dm-tab-count { background: var(--dark); color: var(--yellow); }


/* ═══════════════════════════════════════════════════════
   SECTION CONTENU
═══════════════════════════════════════════════════════ */
.dm-section {
  padding: 56px 24px 72px; max-width: 1100px; margin: 0 auto;
}
.dm-section[hidden] { display: none; }

.dm-overline {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.dm-overline::before { content: '✦'; color: var(--yellow); }

.dm-h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--dark); margin-bottom: 12px;
}
.dm-h2 mark {
  background: linear-gradient(180deg, transparent 60%, var(--yellow-pale) 60%);
  padding: 0 4px;
}
.dm-section-lead {
  font-size: 16px; color: var(--text); line-height: 1.65; max-width: 560px; margin-bottom: 40px;
}


/* ═══════════════════════════════════════════════════════
   LECTEUR VIDÉO
═══════════════════════════════════════════════════════ */
.dm-video-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px;
}
.dm-video-main {
  background: #000; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/9; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.dm-video-poster {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.dm-video-poster::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(224,232,0,0.18), transparent 50%);
}
.dm-video-eq {
  position: absolute; font-family: 'Times New Roman', serif;
  color: rgba(255,255,255,0.18); font-weight: 700; pointer-events: none;
}
.dm-video-eq1 { top: 24px; left: 32px; font-size: 28px; transform: rotate(-6deg); }
.dm-video-eq2 { bottom: 32px; right: 40px; font-size: 22px; transform: rotate(4deg); }

.dm-video-play {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 12px rgba(224,232,0,0.2), 0 8px 32px rgba(224,232,0,0.4);
  transition: transform 0.2s;
}
.dm-video-poster:hover .dm-video-play { transform: scale(1.08); }
.dm-video-play::before {
  content: ''; width: 0; height: 0; margin-left: 6px;
  border-left: 26px solid var(--dark);
  border-top: 16px solid transparent; border-bottom: 16px solid transparent;
}

.dm-video-active {
  background: #000; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.dm-video-active[hidden] { display: none; }

.dm-video-bars { display: flex; gap: 4px; align-items: flex-end; height: 60px; }
.dm-video-bar {
  width: 6px; background: var(--yellow); border-radius: 3px;
  animation: bars 1.2s infinite ease-in-out;
}
.dm-video-bar:nth-child(1) { animation-delay: 0s;    height: 30%; }
.dm-video-bar:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.dm-video-bar:nth-child(3) { animation-delay: 0.3s;  height: 100%; }
.dm-video-bar:nth-child(4) { animation-delay: 0.45s; height: 50%; }
.dm-video-bar:nth-child(5) { animation-delay: 0.6s;  height: 80%; }
@keyframes bars { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.dm-video-controls {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex; align-items: center; gap: 12px; z-index: 3;
}
.dm-video-progress {
  flex: 1; height: 4px; background: rgba(255,255,255,0.25);
  border-radius: 2px; overflow: hidden;
}
.dm-video-progress-fill {
  height: 100%; width: 32%; background: var(--yellow); border-radius: 2px;
}
.dm-video-time { font-size: 12px; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-video-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 14px;
}

/* Info + playlist */
.dm-video-info { background: var(--slate-bg); border-radius: 18px; padding: 28px; }
.dm-video-info-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow); background: var(--dark);
  padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px;
}
.dm-video-info-h3  { font-size: 20px; font-weight: 900; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
.dm-video-info-meta { font-size: 13px; color: var(--text); margin-bottom: 14px; font-weight: 600; }
.dm-video-info-desc { font-size: 14px; color: var(--text); line-height: 1.65; margin-bottom: 20px; }

.dm-video-list { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.dm-video-list-title { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.dm-video-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; transition: background 0.15s;
  background: #fff; border: 1px solid transparent;
}
.dm-video-item.active { border-color: var(--yellow); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.dm-video-item:hover:not(.active) { background: #f5f5f5; }
.dm-video-item-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--slate); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px; flex-shrink: 0;
}
.dm-video-item.active .dm-video-item-num { background: var(--yellow); color: var(--dark); }
.dm-video-item-text { flex: 1; min-width: 0; }
.dm-video-item-title { font-size: 13px; font-weight: 800; color: var(--dark); margin-bottom: 2px; line-height: 1.3; }
.dm-video-item-meta  { font-size: 11px; color: var(--text); font-weight: 600; }
.dm-video-item-play  { font-size: 13px; color: var(--slate); flex-shrink: 0; }
.dm-video-item.active .dm-video-item-play { color: var(--yellow); }


/* ═══════════════════════════════════════════════════════
   PDF DOWNLOADS
═══════════════════════════════════════════════════════ */
.dm-pdf-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.dm-pdf-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; display: flex; gap: 20px; align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dm-pdf-card:hover {
  transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--yellow);
}
.dm-pdf-thumb {
  width: 92px; height: 120px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #fff 0%, var(--yellow-pale) 100%);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; padding: 14px 10px;
}
.dm-pdf-thumb-fold {
  position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  background: var(--yellow); clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.dm-pdf-thumb-line {
  height: 3px; border-radius: 2px; background: var(--slate); margin-bottom: 6px; opacity: 0.6;
}
.dm-pdf-thumb-line:nth-child(2) { width: 80%; }
.dm-pdf-thumb-line:nth-child(3) { width: 60%; }
.dm-pdf-thumb-line:nth-child(4) { width: 90%; opacity: 0.3; height: 2px; margin-top: 6px; }
.dm-pdf-thumb-line:nth-child(5) { width: 70%; opacity: 0.3; height: 2px; }
.dm-pdf-thumb-line:nth-child(6) { width: 85%; opacity: 0.3; height: 2px; }
.dm-pdf-thumb-line:nth-child(7) { width: 50%; opacity: 0.3; height: 2px; }
.dm-pdf-thumb-tag {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  background: var(--dark); color: var(--yellow);
  font-size: 8px; font-weight: 900; padding: 3px 6px;
  border-radius: 3px; letter-spacing: 0.06em; text-align: center;
}

.dm-pdf-info   { flex: 1; min-width: 0; }
.dm-pdf-tag    { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.dm-pdf-title  { font-size: 17px; font-weight: 900; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.dm-pdf-desc   { font-size: 13px; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.dm-pdf-meta   { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.dm-pdf-meta-item {
  font-size: 11px; color: var(--text); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: var(--slate-bg); border-radius: 6px;
}

.dm-pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  font-family: var(--font); font-weight: 900; font-size: 13px;
  padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.dm-pdf-btn:hover  { background: var(--yellow); color: var(--dark); }
.dm-pdf-btn.downloaded { background: var(--yellow-pale); color: var(--slate-darker); }


/* ═══════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════ */
.dm-cta { background: var(--slate-bg); padding: 80px 24px; text-align: center; }
.dm-cta-inner { max-width: 640px; margin: 0 auto; }
.dm-cta-h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; color: var(--dark);
  margin-bottom: 12px; line-height: 1.1; letter-spacing: -0.02em;
}
.dm-cta-h2 mark {
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%); padding: 0 4px;
}
.dm-cta-script {
  font-family: var(--script); font-size: 26px; color: var(--slate);
  display: block; margin-bottom: 16px;
}
.dm-cta-p { font-size: 16px; color: var(--text); line-height: 1.65; margin-bottom: 28px; }
.dm-cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dm-cta-primary {
  background: var(--yellow); color: var(--dark);
  font-family: var(--font); font-weight: 900; font-size: 16px;
  padding: 16px 32px; border-radius: 12px; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(224,232,0,0.4); display: inline-block;
  transition: transform 0.15s;
}
.dm-cta-primary:hover { transform: translateY(-2px); }
.dm-cta-secondary {
  background: #fff; color: var(--dark);
  font-family: var(--font); font-weight: 800; font-size: 15px;
  padding: 16px 28px; border-radius: 12px;
  border: 1.5px solid var(--border); display: inline-block;
  transition: border-color 0.15s;
}
.dm-cta-secondary:hover { border-color: var(--slate); }


/* ═══════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════ */
.dm-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 120px);
  background: var(--dark); color: #fff;
  padding: 14px 22px; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  z-index: 1000; transition: transform 0.3s ease;
  pointer-events: none;
}
.dm-toast.visible { transform: translate(-50%, 0); }
.dm-toast-ico {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dm-video-grid { grid-template-columns: 1fr; }
  .dm-pdf-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dm-tab { padding: 10px 8px; font-size: 13px; }
  .dm-tab-count { display: none; }
  .dm-hero { padding-bottom: 40px; }
}
