:root { --cream: #f4f1ec; --orange: #ff3c00;  }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: #111; font: 400 15px/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }

/* En-tête fixe : le texte s'inverse selon le fond (noir/blanc/bleu) */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: grid;
  grid-template-columns: 34% 33.7% 1fr; padding: 0; color: #fff; mix-blend-mode: difference; pointer-events: none; }
header a { pointer-events: auto; text-decoration: none; }
h1, h2, nav { margin: 0; font-weight: 400; font-size: clamp(1rem, 2.2vw, 2rem); line-height: 1; }
h1 { font-size: clamp(2rem, 4.7vw, 4.2rem); line-height: .95; }
nav a { display: block; }
nav a:hover { opacity: .6; }
nav a.current { opacity: .45; }

main { padding-top: clamp(4rem, 8.6vw, 7.5rem); }

/* Bandes de visuels */
.media { background: #000; padding: 0; display: flex; flex-direction: column; align-items: center; }
.media.orange { background: var(--orange); }
/* Les vidéos vont de bord à bord, sans marge */
.media video { display: block; width: 100%; height: auto; }
.media > .vwrap:last-child { margin-bottom: -2px; }
.vwrap { position: relative; width: 100%; line-height: 0; }
/* Voile très léger + symbole pause blanc au centre, visibles quand la vidéo est en pause */
.vpause { position: absolute; inset: 0; background: rgba(0,0,0,.12); opacity: 0; pointer-events: none; transition: opacity .2s ease; display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 1.3vw, 1.1rem); }
.vwrap.is-paused .vpause { opacity: 1; }
.vpause i { display: block; width: clamp(.6rem, 1.7vw, 1.5rem); height: clamp(2.4rem, 6vw, 5.2rem); background: #fff; }
/* Les images gardent de l'air autour d'elles */
.row { display: flex; gap: 1rem; width: 100%; justify-content: safe center; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 1.5rem; margin: clamp(2rem, 7vw, 6rem) 0; }
.row:empty { display: none; }
.media.full .row { padding: 0; margin: 0; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; }
.media.full .row img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; flex: none; scroll-snap-align: center; }
.row img { height: min(60vh, 520px); width: auto; flex: none; scroll-snap-align: center; }
.media > img { max-width: calc(100% - 3rem); max-height: 82vh; margin: clamp(2rem, 7vw, 6rem) 0; }

/* Sliders à bande noire fine (UNESCO) */
.media.tight .row { margin: clamp(.4rem, 1vw, 1rem) 0; padding: 0; gap: .5rem; justify-content: flex-start; }
.media.tight .row img { height: min(calc(100vh - 9rem), 900px); }

/* Barre de défilement fine des diaporamas : trait gris + segment clair */
.media { position: relative; }
.row { scrollbar-width: none; -ms-overflow-style: none; }
.row::-webkit-scrollbar { display: none; }
.media.tight .row { margin-bottom: 2.2rem; }
.media.full { padding-bottom: 2.2rem; }
.sbar { position: absolute; left: 4%; right: 4%; bottom: .5rem; height: 1.2rem; cursor: pointer; touch-action: none; }
.sbar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.22); }
.sthumb { position: absolute; top: 50%; left: 0; height: 1px; background: rgba(255,255,255,.9); transition: height .15s ease; }
.sbar:hover .sthumb, .sbar.is-drag .sthumb { height: 3px; margin-top: -1px; }

/* Légendes */
.caption { position: relative; background: var(--cream); display: grid; grid-template-columns: 34% 1fr; padding: .4rem 0 4.5rem; }
.caption h3 { margin: 0; font-weight: 400; font-size: clamp(1.1rem, 2.1vw, 1.9rem); line-height: 1.1; }
.caption h3 span { display: block; }
.caption p { margin: 0; font-size: clamp(.8rem, 1.1vw, 1rem); }
.caption .en { font-style: italic; }

/* Page info */
.info-page main { padding-top: clamp(5rem, 9vw, 8rem); }
.info { display: grid; grid-template-columns: 34% 34% 1fr; padding: 0 1rem 0 .6rem; }
.info > div { padding-right: 2rem; font-size: clamp(.9rem, 1.15vw, 1.1rem); line-height: 1.3; }
.info p { margin: 0 0 1rem; }
.info .en { font-style: italic; }
.logos { display: block; width: 84%; max-width: 1400px; margin: clamp(4rem, 12vw, 11rem) auto 6rem; }

@media (max-width: 700px) {
  /* En-tête : 3 colonnes comme sur ordinateur, titre sur deux lignes */
  header { grid-template-columns: 35% 35% 1fr; row-gap: 0; }
  h1 { grid-column: auto; font-size: clamp(1.5rem, 5.6vw, 2.5rem); line-height: .95; padding-right: .4rem; }
  h2, nav { font-size: clamp(.8rem, 2.9vw, 1.4rem); line-height: 1.02; }
  main { padding-top: max(4.6rem, 18.4vw); }
  .info-page main { padding-top: max(6.5rem, 22vw); }

  /* Légendes : titre à gauche (35 %), texte à droite */
  .caption { grid-template-columns: 35% 1fr; padding: .35rem 0 3rem; }
  .caption h3 { font-size: clamp(.85rem, 3vw, 1.4rem); line-height: 1.1; }
  .caption p { margin-top: 0; font-size: clamp(.72rem, 2.3vw, 1rem); line-height: 1.2; padding-right: .5rem; }

  /* Page info : textes empilés */
  .info { grid-template-columns: 1fr; padding-left: .6rem; padding-right: .6rem; }
  .info > div { grid-column: 1; padding: 0 0 1rem; }
}
