/* FEU!!! — archive. Noir sur papier, les affiches de Guillaume André au premier plan. */

@font-face {
  font-family: "Archivo";
  src: url("/polices/archivo-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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";
  src: url("/polices/archivo-normal-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/polices/archivo-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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";
  src: url("/polices/archivo-italic-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --encre: #121110;
  --papier: #fbfaf7;
  --papier-2: #f0eee8;
  --gris: #6a665f;
  --filet: #dedad1;
  --marge: clamp(1rem, 4vw, 3rem);
  --large: 82rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.05; margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
sup { line-height: 0; }

.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--encre); color: var(--papier); padding: .5rem 1rem; z-index: 10; }

/* En-tête ------------------------------------------------------------------ */
.entete {
  max-width: var(--large);
  margin: 0 auto;
  padding: 1.25rem var(--marge) 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.marque img { width: 46px; height: auto; transition: transform .3s ease; }
.marque:hover img { transform: rotate(-8deg); }
.marque-texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque-texte strong { font-size: 1.35rem; font-stretch: 125%; font-weight: 900; letter-spacing: .01em; }
.marque-texte span { color: var(--gris); font-size: .875rem; }
.nav { display: flex; gap: .3rem 1.4rem; flex-wrap: wrap; font-weight: 600; font-stretch: 108%; }
.nav a { text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--encre); }

main { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) 4rem; }

.surtitre { margin: 0 0 .6rem; color: var(--gris); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* Accueil ------------------------------------------------------------------ */
.intro { padding: clamp(2rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem); border-bottom: 2px solid var(--encre); }
.intro-texte {
  margin: 0;
  max-width: 30em;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  line-height: 1.22;
  font-weight: 450;
  font-stretch: 104%;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.intro-texte strong { font-weight: 900; font-stretch: 125%; }

.bandeau-fermeture {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: .9rem;
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  max-width: 34rem;
}
.bandeau-fermeture img { width: 84px; height: 84px; object-fit: contain; }
.bandeau-fermeture .surtitre { color: #b9b4aa; margin-bottom: .2rem; }
.bandeau-fermeture > span { display: flex; flex-direction: column; }
.bandeau-fermeture strong { font-size: 1.2rem; font-stretch: 112%; }
.bandeau-fermeture .lire { font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; margin-top: .15rem; }
.bandeau-fermeture:hover .lire { text-decoration-thickness: 2px; }

.annee { padding: 3rem 0 1rem; }
.annee-titre { font-size: clamp(2.2rem, 5vw, 3.6rem); font-stretch: 125%; font-weight: 900; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.annee-titre::after { content: ""; flex: 1; height: 2px; background: var(--encre); }
.grille-expos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem 1.75rem; }
.carte { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.carte-affiche {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--papier-2);
  margin-bottom: .85rem;
}
/* L'image est posée dans le cadre (marge de 7 %) et s'y ajuste sans jamais être rognée ;
   l'ombre suit le contour réel de l'affiche. */
.carte-affiche img {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.1)) drop-shadow(0 6px 10px rgba(0,0,0,.08));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.carte:hover .carte-affiche img { transform: scale(1.035) rotate(-.6deg); }
.carte-titre { font-weight: 800; font-stretch: 110%; font-size: 1.15rem; line-height: 1.15; }
.carte:hover .carte-titre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.carte-artistes { font-size: .975rem; margin-top: .15rem; }
.carte-dates { color: var(--gris); font-size: .9rem; margin-top: .25rem; }

/* Exposition --------------------------------------------------------------- */
.expo-tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4.5rem); padding-top: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.expo-affiche { position: sticky; top: 1.25rem; }
.expo-affiche figure { margin: 0; background: var(--papier-2); padding: clamp(1rem, 4%, 2.25rem); }
.expo-affiche img { margin: 0 auto; max-height: calc(100vh - 6rem); width: auto; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 10px 30px rgba(0,0,0,.1); }
.expo h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-stretch: 118%; font-weight: 900; text-wrap: balance; hyphens: auto; }
.artistes { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; margin: .5rem 0 0; }
.infos { margin: 1.75rem 0 2rem; border-top: 2px solid var(--encre); font-size: .975rem; }
.infos > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--filet); }
.infos dt { font-weight: 700; }
.infos dd { margin: 0; }
.prose { max-width: 38em; }
.prose p { margin: 0 0 1em; text-wrap: pretty; hyphens: auto; }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 .4rem; }
.prose h3 + p { margin-top: 0; font-size: .95rem; }
.signature { font-weight: 700; margin-top: 1.4em !important; }
.signature::before { content: "— "; }
.ressources { margin-top: 2.5rem; }
.ressources h2, .galerie h2, .videos h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 100%; font-weight: 700; margin-bottom: 1rem; }
.ressources ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--encre); }
.ressources li { padding: .65rem 0; border-bottom: 1px solid var(--filet); }
.ressources a { font-weight: 600; }
.doc::before { content: "↓ "; }
.poids { color: var(--gris); font-size: .875rem; margin-left: .35rem; }

