/* Site de Benoit Marini, feuille de style. Piste « Cabinet ». */

@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-style: normal; 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: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-latin-wght-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #121213;
  --bg-2: #171718;
  --fg: #e8e5df;
  --fg-2: #bdb8b0;
  --mute: #9a958d;
  --line: #2a2a2d;
  --gut: clamp(20px, 4vw, 64px);
  --col: 5fr 7fr;
  --mesure: 42ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); font-family: "Instrument Sans", Helvetica, Arial, sans-serif; font-size: clamp(16px, 1.05vw, 18px); line-height: 1.5; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: .18em; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: italic; }
figure { margin: 0; }
figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 0 0; font-size: .8rem; color: var(--mute); }
figcaption a { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 12px; }

/* Étiquettes, boutons */
.etiquette { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 12px; }
h2.etiquette { margin: 0; }
.bouton { display: inline-block; background: var(--fg); color: var(--bg); border: 0; padding: 12px 20px; font: inherit; font-weight: 500; cursor: pointer; }
.bouton:hover, .bouton:focus-visible { text-decoration: none; background: #fff; }
.bouton-large { width: 100%; padding: 16px; font-size: 1.05rem; }
.suite { display: inline-block; border-bottom: 1px solid var(--mute); padding-bottom: 1px; }
.suite:hover, .suite:focus-visible { text-decoration: none; border-color: var(--fg); }

/* En-tête */
.entete { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 22px var(--gut); border-bottom: 1px solid var(--line); font-size: .9rem; }
.marque { font-weight: 500; letter-spacing: .01em; }
.marque-sous { font-weight: 400; color: var(--fg-2); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.menu a { color: var(--mute); }
.menu a[aria-current="page"], .menu a:hover, .menu a:focus-visible { color: var(--fg); text-decoration: none; }
.menu-langue a { border: 1px solid var(--line); padding: 2px 8px; }
.menu-bouton { display: none; background: none; border: 0; color: var(--mute); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
.entete-nue { grid-template-columns: 1fr auto; }
.langue-nue { color: var(--mute); border: 1px solid var(--line); padding: 2px 8px; }

/* Blocs */
.principal > section, .principal > article > section { padding: 40px var(--gut); }
.principal > section + section, .expo + .expos-passees { border-top: 1px solid var(--line); }
.tete { padding-top: 56px !important; }
.tete h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; }
.page-exposition .tete h1 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); max-width: 30ch; }
.sous-titre { margin-top: 14px; color: var(--fg-2); max-width: var(--mesure); font-size: 1.05rem; }
.cadre { color: var(--mute); font-size: .9rem; margin-top: 8px; max-width: 60ch; }

.ouverture { display: grid; grid-template-columns: var(--col); gap: var(--gut); align-items: end; padding-top: 60px !important; padding-bottom: 24px !important; border-bottom: 0 !important; }
.accroche { font-size: clamp(2.2rem, 4.6vw, 4.2rem); max-width: 12ch; }
.fiche { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; font-size: .95rem; border-top: 1px solid var(--line); padding-top: 14px; }
.fiche dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding-top: 3px; }
.fiche dd { margin: 0; }
.fiche a { border-bottom: 1px solid var(--mute); }

