/* ============================================================
   LEA BOURGEOIS — portfolio leabourgeois.art (.ART Award 2026)
   Même direction que le site principal : Catchy Mager (titres)
   + Montserrat (corps), blanc galerie en toute saison, rose dosé.
   Bilingue : anglais par défaut (règle du concours), français à
   la demande — chaque texte existe en [lang="en"] et [lang="fr"].
   ============================================================ */

@font-face {
  font-family: "Catchy Mager";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('polices/catchy-mager-400.woff') format('woff');
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('polices/montserrat-100-900.woff2') format('woff2');
}

:root {
  --paper: #FDFDFC;         /* blanc galerie, à peine chaud */
  --ink: #141414;           /* encre / mine de plomb */
  --mine: #6E6E6E;          /* gris mine — AA sur papier */
  --cartel-gris: #757571;   /* méta des cartels — AA sur blanc */
  --trait: #E5E4E1;         /* filets structurels neutres */
  --voile: #F6F3F4;         /* fonds de zones, biais rose imperceptible */
  --mauve: #98637A;         /* accent — survol */
  --rose-filet: #E3BED1;    /* filets décoratifs roses */
}

/* ---------- langue ---------- */

html:not([lang="fr"]) body [lang="fr"],
html[lang="fr"] body [lang="en"] { display: none !important; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

html:has(.visionneuse[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-weight: 380;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button { font: inherit; color: inherit; }

a, button { -webkit-tap-highlight-color: rgba(20, 20, 20, 0.08); touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }

::selection { background: var(--mauve); color: #fff; }

[id] { scroll-margin-top: 1.5rem; }

.acces-contenu {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  text-decoration: none;
}
.acces-contenu:focus-visible { left: 0.5rem; }

.conteneur {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* ---------- typographie ---------- */

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mine);
  margin: 0 0 1.4rem;
}

.titre-section {
  font-family: "Catchy Mager", Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 1.2em;
}

.prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- barre de langue ---------- */

.barre {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.1rem;
}

.langues { display: flex; gap: 0.2rem; }

.langues button {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.45rem 0.4rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mine);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.langues button:hover { color: var(--mauve); }
.langues button[aria-pressed="true"] { color: var(--ink); border-color: var(--rose-filet); }

/* ---------- en-tête ---------- */

.hero {
  text-align: center;
  padding-block: clamp(2.5rem, 9vh, 6rem) 0;
}

.marque {
  font-family: "Catchy Mager", Georgia, serif;
  font-size: clamp(2.5rem, 9.5vw, 6.6rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.05;
  white-space: nowrap;          /* le nom tient sur UNE seule ligne */
  margin: 0;
  animation: poser 950ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes poser {
  from { opacity: 0; filter: blur(6px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

.tagline {
  font-size: clamp(0.68rem, 2vw, 0.84rem);
  font-weight: 430;
  letter-spacing: clamp(0.24em, 1vw, 0.45em);
  text-transform: uppercase;
  color: var(--mine);
  margin: 2.2rem 0 0;
  animation: paraitre 700ms ease 450ms both;
}

@keyframes paraitre {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sommaire {
  margin: 1.8rem 0 0;
  animation: paraitre 700ms ease 600ms both;
}
.sommaire ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
}
.sommaire a {
  font-size: 0.7rem;
  font-weight: 480;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--rose-filet);
  transition: color 200ms ease, border-color 200ms ease;
}
.sommaire a:hover { color: var(--mauve); border-color: var(--mauve); }

/* ---------- triptyque ---------- */

.triptyque {
  list-style: none;
  margin: clamp(3rem, 8vh, 5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 3.5vw, 3.5rem);
  animation: paraitre 900ms ease 750ms both;
}

.triptyque a { display: block; text-decoration: none; }

.triptyque img { width: 100%; transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.triptyque a:hover img { transform: translateY(-4px); }

.triptyque-titre {
  display: block;
  margin-top: 1rem;
  font-family: "Catchy Mager", Georgia, serif;
  font-size: clamp(0.82rem, 1.7vw, 1.2rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  transition: color 200ms ease;
}
.triptyque a:hover .triptyque-titre { color: var(--mauve); }

.triptyque-annee {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 460;
  letter-spacing: 0.2em;
  color: var(--cartel-gris);
}

/* ---------- œuvres ---------- */

.oeuvres { padding-top: clamp(2.5rem, 8vh, 7rem); }

.oeuvre {
  padding-block: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--trait);
}

/* conteneur propre au dessin + texte : borne l'image collante à cette rangée */
.oeuvre-corps { display: grid; gap: 2.5rem; }

.agrandir {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.oeuvre-visuel img {
  width: 100%;
  max-height: calc(100vh - 4rem);
  object-fit: contain;
}

.numero {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--mine);
  margin: 0 0 1.1rem;
}

.oeuvre-titre {
  font-family: "Catchy Mager", Georgia, serif;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.08;
  margin: 0;
}

.oeuvre-traduction {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--mine);
}

.oeuvre-technique {
  margin: 1.5rem 0 0;
  font-size: 0.74rem;
  font-weight: 460;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cartel-gris);
  line-height: 1.8;
}

.details { margin: 1.1rem 0 0; border-top: 1px solid var(--trait); }

.details div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--trait);
}

.details dt {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cartel-gris);
}

.details dd { margin: 0; font-size: 0.9rem; font-weight: 460; text-align: right; }

.details .equivalent { color: var(--cartel-gris); font-weight: 400; }

.intertitre { margin-top: clamp(2.4rem, 5vh, 3.2rem); }

.oeuvre .prose { font-size: 0.97rem; line-height: 1.85; }

.processus { margin: clamp(2.6rem, 6vh, 3.6rem) 0 0; }

.processus figcaption {
  margin-top: 0.9rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cartel-gris);
}

/* déclinaison : dernière rangée de chaque œuvre, visuel du même côté que le dessin */

.declinaison { display: grid; gap: 1.8rem; margin-top: 3.5rem; }

.declinaison-visuel { position: relative; }
.declinaison-visuel img,
.declinaison-visuel video { display: block; width: 100%; height: auto; }

.declinaison-texte .eyebrow { margin-bottom: 1.1rem; }
.declinaison-texte p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.12rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.commande.lecture { right: 0.9rem; bottom: 0.9rem; background: rgba(253, 253, 252, 0.88); }
.lecture[data-etat="lecture"] .icone-lecture,
.lecture[data-etat="pause"] .icone-pause { display: none; }

@media (min-width: 900px) {
  .oeuvre-corps {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3.5rem, 6vw, 6.5rem);
    align-items: start;
  }
  .oeuvre:nth-of-type(even) .oeuvre-visuel { order: 2; }
  .oeuvre-visuel { position: sticky; top: 2rem; }
  .processus { max-width: 82%; }

  .declinaison {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3.5rem, 6vw, 6.5rem);
    margin-top: clamp(4.5rem, 9vh, 7rem);
    align-items: center;
  }
  .declinaison-visuel { justify-self: center; width: min(100%, 30rem); }
  .oeuvre:nth-of-type(even) .declinaison-visuel { order: 2; }
}