.galerie, .videos { margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 1.25rem; border-top: 2px solid var(--encre); }
.grille-images { columns: 4 14rem; column-gap: 1rem; }
.grille-images figure { break-inside: avoid; margin: 0 0 1rem; }
.grille-images img { width: 100%; background: var(--papier-2); transition: opacity .2s; }
.grille-images a:hover img { opacity: .86; }
.grille-images figcaption { font-size: .85rem; line-height: 1.3; margin-top: .4rem; color: var(--gris); }
.credit { color: var(--gris); font-size: .875rem; margin: .25rem 0 0; }

.grille-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2rem 1.5rem; }
.grille-videos.large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.simple .grille-videos.large { margin-top: 2.5rem; }
.video { margin: 0; }
.video-cadre { position: relative; aspect-ratio: 16 / 9; background: var(--encre); }
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: .6rem; font-weight: 700; line-height: 1.3; }
.video .note { font-weight: 400; font-size: .925rem; color: #3c3a36; margin-top: .4rem; }
.video .note p { margin: 0 0 .5em; }

.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); border-top: 2px solid var(--encre); padding-top: 1rem; }
.suite a { text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.1; }
.suite a span { display: block; font-size: .8125rem; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-stretch: 100%; margin-bottom: .3rem; }
.suite .prec span::before { content: "← "; }
.suite .suiv { text-align: right; }
.suite .suiv span::after { content: " →"; }
.suite a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Pages simples ------------------------------------------------------------ */
.simple { padding-top: clamp(1.5rem, 5vw, 4rem); }
.simple > h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-stretch: 120%; font-weight: 900; margin-bottom: 1.5rem; max-width: 14em; }
.simple .prose { font-size: 1.0625rem; }
.simple .prose > p:first-child { font-size: 1.25rem; line-height: 1.45; }
.image-tete { margin: 0 0 2.5rem; max-width: 24rem; }
.retour { margin-top: 2.5rem; font-weight: 600; }
.contact { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--encre); max-width: 38em; }
.contact h2 { font-size: 1.6rem; margin-bottom: 1rem; }

/* Pied --------------------------------------------------------------------- */
.pied { max-width: var(--large); margin: 0 auto; padding: 2rem var(--marge) 3rem; border-top: 1px solid var(--filet); color: var(--gris); font-size: .875rem; }
.pied p { margin: 0 0 .5rem; max-width: 52em; }
.pied strong { color: var(--encre); }

/* Visionneuse -------------------------------------------------------------- */
.visionneuse { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(18, 17, 16, .96); color: var(--papier); }
.visionneuse::backdrop { background: transparent; }
.visionneuse[open] { display: grid; grid-template-rows: 1fr auto; }
.visionneuse .scene { display: grid; place-items: center; padding: 3.5rem 4.5rem 1rem; min-height: 0; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; }
.visionneuse .legende { text-align: center; padding: .5rem 1rem 1.25rem; font-size: .925rem; min-height: 1.5em; }
.visionneuse .compteur { color: #b9b4aa; margin-left: .6rem; }
.visionneuse button { position: absolute; background: none; border: 0; color: var(--papier); font: inherit; font-size: 2rem; line-height: 1; width: 3.5rem; height: 3.5rem; cursor: pointer; }
.visionneuse button:hover { color: #fff; transform: scale(1.1); }
.visionneuse .fermer { top: .5rem; right: .5rem; }
.visionneuse .avant { left: .5rem; top: 50%; translate: 0 -50%; }
.visionneuse .apres { right: .5rem; top: 50%; translate: 0 -50%; }
body:has(.visionneuse[open]) { overflow: hidden; }

/* Petits écrans ------------------------------------------------------------ */
@media (max-width: 760px) {
  .annee { padding-top: 2rem; }
  .grille-expos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .carte-titre { font-size: 1rem; }
  .expo-tete { grid-template-columns: 1fr; }
  .expo-affiche { position: static; max-width: 30rem; }
  .expo-affiche img { max-height: 70vh; }
  .infos > div { grid-template-columns: 1fr; gap: .1rem; }
  .grille-images { columns: 2; column-gap: .6rem; }
  .grille-images figure { margin-bottom: .6rem; }
  .visionneuse .scene { padding: 3.5rem .5rem .5rem; }
  .visionneuse .avant, .visionneuse .apres { top: auto; bottom: .25rem; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .entete .nav, .suite, .videos, .bandeau-fermeture { display: none; }
  .expo-affiche { position: static; }
}
