/* ── Hero ── */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 20vh 0;
  padding-top: calc(20vh + 3rem);
  color: #f5fed7;
  background-color: rgba(0, 0, 0, 0.75);
  position: relative;
}

.hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  object-fit: cover;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-size: 5.5rem;
  line-height: 1.125;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.hero .btn {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 2.5rem;
}

a.btn.btn-secondary {
  background-color: #f5f2d6;
  color: #354523;
  border-color: #f5f2d6 !important;
}

a.btn.btn-secondary:hover {
  background-color: #e7e0b8;
}

/* ── Typographie ── */
h1 {
  font-family: "Ovo", serif;
  font-weight: 400;
  font-size: 5rem;
  max-width: 50%;
  text-align: center;
}

h2 {
  font-weight: 400;
  font-size: 3rem;
}

h1.coreen,
h2.coreen {
  font-family: "Gowun Batang", serif;
  line-height: 1.2;
}

.num-heading {
  font-family: "Ovo", serif;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  color: #354523;
  max-width: 58rem;
  margin-bottom: 0.25rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: #354523;
}

/* ── Layout général ── */
body.documentaire-body {
  background-color: #f5f2d6;
}

main {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-bottom: 5rem;
}

.contents {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  max-width: 73.625rem;
  margin: 0 auto;
}

footer {
  position: relative;
}

.son {
  position: fixed;
}

/* ── Header sur hero ── */
header.sur-hero .fil a,
header.sur-hero .fil span,
header.sur-hero .fil p,
header.sur-hero .top-link,
header.sur-hero .langues span {
  color: #f5fed7;
}

header.sur-hero .langues .top-link::before {
  background-color: #f5fed7;
}

/* ── Sections de contenu ── */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.content-section h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #354523;
  margin-top: 0;
}

.content-section p,
.content-section ul {
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

/* ── Blocs texte + image ── */
.content {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.content-noimg {
  max-width: 58rem;
}

.content-oneimg {
  flex-direction: row;
}

.content-oneimg-left {
  flex-direction: row-reverse;
}

.content-heading-row {
  align-items: flex-start;
}

.content-img-only {
  justify-content: center;
}

.context-text {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.context-text.wide {
  flex: 1 1 60%;
}

.context-text h2 {
  margin-bottom: 1rem;
}

/* ── Images ── */
.context-img {
  flex: 1 1 40%;
  min-width: 0;
  max-width: 22rem;
}

.context-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.context-img.chart-box {
  max-width: 22rem;
}

/* .context-img.small {
  flex: 0 1 280px;
  max-width: 300px;
} */

.context-img.full {
  flex: 1 1 100%;
  max-width: initial;
}

.context-img.full img {
  aspect-ratio: 1178 / 353;
  object-fit: cover;
}

.context-img.stretch {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.context-img.stretch img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Les illustrations (graphiques, dessins) restent à taille naturelle */
/* .context-img.stretch.contain {
  align-self: flex-start;
} */

.align-center {
  align-self: center;
}

.align-bottom {
  align-self: flex-end;
}

.context-img.stretch.contain img {
  flex: 0 0 auto;
  width: 100%;
  /* aspect-ratio: 5 / 4; */
  height: auto;
  object-fit: contain;
}

/* ── Légendes ── */
p.img-caption {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  font-size: 0.875rem;
  font-style: italic;
  color: #000;
  padding-top: 0.5rem;
  border-top: 2px solid rgba(53, 69, 35, 0.1);
}

/* ── Listes à puce ── */
.dash-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.2rem;
  margin: 0;
}

.dash-list li {
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

.dash-list li::before {
  content: "•";
  position: absolute;
  left: -1.15rem;
  color: #828a6a;
}

.chap1_graph5 {
  gap: 1rem;
  align-self: center;
}

/* ── Tableau récapitulatif ── */
.recap-table {
  margin-top: 0;
}

.recap-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.recap-table thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #828a6a;
  font-weight: 600;
  padding: 0 1rem 0.7rem 0;
  border-bottom: 1px solid #c8d4a0;
}

.recap-table td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-top: 1px solid #e4edbe;
  vertical-align: middle;
  color: #000;
}

.recap-table tbody tr:first-child td {
  border-top: none;
}

.row-group-label {
  font-weight: 600;
  width: 20%;
  color: #354523;
}

.recap-table-caption {
  text-align: right;
  font-size: 0.875rem;
  font-style: italic;
  color: #000;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 2px solid rgba(53, 69, 35, 0.1);
}

/* ── Bibliographie ── */
.biblio-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.biblio-block p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #000;
}

.biblio-block a {
  color: #354523;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .contents {
    margin: 0 6%;
  }

  .content {
    flex-direction: column !important;
    align-items: stretch;
    gap: 1.5rem;
  }

  .context-text,
  .context-text.wide,
  .context-img,
  .context-img.chart-box,
  .context-img.small {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .num-heading {
    font-size: 2.1rem;
  }

  .hero h1 {
    font-size: 3rem;
    max-width: 90%;
  }

  .recap-table table {
    font-size: 0.8rem;
  }
}
