/* =====================================================
   ARCHIVES DE TERRAIN — STYLE COMMUN
   base partagée index + image
   ===================================================== */

/* =====================================================
   1. BASE
   ===================================================== */

html {
  font-size: 15px;
}

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hidden {
  display: none;
}

/* =====================================================
   2. TITRES ET HIÉRARCHIE
   ===================================================== */

h1,
.title {
  margin: 0 0 24px 0;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

h2 {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

h3 {
  margin-top: 16px;
  font-weight: 500;
  font-size: 0.82rem;
  color: #222;
}

.main-title {
  font-weight: 500;
  letter-spacing: 0.03em;
}

.main-title .subtitle {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: none;
  opacity: 0.6;
}

#objTitle {
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =====================================================
   3. MÉTADONNÉES / LABELS
   ===================================================== */

.meta {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.72);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 18px;
}

.label {
  display: inline-block;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #111;
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-label {
  padding-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

/* =====================================================
   4. CONTEXTE — TEXTE
   ===================================================== */

.obj-contexte-title {
  display: block;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}

.contexte-texte {
  font-size: 0.82rem;
  line-height: 1.85;
  color: #5a5a5a;
  white-space: pre-line;
}

.contexte-texte p {
  margin: 0 0 6px 0;
}

.contexte-texte p:last-child {
  margin-bottom: 0;
}

.contexte-ref {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #8a8a8a;
}

.contexte-source {
  margin-top: 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.7);
}

.contexte-link {
  margin-top: 6px;
  font-size: 0.82rem;
}

.contexte-link a {
  text-decoration: none;
}

.contexte-link a:hover {
  text-decoration: underline;
}

/* =====================================================
   5. CONTEXTE — DOCUMENTS
   ===================================================== */

.contexte-documents {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}

.contexte-doc {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0;
}

.contexte-doc img,
.contexte-doc audio,
.contexte-doc video {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 6px;
}

.contexte-doc figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #666;
  white-space: normal;
}

/* =====================================================
   6. VIDÉO DOCUMENTAIRE
   ===================================================== */

.video-wrapper {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.video-wrapper video {
  display: block;
  width: 100%;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 180ms ease;
}

.video-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-left: 16px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.9;
}

.video-wrapper.is-playing .video-play {
  opacity: 0;
}

/* =====================================================
   7. RESPONSIVE GLOBAL
   ===================================================== */

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 18.5px;
  }

  h1,
  .title {
    letter-spacing: 0.02em;
  }

  h2 {
    letter-spacing: 0.03em;
  }

  .obj-contexte-title,
  .section-label,
  .label {
    letter-spacing: 0.03em;
  }
}