/* ============================================================
   Documentaires IA — Curation pédagogique ARTE
   Route publique : /documentaires-ia (index + show)
   ============================================================ */

/* ============ Breadcrumb retour ============ */
.doc-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 160ms ease;
}
.doc-back:hover { color: var(--text); }

/* ============================================================
   INDEX — Sections par chapitre + grille cards
   ============================================================ */

.doc-chapter {
  margin-top: 64px;
}
.doc-chapter:first-child {
  margin-top: 0;
}
.doc-chapter__head {
  margin-bottom: 32px;
  max-width: 780px;
}
.doc-chapter__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 14px 0 0;
  text-wrap: balance;
}
.doc-chapter__intro {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.doc-chapter__intro p {
  margin: 0 0 12px;
}
.doc-chapter__intro p:last-child {
  margin-bottom: 0;
}
.doc-chapter__intro strong { color: var(--text); }
.doc-chapter__intro a { color: var(--accent); }

/* ============ Grille cards ============ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .doc-grid { grid-template-columns: 1fr; gap: 20px; }
}

.doc-card {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgb(var(--tint) / 0.03);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
  color: inherit;
  text-decoration: none;
}
.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgb(var(--tint) / 0.055);
}

.doc-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 0.5px solid var(--line);
}
.doc-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.doc-card__duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.doc-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.doc-card__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.doc-card__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.doc-card__meta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ============================================================
   SHOW — Fiche détaillée
   ============================================================ */

.doc-show__header {
  margin-top: 28px;
}
.doc-show__title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 18px 0 0;
  text-wrap: balance;
}
.doc-show__meta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.doc-show__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ Poster hero ============ */
.doc-show__poster {
  position: relative;
  margin: 36px 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 0.5px solid var(--line);
  overflow: hidden;
  background: rgb(var(--tint) / 0.04);
}
.doc-show__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Sections content ============ */
.doc-show__section {
  margin-top: 56px;
}
.doc-show__h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--text);
}
.doc-show__prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}
.doc-show__prose p {
  margin: 0 0 16px;
}
.doc-show__prose p:last-child { margin-bottom: 0; }
.doc-show__prose strong { color: var(--text); font-weight: 600; }
.doc-show__prose em { color: var(--text); }
.doc-show__prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgb(var(--tint) / 0.2); text-underline-offset: 3px; }
.doc-show__prose a:hover { text-decoration-color: var(--accent); }
.doc-show__prose ul {
  padding-left: 24px;
  margin: 12px 0 16px;
}
.doc-show__prose li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.doc-show__prose li::marker { color: var(--accent); }

/* ============ Fiche technique (dl) ============ */
.doc-show__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  margin: 0;
  padding: 28px;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  background: rgb(var(--tint) / 0.03);
}
@media (max-width: 640px) {
  .doc-show__specs { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
}
.doc-show__specs > div { display: flex; flex-direction: column; gap: 6px; }
.doc-show__specs--wide { grid-column: 1 / -1; }
.doc-show__specs dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.doc-show__specs dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* ============ Note pédagogique ============ */
.doc-show__note {
  margin-top: 56px;
  padding: 32px;
  border-radius: 20px;
  border: 0.5px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border-left: 3px solid var(--accent);
}
.doc-show__note-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ============ CTA ============ */
.doc-show__cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.doc-show__cta-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
