/* =========================================================
   Dodescaden — feuille de style
   Noir & blanc, photos, typographie grotesque (Archivo variable)
   inspiration : mouvement.net
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #000;
  --paper: #fff;
  --grey: #6e6e6e;
  --rule: #000;
  --soft: #e6e6e6;
  --pad: clamp(16px, 3vw, 40px);
  --maxw: 1440px;
  --read: 720px;
  --head-h: 0px; /* mis à jour par main.js */
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, .lead a, blockquote a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover { text-decoration-thickness: 2px; }
::selection { background: #000; color: #fff; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Typo utilitaires ---------- */
.label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.label .sep { opacity: .45; margin: 0 .35em; }
.cond {
  font-stretch: 62%;
  font-weight: 600;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
}

/* ---------- En-tête ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: block;
  text-align: center;
  padding: 26px var(--pad) 10px;
  transition: padding .25s ease;
}
.brand-name {
  display: block;
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 7.4vw, 104px);
  line-height: .85;
  letter-spacing: -.035em;
  transition: font-size .25s ease;
}
.brand-tag {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  transition: opacity .2s, height .2s, margin .2s;
}
.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  padding: 10px var(--pad) 12px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu-btn { display: none; }

/* en-tête compact au défilement */
.site-head.is-compact .brand { padding-top: 10px; padding-bottom: 0; }
.site-head.is-compact .brand-name { font-size: clamp(26px, 3.2vw, 40px); }
.site-head.is-compact .brand-tag { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.site-head.is-compact .nav { padding-top: 6px; padding-bottom: 8px; }

@media (max-width: 760px) {
  .brand { text-align: left; padding: 14px 64px 12px var(--pad); }
  .brand-name { font-size: 34px; }
  .brand-tag { font-size: 9.5px; letter-spacing: .1em; }
  .site-head.is-compact .brand-name { font-size: 26px; }
  .site-head.is-compact .brand { padding-top: 10px; padding-bottom: 10px; }
  .site-head.is-compact .menu-btn { top: 4px; }
  .menu-btn {
    display: block;
    position: absolute; right: var(--pad); top: 16px;
    width: 38px; height: 38px;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; height: 2px; width: 28px; background: #000;
    position: relative; margin: 0 auto; transition: transform .2s;
  }
  .menu-btn span::before { position: absolute; top: -8px; }
  .menu-btn span::after { position: absolute; top: 8px; }
  .nav-open .menu-btn span { background: transparent; }
  .nav-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
  .nav-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--pad) 16px;
  }
  .nav a { font-size: 22px; font-stretch: 62%; font-weight: 600; padding: 8px 0; border: 0; width: 100%; border-top: 1px solid var(--soft); }
  .nav-open .nav { display: flex; }
}

/* ---------- Conteneurs ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.read { max-width: var(--read); margin: 0 auto; }
main { min-height: 50vh; }

.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}
.section-title { font-size: clamp(34px, 5vw, 64px); margin: 0; }
.more { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Accueil : la une ---------- */
.une {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--pad);
  padding-top: var(--pad);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.une-feature {
  position: sticky;
  top: calc(var(--head-h) + var(--pad));
  align-self: start;
  height: calc(100vh - var(--head-h) - 2 * var(--pad));
  min-height: 460px;
  overflow: hidden;
  color: #fff;
  display: block;
  background: #111;
}
.une-feature img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.une-feature:hover img { transform: scale(1.025); }
.une-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
}
.une-feature .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 36px); z-index: 1; }
.une-feature .label { display: inline-block; margin-bottom: 12px; }
.une-feature h2 { font-size: clamp(56px, 8.5vw, 132px); margin: 0 0 14px; }
.une-feature p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.45; font-weight: 500; }

.une-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--pad); align-content: start; }

@media (max-width: 960px) {
  .une { grid-template-columns: 1fr; }
  .une-feature { position: relative; top: 0; height: 78vh; }
}

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 44px var(--pad); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .une-list { grid-template-columns: 1fr; }
}

