/* Deep Dive v2 — charte index-v2 / article-v2 */

.dd-v2-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
}
.dd-v2-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg4);
}
.dd-v2-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}
.dd-v2-hero-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
}
.dd-v2-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.dd-v2-hero .art-v2-category {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}
.dd-v2-hero .art-v2-meta {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.dd-v2-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bdr);
}
.dd-v2-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t3);
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.dd-v2-tab:hover {
  color: var(--t1);
  background: var(--bg4);
}
.dd-v2-tab.active {
  color: #000;
  background: rgba(215, 230, 38, 0.5);
}

.dd-v2-loading {
  padding: 32px;
  text-align: center;
  color: var(--t3);
  font-size: 14px;
}
.dd-v2-tab-content {
  display: none;
}
.dd-v2-tab-content.active {
  display: block;
}

.dd-v2-apercu-summary {
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
  margin-bottom: 20px;
}
.dd-v2-apercu-summary p {
  margin-bottom: 0.75em;
}
.dd-v2-video-wrap {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg3);
  border: 1px solid var(--bdr);
}
.dd-v2-video-wrap .dd-v2-video-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}
.dd-v2-video-wrap .dd-v2-video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
}
.dd-v2-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(214, 0, 42, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  pointer-events: none;
}
.dd-v2-video-link {
  position: relative;
  display: block;
}
.dd-v2-apercu-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  margin-bottom: 24px;
}
.dd-v2-apercu-info .dd-v2-info-item {
  display: flex;
  gap: 6px;
}
.dd-v2-apercu-info .dd-v2-info-label {
  color: var(--t2);
}
.dd-v2-sources {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bdr);
}
.dd-v2-sources .stitle {
  margin-bottom: 12px;
}
.dd-v2-sources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dd-v2-source-item {
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  font-size: 13px;
}
.dd-v2-source-name {
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.dd-v2-source-title {
  font-size: 12px;
  color: var(--t2);
  margin-bottom: 4px;
}
.dd-v2-source-summary {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.4;
}

.dd-v2-analyse-body,
.dd-v2-contexte-body {
  margin-top: 8px;
}

.dd-v2-contexte-section {
  margin-bottom: 32px;
}
.dd-v2-contexte-section .stitle {
  margin-bottom: 12px;
}

/* Timeline dans la sidebar (au-dessus de "Autres Deep Dives") */
.dd-v2-sidebar-timeline {
  margin-bottom: 24px;
}
.dd-v2-sidebar-timeline .stitle {
  margin-bottom: 12px;
}

/* Timeline v2 */
.dd-v2-timeline {
  position: relative;
  padding-left: 1.5rem;
}
.dd-v2-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bdr);
}
.dd-v2-timeline-year-group {
  margin-bottom: 2rem;
}
.dd-v2-timeline-year-group:last-child {
  margin-bottom: 0;
}
.dd-v2-timeline-year-header {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #798214;
  margin-bottom: 10px;
  padding-left: 0.5rem;
}
.dd-v2-timeline-year-header::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #798214;
  border: 2px solid var(--bg2);
  z-index: 1;
}
.dd-v2-timeline-year-events {
  padding-left: 1.25rem;
  border-left: 2px solid var(--bdr);
  margin-left: 0.25rem;
}
.dd-v2-timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
}
.dd-v2-timeline-item:last-child {
  margin-bottom: 0;
}
.dd-v2-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #798214;
  border: 2px solid var(--bg2);
  z-index: 1;
}
.dd-v2-timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
  line-height: 1.35;
}
.dd-v2-timeline-description {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  white-space: pre-wrap;
}
.dd-v2-timeline-description strong {
  color: var(--t1);
}
.dd-v2-timeline-metrics {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: 10px;
}
.dd-v2-timeline-metrics h4 {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
  margin: 0 0 12px 0;
}
.dd-v2-metric-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--bdr);
  font-size: 13px;
}
.dd-v2-metric-item:last-child {
  border-bottom: none;
}
.dd-v2-metric-label {
  color: var(--t2);
}
.dd-v2-metric-value {
  font-weight: 600;
  color: var(--t1);
}

/* Modal vidéo v2 */
.dd-v2-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
}
.dd-v2-video-modal-overlay {
  position: absolute;
  inset: 0;
}
.dd-v2-video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadowH);
}
.dd-v2-video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dd-v2-video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.dd-v2-video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.dd-v2-no-content {
  color: var(--t3);
  font-size: 14px;
  padding: 2rem;
  text-align: center;
}
.dd-v2-error {
  padding: 32px;
  text-align: center;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  color: var(--t2);
}
.dd-v2-error h2 {
  font-size: 18px;
  color: var(--t1);
  margin-bottom: 10px;
}
.dd-v2-error a {
  color: var(--red);
  text-decoration: underline;
}
