/* laurent-lo.com : fond clair proche des photos, encre presque noire, un ocre bambou pour les liens actifs.
   Le point noir de la marque reprend la sphere des mobiles (et la puce du menu de l ancien site). */

:root {
  --fond: #f4f3f0;
  --encre: #1d1c1a;
  --gris: #6e6b65;
  --trait: #dcd8d0;
  --bambou: #9c7238;
  --marge: clamp(1.25rem, 4vw, 3.5rem);
  --texte: 34rem;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: clamp(16px, 0.35vw + 14.5px, 18px);
  line-height: 1.55;
  color: var(--encre);
  background: var(--fond);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--trait); text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--bambou); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--bambou); outline-offset: 3px; }
h1, h2 { font-weight: 400; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); }
p { margin: 0 0 1em; max-width: var(--texte); }

/* ---------- en-tete et pied */
header.site, footer.site {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2rem;
  padding: 1.5rem var(--marge);
}
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(6px); }
header.site nav { display: flex; gap: 1.5rem; }
header.site nav a { text-decoration: none; color: var(--gris); }
header.site nav a[aria-current] { color: var(--encre); }
header.site nav a:hover { color: var(--bambou); }
.marque { margin: 0 auto 0 0; text-decoration: none; font-size: 1.1rem; letter-spacing: .02em; white-space: nowrap; }
.marque em { font-style: normal; font-weight: 700; }
.point { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--encre); margin-right: .55em; }
.langues { font-size: .85rem; gap: .75rem !important; }
.langues a[aria-current] { color: var(--encre); text-decoration: underline; }

footer.site { margin-top: 6rem; border-top: 1px solid var(--trait); padding-block: 2.5rem; justify-content: space-between; color: var(--gris); font-size: .9rem; }
footer.site .marque { color: var(--encre); margin-bottom: .5rem; }
footer.site p { margin: 0 0 .35rem; }

/* ---------- blocs */
.bloc { padding: 0 var(--marge); margin-top: clamp(4rem, 9vw, 7rem); }
.legende, .compte, .annee, .lieu, .fil { color: var(--gris); font-size: .85rem; }
.suite { text-decoration: none; border-bottom: 1px solid currentColor; }
.suite::after { content: " \2192"; }

/* ---------- accueil */
.ouverture { padding: 1rem var(--marge) 0; }
.ouverture img { width: auto; max-height: 78vh; margin-inline: auto; }
.ouverture .legende { margin-top: .6rem; }
.manifeste { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.3; max-width: 30ch; margin-top: clamp(3rem, 7vw, 5rem); }