.card { display: block; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #111; margin-bottom: 14px; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .3s; }
.card:hover .ph img { transform: scale(1.03); }
.card .label { margin-bottom: 8px; display: block; }
.card h3 { font-size: clamp(26px, 2.5vw, 36px); margin: 0 0 10px; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: #222; font-weight: 500; }
.card.tall .ph { aspect-ratio: 3 / 4; }
.card.wide .ph { aspect-ratio: 16 / 10; }
.badge {
  display: inline-block; white-space: nowrap; border: 1.5px solid currentColor; padding: 2px 7px 1px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px;
  vertical-align: 1px;
}

/* carte texte seul (parutions) */
.tcard { display: block; border-top: 2px solid var(--ink); padding-top: 14px; }
.tcard .label { display: block; margin-bottom: 10px; color: var(--grey); }
.tcard h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 10px; }
.tcard p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.tcard .links { display: flex; gap: 16px; flex-wrap: wrap; }
.tcard .links a { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid; }

/* ---------- Bandeau manifeste ---------- */
.statement { background: var(--ink); color: var(--paper); }
.statement .wrap { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.statement .label { color: #aaa; display: block; margin-bottom: 22px; }
.statement blockquote {
  margin: 0; font-size: clamp(40px, 6.4vw, 104px); max-width: 22ch !important;
  font-stretch: 62%; font-weight: 600; text-transform: uppercase; line-height: .95;
  max-width: 15ch;
}
.statement .cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); margin-top: 40px; }
.statement p { margin: 0 0 1em; font-size: 17px; line-height: 1.6; color: #ddd; max-width: 38em; }
.statement .more { color: #fff; }
@media (max-width: 760px) { .statement .cols { grid-template-columns: 1fr; } }

/* ---------- En-tête de page ---------- */
.page-head { padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(26px, 4vw, 48px); }
.page-head .label { display: block; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(60px, 11vw, 176px); margin: 0; }
.page-head .sub { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.4; max-width: 46em; }

/* ---------- Pages création / article ---------- */
.cover { margin: 0 0 clamp(36px, 5vw, 64px); }
.cover img { width: 100%; max-height: 86vh; object-fit: cover; }
.cover figcaption { padding: 8px var(--pad) 0; font-size: 12px; color: var(--grey); }

.lead {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  font-weight: 500;
}
.body > * { margin-top: 0; margin-bottom: 0; }
.body > * + * { margin-top: 1.1em; }
.lead p { margin: 0 0 .8em; }
.body h2 {
  margin: 2.4em 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.body h2 + * { margin-top: 1em; }
.body .quote {
  margin: 1.8em 0;
  padding: 0;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.38;
  font-style: italic;
  font-weight: 400;
}
.body .quote p { margin: 0 0 .7em; }
.body .quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.body ul.fiche { list-style: none; padding: 0; font-size: 15px; line-height: 1.45; }
.body ul.fiche li { padding: 7px 0; border-top: 1px solid var(--soft); break-inside: avoid; }
.body ul.fiche li:last-child { border-bottom: 1px solid var(--soft); }
.body ul.fiche .k { font-weight: 700; }
.body ul.fiche.cols { column-count: 2; column-gap: 32px; }
@media (max-width: 700px) { .body ul.fiche.cols { column-count: 1; } }
.body figure { margin: 2em 0; }
.body figure figcaption { font-size: 12px; color: var(--grey); margin-top: 6px; }
.body .wide-block { margin-left: calc(50% - 50vw + var(--pad)); margin-right: calc(50% - 50vw + var(--pad)); max-width: calc(var(--maxw) - 2 * var(--pad)); }
@media (min-width: 1441px) { .body .wide-block { margin-left: calc((var(--read) - var(--maxw)) / 2 + var(--pad)); margin-right: calc((var(--read) - var(--maxw)) / 2 + var(--pad)); } }

/* galerie : colonnes façon mosaïque */
.gallery { column-count: 3; column-gap: 8px; margin-top: 2em; }
.gallery a { display: block; margin-bottom: 8px; break-inside: avoid; cursor: zoom-in; background: #f2f2f2; }
.gallery img { width: 100%; }
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 520px) { .gallery { column-count: 1; } }
.credit { font-size: 12px; color: var(--grey); margin-top: 8px; }

/* vidéos (chargement au clic) */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px var(--pad); margin-top: 1.5em; }
.videos.v3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .videos.v3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .videos, .videos.v3 { grid-template-columns: 1fr; } }
.video .frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer;
  border: 0; padding: 0; width: 100%; display: block;
}
.video .frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video .frame:hover img { opacity: 1; }
.video .frame::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(0,0,0,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: transform .2s;
}
.video .frame:hover::after { transform: scale(1.08); }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.playing .frame::after { display: none; }
.video .cap { margin-top: 10px; }
.video .cap .label { color: var(--grey); display: block; margin-bottom: 4px; }
.video .cap h3 { margin: 0; font-size: 22px; }
.video[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button {
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: none; border: 1.5px solid var(--ink); padding: 7px 12px 6px; cursor: pointer;
}
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--paper); }

