/* Reproduction — https://whc.unesco.org/fr/list/252/ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --unesco-blue: #0077c8;
  --unesco-blue-dark: #005a9c;
  --link-blue: #0066b3;
  --text: #333;
  --text-muted: #666;
  --border: #d0d5db;
  --box-bg: #eef7fa;
  --box-border: #b8d4e3;
  --max-width: 1170px;
  --sidebar-width: 290px;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header — pleine largeur */
.site-header {
  background: var(--unesco-blue);
  color: #fff;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.unesco-logo {
  display: block;
  height: 36px;
  width: auto;
}

.site-title {
  font-size: 1rem;
  font-weight: normal;
  white-space: nowrap;
}

/* Onglets propriété */
.property-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.property-tabs a {
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--link-blue);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}

.property-tabs a:hover {
  background: #f5f9fc;
  text-decoration: none;
}

.property-tabs a.active {
  color: #000;
  font-weight: bold;
  border-bottom-color: var(--unesco-blue);
}

/* Layout */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 32px;
  align-items: start;
}

/* Colonne principale */
.page-title {
  margin: 0 0 14px;
  font-size: 1.85rem;
  font-weight: bold;
  color: #000;
  line-height: 1.2;
}

.lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #000;
}

.license-note {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Langues */
.lang-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 14px;
}

.lang-nav a {
  padding: 3px 9px;
  font-size: 0.82rem;
  color: var(--link-blue);
  border-radius: 2px;
  text-decoration: none;
}

.lang-nav a:hover {
  background: #f0f6fa;
  text-decoration: none;
}

.lang-nav a.active {
  background: var(--unesco-blue);
  color: #fff;
}

.lang-nav a.active:hover {
  background: var(--unesco-blue-dark);
}

/* Galerie */
.hero-gallery {
  margin: 0 0 22px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  background: #e5e5e5;
}

.thumbnails {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.thumb {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  background: #f0f0f0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.is-active {
  border-color: var(--unesco-blue);
}

.thumb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--unesco-blue);
  font-weight: bold;
  border: 1px solid var(--box-border);
  background: var(--box-bg);
  text-decoration: none;
}

.thumb-more:hover {
  background: #dceef5;
  text-decoration: none;
}

/* Sections */
.content-section h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
}

.content-section h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
}

.content-section h4 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #000;
}

.decree-lead {
  font-size: 1rem;
  line-height: 1.55;
  padding: 12px 14px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
}

.content-section h3:first-of-type {
  margin-top: 0;
}

.content-section h3 a {
  color: inherit;
  text-decoration: none;
}

.content-section h3 a:hover {
  text-decoration: underline;
  color: var(--link-blue);
}

.content-section p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.58;
  text-align: justify;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-box {
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: #fff;
}

.country-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.country-row a {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--link-blue);
}

.flag {
  border: 1px solid #bbb;
}

.meta-list {
  margin: 0 0 8px;
  font-size: 0.86rem;
}

.meta-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 3px;
}

.meta-list dt,
.meta-list dd {
  margin: 0;
}

.criteria-link {
  font-weight: bold;
}

.location {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.coords {
  font-size: 0.76rem;
}

.profile-identity {
  align-items: flex-start;
}

.profile-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.profile-display-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: normal;
}

.profile-bio {
  padding: 10px 12px;
  background: #f8f8f8;
  border-left: 3px solid var(--unesco-blue);
  font-style: italic;
}

.map-widget--profile {
  aspect-ratio: 1;
}

.map-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid a {
  font-size: 0.75rem;
}

.gallery-caption {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-list {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.post-list li {
  margin-bottom: 6px;
}

.meta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: normal;
}

.section-intro {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ig-comment {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--box-bg);
  border-left: 4px solid var(--unesco-blue);
  font-size: 0.9rem;
}

.ig-comment p {
  margin: 0 0 6px;
  font-style: italic;
  text-align: left;
}

.ig-comment footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.capu-caption p {
  line-height: 1.58;
  text-align: justify;
}

.comments-box strong {
  display: block;
  margin-bottom: 4px;
}

.comments-missing code {
  font-size: 0.85em;
}

#comments-by-post ul {
  margin: 6px 0 12px;
  padding-left: 1.2rem;
}

#comments-by-post > li > ul li {
  font-style: italic;
  margin-bottom: 4px;
}

code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Carte */
.map-widget {
  position: relative;
  border: 1px solid var(--border);
  background: #dde3e8;
  aspect-ratio: 1;
  overflow: hidden;
}

.map-widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-controls {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  pointer-events: none;
}

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #888;
  background: #fff;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.map-fullscreen {
  margin-top: 3px;
}

.map-attribution {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 0.62rem;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 1px 5px;
}

/* Encadrés */
.notice-box {
  padding: 9px 11px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  font-size: 0.74rem;
  line-height: 1.42;
}

.notice-box p {
  margin: 0;
}

.notice-box strong {
  font-size: 0.78rem;
}

/* SOC */
.soc-box {
  padding: 11px 13px;
  border: 1px solid var(--border);
}

.soc-box h4 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: bold;
}

.soc-subtitle {
  margin: 0 0 9px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.year-grid a {
  display: block;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--link-blue);
  background: #fff;
  border: 1px solid #c4c4c4;
  text-decoration: none;
}

.year-grid a:hover {
  background: #f0f6fa;
  border-color: var(--unesco-blue);
  text-decoration: none;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #f7f7f7;
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 920px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-title {
    white-space: normal;
  }

  .property-tabs a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .year-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