.visuel-ouverture { padding-top: 20px !important; border-top: 0 !important; }
.visuel-ouverture figure > picture, .visuel-ouverture .video-cadre { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.visuel-ouverture img { width: 100%; height: 100%; object-fit: cover; }

.intro { display: grid; grid-template-columns: var(--col); gap: var(--gut); }
.intro-texte { grid-column: 2; font-size: 1.15rem; max-width: 52ch; color: var(--fg); }
.intro-texte p:last-child { margin-bottom: 0; }

.entrees { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); padding-top: 64px !important; padding-bottom: 56px !important; }
.entree h2 { font-size: 1.6rem; margin: 18px 0 10px; }
.entree p { color: var(--fg-2); font-size: .98rem; max-width: 36ch; }
.entree-image { display: block; }
.entree figure { aspect-ratio: 4/5; overflow: hidden; background: #000; }
.entree figure img { width: 100%; height: 100%; object-fit: cover; }
.entree .suite { color: var(--fg); }

.nouvelles { display: grid; grid-template-columns: var(--col); gap: var(--gut); align-items: start; padding-top: 48px !important; padding-bottom: 56px !important; }
.nouvelles > div p { max-width: 44ch; color: var(--fg-2); }
.nouvelles .bouton { margin-top: 4px; }

.deux-colonnes { display: grid; grid-template-columns: var(--col); gap: var(--gut); align-items: start; }
.deux-colonnes .texte { max-width: 60ch; font-size: 1.08rem; }
.deux-colonnes .texte p:last-child { margin-bottom: 0; }
.deux-colonnes .fiche { align-self: start; }
.demarche { grid-template-columns: 1fr; }
.bio { grid-template-columns: 7fr 5fr; }
.bio .texte { font-size: 1rem; color: var(--fg-2); }
.bio .etiquette { margin-bottom: 20px; }
.bio .portrait { grid-column: 2; max-width: 440px; justify-self: end; width: 100%; }
.credit-seul { justify-content: flex-end; }
.recherche-corps { grid-template-columns: 7fr 5fr; }
.recherche-corps .texte { grid-column: 1; }
.recherche-corps .recherche-image { grid-column: 2; max-width: 560px; justify-self: end; }
@media (max-width: 760px) { .recherche-corps { grid-template-columns: 1fr; } .recherche-corps .recherche-image { grid-column: 1; max-width: none; } }

.galerie { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gut); }
.galerie-item { grid-column: span 3; }
.galerie-item.format-portrait, .galerie-item.format-tiers { grid-column: span 2; }
.galerie-item.format-carre { grid-column: span 3; }
.galerie > .etiquette { grid-column: 1 / -1; }
.galerie-item { overflow: hidden; }
.galerie-item > picture { display: block; overflow: hidden; background: #000; }
.galerie-item img { width: 100%; height: auto; }
.galerie-large { grid-column: 1 / -1; }
.galerie-large > picture, .galerie-large.video-cadre { aspect-ratio: 16/9; }
.galerie-large img { height: 100%; object-fit: cover; }

/* Accueil resserré */
.annonce { padding: 28px var(--gut) 8px !important; border-bottom: 0 !important; }
.annonce p { margin: 0; color: var(--fg-2); font-size: .95rem; max-width: none; }
.annonce a { border-bottom: 1px solid var(--mute); color: var(--fg); }
.etiquette-inline { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-right: 8px; }
.oeuvres { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gut); padding-top: 56px !important; padding-bottom: 64px !important; border-top: 0 !important; }
.oeuvre a { display: block; }
.oeuvre a:hover, .oeuvre a:focus-visible { text-decoration: none; }
.oeuvre figure { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #000; }
.oeuvre figure picture { height: 100%; }
.oeuvre figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.oeuvre-titre { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 72px 20px 18px; font-size: 1.25rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
.oeuvre-etiquette { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); font-weight: 500; white-space: nowrap; }
.oeuvre a:hover .oeuvre-titre span:first-child { text-decoration: underline; text-underline-offset: .2em; }

/* À propos */
.sommaire { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: .9rem; color: var(--mute); }
.sommaire a { border-bottom: 1px solid var(--line); }
.sommaire a:hover { color: var(--fg); text-decoration: none; border-color: var(--fg); }
.titre-section { font-size: 1.6rem; margin: 10px 0 18px; }
.presse-tete .texte { color: var(--fg-2); }
.reperes { margin-top: 28px; }
.nouvelles-ligne { margin-top: 24px; color: var(--fg-2); }
.principal > section[id] { scroll-margin-top: 12px; }

/* Page D'où ça vient */
.origines { grid-template-columns: 5fr 7fr; }
.origines .titre-section { margin-top: 10px; }
.origines-photo { max-width: 460px; }
.recit { font-size: 1.12rem; }
.recit p + p { margin-top: 1.1em; }
@media (max-width: 760px) { .origines { grid-template-columns: 1fr; } .origines-photo { max-width: none; } }

/* Journal */
.journal { display: grid; grid-template-columns: var(--col); gap: var(--gut); }
.journal h2 { font-size: 1.6rem; margin-bottom: 8px; }
.journal-tete p { color: var(--mute); max-width: 34ch; }
.journal-liste { list-style: none; margin: 0; padding: 0; }
.journal-entree { border-top: 1px solid var(--line); padding: 24px 0 32px; max-width: 60ch; }
.journal-entree h3 { font-size: 1.3rem; margin-bottom: 14px; }
.journal-entree figure { margin: 0 0 16px; }
.journal-vide { color: var(--mute); }

/* Vidéo */
.video-cadre { position: relative; background: #000; }
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cadre .affiche { transition: opacity .6s ease; }
.video-cadre.est-charge .affiche { opacity: 0; }
.video-bouton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(18,18,19,.7); color: var(--fg); border: 1px solid var(--fg); padding: 12px 20px; font: inherit; cursor: pointer; backdrop-filter: blur(4px); }
.video-bouton:hover, .video-bouton:focus-visible { background: var(--fg); color: var(--bg); }
.video-cadre.est-charge .video-bouton { display: none; }
.video-lien { position: absolute; right: 12px; bottom: 12px; font-size: .8rem; color: var(--mute); background: rgba(18,18,19,.6); padding: 4px 8px; }

/* Presse */
.presse-texte .texte { font-size: 1rem; color: var(--fg-2); max-width: 64ch; }
.presse-texte .texte h3 { font-size: 1.05rem; font-weight: 500; color: var(--fg); margin: 1.4em 0 .6em; }
.presse-texte .bouton { margin-top: 8px; }
.presse-images .tete-section { max-width: 60ch; margin-bottom: 24px; }
.presse-images .tete-section p { color: var(--fg-2); }
.grille-presse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); }
.grille-presse picture { aspect-ratio: 4/3; overflow: hidden; background: #000; }
.grille-presse img { width: 100%; height: 100%; object-fit: cover; }
.grille-presse figcaption { flex-direction: column; gap: 4px; }

/* Formulaires */
.formulaire { max-width: 520px; }
.formulaire label { display: block; font-size: .85rem; color: var(--mute); margin-bottom: 6px; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire textarea { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--fg); padding: 12px 14px; font: inherit; }
.formulaire input:focus-visible, .formulaire textarea:focus-visible { border-color: var(--fg); outline: none; }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 1em; }
.formulaire legend { font-size: .85rem; color: var(--mute); margin-bottom: 8px; padding: 0; }
.choix { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 1rem; }
.choix:last-of-type { border-bottom: 0; }
.formulaire input[type="radio"], .formulaire input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--fg); margin: 0; flex: none; }
.consentement label { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); font-size: .9rem; }