/* suite / précédent */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-top: clamp(48px, 7vw, 96px); }
.pager a { padding: 28px var(--pad); display: block; }
.pager a + a { border-left: 1px solid var(--rule); text-align: right; }
.pager .label { color: var(--grey); display: block; margin-bottom: 8px; }
.pager strong { font-stretch: 62%; font-weight: 600; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 46px); line-height: .95; display: block; }
.pager a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Compagnie : équipe ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 56px var(--pad); }
.team.small { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px var(--pad); }
@media (max-width: 1000px) { .team.small { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .team, .team.small { grid-template-columns: 1fr; } }
.person .ph { aspect-ratio: 4 / 5; overflow: hidden; background: #eee; margin-bottom: 16px; max-width: 460px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.team.small .person .ph { aspect-ratio: 1 / 1; }
.person h3 { margin: 0 0 4px; font-size: clamp(30px, 3vw, 44px); }
.team.small .person h3 { font-size: 26px; }
.person .role { display: block; margin-bottom: 12px; color: var(--grey); }
.person p { margin: 0 0 .8em; font-size: 15.5px; line-height: 1.55; }
.person details { margin-top: 6px; }
.person summary {
  cursor: pointer; list-style: none; display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1.5px solid;
}
.person summary::-webkit-details-marker { display: none; }
.person details[open] summary { margin-bottom: 12px; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--pad); }
.crew div { border-top: 1px solid var(--soft); padding: 12px 0; }
.crew strong { display: block; font-size: 16px; }
.crew span { font-size: 14px; color: var(--grey); }

/* ---------- Agenda ---------- */
.agenda-year { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: var(--pad); border-top: 2px solid var(--ink); padding: 18px 0 40px; }
.agenda-year h2 { margin: 0; font-size: clamp(48px, 6vw, 88px); position: sticky; top: calc(var(--head-h) + 16px); align-self: start; }
.agenda-list { list-style: none; margin: 0; padding: 0; }
.agenda-list li { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--soft); font-size: 16px; line-height: 1.45; }
.agenda-list li:first-child { padding-top: 6px; }
.agenda-list .d { font-weight: 800; font-size: 13px; letter-spacing: .04em; padding-top: 2px; font-variant-numeric: tabular-nums; }
.agenda-list a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .agenda-year { grid-template-columns: 1fr; padding-bottom: 24px; }
  .agenda-year h2 { position: static; }
  .agenda-list li { grid-template-columns: 76px minmax(0,1fr); font-size: 15px; }
}
.agenda-teaser .agenda-list li { grid-template-columns: 110px minmax(0,1fr); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--pad); border-top: 2px solid var(--ink); padding-top: 22px; }
.contact-grid .label { display: block; color: var(--grey); margin-bottom: 10px; }
.contact-grid a, .contact-grid address {
  font-style: normal; font-stretch: 62%; font-weight: 600; text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 52px); line-height: .98; display: block; word-break: break-word;
}
.contact-grid a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--ink); color: var(--paper); margin-top: clamp(56px, 8vw, 110px); }
.site-foot .wrap { padding-top: 56px; padding-bottom: 36px; }
.foot-name {
  display: block; font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 10.5vw, 160px); line-height: .82; letter-spacing: -.04em; margin-bottom: 40px;
}
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--pad); font-size: 14.5px; line-height: 1.6; }
.foot-cols .label { display: block; color: #9a9a9a; margin-bottom: 10px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-legal { margin-top: 44px; padding-top: 16px; border-top: 1px solid #333; font-size: 12px; color: #9a9a9a; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- Visionneuse ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,.98);
  display: none; align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); width: auto; height: auto; object-fit: contain; }
.lb button {
  position: absolute; background: none; border: 0; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 14px; color: #000;
}
.lb .x { top: 10px; right: 14px; }
.lb .prev { left: 6px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb .next { right: 6px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb .count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 600px) { .lb img { max-width: 100vw; } .lb .prev, .lb .next { font-size: 26px; } }

/* apparition douce */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   Compléments : IA, couvertures, recherche, ateliers
   ========================================================= */
.ph, .gallery a, .cover { position: relative; }
.ai-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: rgba(255,255,255,.92); color: #000;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 7px 3px; pointer-events: none;
}
.cover figcaption { padding: 8px var(--pad) 0; font-size: 12px; color: var(--grey); }

/* couvertures de publications */
.tcard .pcover { height: 220px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; padding: 16px; margin-bottom: 14px; }
.tcard .pcover img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.18); }

/* encadré */
.callout { border: 2px solid var(--ink); padding: 18px 20px; margin: 2em 0; }
.callout .label { display: block; margin-bottom: 8px; }
.callout p { margin: 0 0 10px; }
.body .callout { margin: 2em 0; }