/* ---------- textes longs ---------- */

.section { padding-block: clamp(5rem, 12vh, 8rem); }
.section-voile { background: var(--voile); }

.texte-long { max-width: 38rem; margin-inline: auto; }
.texte-long .titre-section { text-align: center; }
.texte-long .titre-section::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--rose-filet);
  margin: 1.4rem auto 0;
}
.texte-long .prose { font-size: 1rem; line-height: 1.95; }

.lede { font-size: 1.12rem; line-height: 1.85; }

/* ---------- pied ---------- */

.pied {
  text-align: center;
  padding-block: clamp(3.5rem, 8vh, 5rem);
  border-top: 1px solid var(--trait);
  font-size: 0.78rem;
  color: var(--mine);
}

.pied-marque {
  font-family: "Catchy Mager", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.pied p { margin: 0.3rem 0 0; }

.pied a { text-decoration: none; border-bottom: 1px solid var(--rose-filet); transition: color 200ms ease, border-color 200ms ease; }
.pied a:hover { color: var(--mauve); border-color: var(--mauve); }

/* ---------- visionneuse plein écran ---------- */

.visionneuse {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(253, 253, 252, 0.98);
  color: var(--ink);
}
.visionneuse::backdrop { background: rgba(253, 253, 252, 0.98); }
.visionneuse[open] { display: grid; place-items: center; }

.visionneuse figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.cadre {
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
}
.cadre img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 7rem);
  transition: transform 320ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.cadre.zoom { cursor: zoom-out; }
.cadre.zoom img { transform: scale(2.4); }

.visionneuse figcaption {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cartel-gris);
  text-align: center;
}

.commande {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--trait);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.commande:hover { color: var(--mauve); border-color: var(--mauve); }
.commande svg { width: 1rem; height: 1rem; }

.fermer { top: 1rem; right: 1rem; }
.precedent, .suivant { top: 50%; translate: 0 -50%; }
.precedent { left: 1rem; }
.suivant { right: 1rem; }

/* ---------- apparitions ---------- */

.js .apparition {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.js .apparition.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .js .apparition { opacity: 1; transform: none; }
}