.series { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.series a, .projets a, .grille a, .bande a { display: block; text-decoration: none; }
.cadre { display: block; aspect-ratio: 4 / 5; background: #e9e8e6; overflow: hidden; }
.cadre img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.series a:hover img, .projets a:hover img, .grille a:hover img { transform: scale(1.02); }
.series .titre { display: block; margin-top: .8rem; font-size: 1.2rem; }

.projets { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.projets img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: .7rem; transition: transform .6s ease; }
.projets .titre { display: block; font-size: 1.05rem; }
.projets .annee, .projets .lieu { display: block; }

.apropos { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: center; }

/* ---------- serie : colonnes, chaque photo garde ses proportions */
.entete-serie .intro { font-size: 1.15rem; }
.autres-series { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .9rem; }
.autres-series a { color: var(--gris); text-decoration: none; }
.autres-series a[aria-current] { color: var(--encre); border-bottom: 1px solid currentColor; }

.grille { list-style: none; margin: 3rem 0 0; padding: 0 var(--marge); columns: 17rem; column-gap: clamp(1rem, 2.5vw, 2rem); }
.grille li { break-inside: avoid; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.grille img { width: 100%; background: #e9e8e6; transition: transform .6s ease; }
.grille .titre { display: inline-block; margin-top: .55rem; }
.grille .annee { margin-left: .5em; }

/* ---------- oeuvre */
.oeuvre { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr); padding: 1rem var(--marge) 0; align-items: start; }
.oeuvre figure { margin: 0; }
.agrandir { all: unset; cursor: zoom-in; display: block; width: 100%; }
.agrandir img { max-height: 84vh; width: auto; margin-inline: auto; }
.fiche { position: sticky; top: 6rem; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.5rem; margin: 0 0 1.5rem; font-size: .95rem; }
.fiche dt { color: var(--gris); }
.fiche dd { margin: 0; }
.a-saisir { color: var(--gris); font-style: italic; }
.voisins { display: flex; justify-content: space-between; border-top: 1px solid var(--trait); padding-top: 1rem; margin-top: 2.5rem; }
.voisins a { text-decoration: none; color: var(--gris); }
.voisins a[rel=prev]::before { content: "\2190  "; }
.voisins a[rel=next]::after { content: "  \2192"; }

.bande { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.bande img { aspect-ratio: 1; width: 100%; object-fit: cover; background: #e9e8e6; }
.bande .titre { display: block; font-size: .85rem; margin-top: .4rem; color: var(--gris); }

/* ---------- visionneuse : l'image a sa taille reelle au maximum, jamais agrandie */
.visionneuse { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--fond); }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse::backdrop { background: var(--fond); }
.visionneuse img { max-width: calc(100vw - 2 * var(--marge)); max-height: calc(100dvh - 6rem); width: auto; height: auto; }
.visionneuse .fermer { position: fixed; top: 1.25rem; right: var(--marge); background: none; border: 0; font: inherit; color: var(--gris); cursor: pointer; }
.visionneuse .fermer:hover { color: var(--bambou); }

@media (max-width: 52rem) {
  header.site nav:first-of-type { order: 3; width: 100%; }
  .oeuvre { grid-template-columns: 1fr; }
  .fiche { position: static; }
  .agrandir img { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- ajouts du site (hors maquette) */
.evitement { position: absolute; left: -999px; top: .5rem; background: var(--encre); color: var(--fond); padding: .5rem 1rem; z-index: 10; }
.evitement:focus { left: var(--marge); color: var(--fond); }
.bloc-texte { padding: 0 var(--marge); }
footer.site div > p:not(.marque) { margin: 0 0 .35rem; }

.planche { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.planche figure, .video { margin: 0; }
.planche .legende { margin-top: .5rem; text-align: center; }

.texte { max-width: var(--texte); }
.texte p, .texte li { max-width: none; }
.texte h2 { font-size: 1.25rem; text-transform: none; letter-spacing: 0; color: var(--encre); margin-top: 2rem; }
.texte h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .4rem; }
.texte ul, .texte ol { padding-left: 1.2rem; margin: 0 0 1em; }
.texte blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--trait); color: var(--gris); }
.colonne { max-width: calc(var(--texte) + 2 * var(--marge)); }
.colonne-large { max-width: 60rem; }

.apropos.haut { align-items: start; margin-top: 1rem; }
.liste-projets { padding: 0 var(--marge); margin-top: 3rem; }
.projet .grille .agrandir img { width: 100%; }
.projet .grille .titre { display: block; color: var(--gris); font-size: .9rem; }

/* Facade video : une vignette (ou un aplat) et un bouton, le lecteur ne se charge qu'au clic */
.lancer-video { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 16 / 9; background: #2a2926; overflow: hidden; }
.lancer-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.lancer-video .lecture { position: relative; color: #fff; font-size: .95rem; padding: .7rem 1.2rem .7rem 2.6rem;
  border: 1px solid rgba(255,255,255,.6); border-radius: 2rem; background: rgba(0,0,0,.25); }
.lancer-video .lecture::before { content: ""; position: absolute; left: 1.1rem; top: 50%; translate: 0 -50%;
  border-style: solid; border-width: .45rem 0 .45rem .7rem; border-color: transparent transparent transparent #fff; }
.lancer-video:hover .lecture, .lancer-video:focus-visible .lecture { background: var(--bambou); border-color: var(--bambou); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.erreur { min-height: 40vh; }