/* grande carte (recherche en cours) */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--pad); align-items: end; }
.feature .ph { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature:hover .ph img { transform: scale(1.02); }
.feature .label { display: block; margin-bottom: 12px; }
.feature h3 { font-size: clamp(44px, 6vw, 92px); margin: 0 0 16px; }
.feature p { margin: 0 0 14px; font-size: 17px; line-height: 1.5; }
.feature .also { font-size: 14px; color: var(--grey); }
.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* quatre cercles / quatre portes */
.cercles, .portes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--ink); }
.cercle, .porte { padding: 20px 20px 24px 0; }
.cercle + .cercle, .porte + .porte { border-left: 1px solid var(--soft); padding-left: 20px; }
.cercle .num { display: block; font-size: 56px; line-height: 1; margin-bottom: 10px; }
.cercle h3, .porte h3 { font-size: 26px; margin: 0 0 10px; }
.cercle p, .porte p { margin: 0; font-size: 15px; line-height: 1.5; }
.porte .ch { display: block; font-size: 64px; line-height: 1; margin-bottom: 8px; font-family: "Songti SC", "Noto Serif CJK SC", serif; }
.porte .label { display: block; color: var(--grey); margin-bottom: 8px; }
.portes { margin-top: 48px; }
@media (max-width: 960px) {
  .cercles, .portes { grid-template-columns: 1fr 1fr; }
  .cercle:nth-child(3), .porte:nth-child(3) { border-left: 0; padding-left: 0; }
  .cercle:nth-child(n+3), .porte:nth-child(n+3) { border-top: 1px solid var(--soft); }
}
@media (max-width: 560px) {
  .cercles, .portes { grid-template-columns: 1fr; }
  .cercle + .cercle, .porte + .porte { border-left: 0; padding-left: 0; border-top: 1px solid var(--soft); }
}

/* partenaires */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px var(--pad); }
.partner { border-top: 2px solid var(--ink); padding-top: 12px; }
.partner strong { display: block; font-stretch: 62%; font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 1; margin-bottom: 6px; }
.partner .label { display: block; color: var(--grey); margin-bottom: 10px; }
.partner p { margin: 0; font-size: 15px; line-height: 1.5; }

/* listes datées dans le corps */
.body .agenda-list li { grid-template-columns: 150px minmax(0,1fr); font-size: 15.5px; }
.body .agenda-list.steps li { grid-template-columns: 1fr; gap: 2px; }
.body .agenda-list.reperes li { grid-template-columns: 96px minmax(0,1fr); }
.agenda-list.confs li { grid-template-columns: 80px minmax(0,1fr); }
@media (max-width: 600px) { .body .agenda-list li, .agenda-list.confs li { grid-template-columns: 1fr; gap: 2px; } }

/* ateliers */
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.anchors a { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 7px 12px 6px; }
.anchors a:hover { background: var(--ink); color: var(--paper); }
.atelier-head { margin-bottom: 28px; max-width: 980px; }
.atelier-head .label { display: block; margin-bottom: 14px; }
.atelier-head .sub { font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.45; margin: 16px 0 0; }
.atelier .section-title { font-size: clamp(42px, 6.5vw, 96px); }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px calc(var(--pad) * 1.5); margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.gallery.g3 { column-count: 3; margin-top: 0; }
.gallery.g2 { column-count: 2; }
@media (max-width: 700px) { .gallery.g3 { column-count: 2; } }
.ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px var(--pad); margin-top: 48px; }
.ws-col h3 { margin: 0 0 10px; padding-top: 10px; border-top: 2px solid var(--ink); }
.ws-col .fiche { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.45; }
.ws-col .fiche li { padding: 9px 0; border-bottom: 1px solid var(--soft); }
@media (max-width: 960px) { .ws-grid { grid-template-columns: 1fr; } }
.cta { background: var(--ink); color: var(--paper); padding: clamp(32px, 5vw, 64px); }
.cta .label { color: #aaa; display: block; margin-bottom: 14px; }
.cta h2 { font-size: clamp(44px, 6vw, 88px); margin: 0 0 16px; }
.cta p { max-width: 40em; margin: 0 0 24px; color: #ddd; }
.btn { display: inline-block; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 13px 18px 12px; margin: 0 8px 8px 0; }
.btn.ghost { background: transparent; color: var(--paper); border: 1.5px solid var(--paper); }
.btn:hover { opacity: .85; }

/* mobile : finitions */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-head h1 { font-size: clamp(48px, 15vw, 80px); }
  .section-head { flex-wrap: wrap; }
  .une-feature { height: 72vh; min-height: 420px; }
  .contact-grid a, .contact-grid address { font-size: 30px; }
  .pager strong { font-size: 24px; }
  .pager a { padding: 20px var(--pad); }
  .lb img { max-height: calc(100vh - 120px); }
}
.tcard .pcover.empty { background: var(--ink); color: var(--paper); justify-content: flex-start; align-items: flex-end; padding: 18px; }
.tcard .pcover.empty span { font-size: 30px; line-height: .95; }

.gallery.duo { column-count: 2; margin-top: 0; }
@media (max-width: 600px) { .gallery.duo { column-count: 1; } }