/* Page d'inscription (autonome, pour le QR code) */
.principal-nu { display: grid; place-items: start center; }
.inscription { width: 100%; max-width: 560px; padding: 40px var(--gut) 60px; }
.inscription h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 14px; }
.finalite { color: var(--fg-2); margin-bottom: 28px; }
.attente { color: var(--fg-2); }
.attente a { text-decoration: underline; }
.petits-liens { margin-top: 28px; font-size: .85rem; color: var(--mute); }
.petits-liens a { text-decoration: underline; }

/* Expositions */
.expo h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.expo .sous-titre { margin-top: 0; margin-bottom: 20px; }
.expo .deux-colonnes { grid-template-columns: 7fr 5fr; }
.expo .deux-colonnes > figure { max-width: 340px; width: 100%; justify-self: end; }
@media (max-width: 760px) { .expo .deux-colonnes { grid-template-columns: 1fr; } .expo .deux-colonnes > figure { max-width: none; } }
.expo .liens { margin-top: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.liste-expos { list-style: none; margin: 0; padding: 0; }
.liste-expos li { border-top: 1px solid var(--line); padding: 14px 0; }
.liste-expos .annee { color: var(--mute); margin-right: 14px; }

/* Placeholder image à fournir */
.placeholder { width: 100%; aspect-ratio: 4/3; border: 1px dashed #3a3a40; background: var(--bg-2); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mute); font-size: .85rem; padding: 20px; }
.placeholder p { margin: 0; }

/* Pied */
.pied { border-top: 1px solid var(--line); padding: 26px var(--gut) 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: .82rem; color: var(--mute); }
.pied p { margin: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }

/* Mouvement discret au défilement : l'image glisse dans son cadre */
[data-parallaxe] > picture { overflow: hidden; }
[data-parallaxe] > picture > img { will-change: transform; transform: translate3d(0, var(--decal, 0px), 0) scale(1.12); transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) {
  [data-parallaxe] > picture > img { transform: none !important; transition: none; }
  .video-cadre .affiche { transition: none; }
}

/* Petits écrans */
@media (max-width: 760px) {
  .entete { grid-template-columns: 1fr auto; align-items: center; padding: 16px var(--gut); }
  .marque-sep, .marque-sous { display: none; }
  .menu-bouton { display: inline-block; }
  .menu { display: none; grid-column: 1 / -1; padding-top: 12px; }
  .menu.est-ouvert { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li { border-top: 1px solid var(--line); }
  .menu a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .menu-langue a { display: inline-block; margin-top: 8px; }
  .ouverture, .intro, .nouvelles, .deux-colonnes, .journal { grid-template-columns: 1fr; }
  .ouverture { padding-top: 32px !important; gap: 24px; }
  .intro-texte { grid-column: 1; }
  .entrees { grid-template-columns: 1fr; gap: 44px; padding-top: 48px !important; }
  .oeuvres { grid-template-columns: 1fr; gap: 36px; padding-top: 40px !important; }
  .annonce p { font-size: .9rem; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .galerie-item, .galerie-item.format-carre { grid-column: 1 / -1; }
  .galerie-item.format-portrait, .galerie-item.format-tiers { grid-column: span 1; }
  .grille-presse { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio .portrait { grid-column: 1; max-width: none; }
  .pied { flex-direction: column; }
  .tete { padding-top: 36px !important; }
  figcaption { font-size: .78rem; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .entrees { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grille-presse { grid-template-columns: repeat(2, 1fr); }
}
