/* Couleurs et polices : modifiez ces quelques valeurs pour changer l'ambiance */
:root {
  --fond: #faf8f4;
  --texte: #2a2723;
  --doux: #8a8279;
  --ligne: #e6e1d8;
  --accent: #9a5b3c;
  --titres: "Bodoni Moda", Didot, serif;   /* italique, capitales, taille optique 18 */
  --corps: "Century Gothic", CenturyGothic, "Questrial", "Avenir", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Bodoni Moda 18 italique en capitales : nom, menu, titres des œuvres */
.entete h1, nav a, .carte h3, .detail h2 {
  font-family: var(--titres);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
}

.entete { text-align: center; padding: 72px 16px 40px; }
.entete h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: .06em;
  line-height: 1.1;
}
.sous-titre {
  margin-top: 8px;
  color: var(--doux);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
nav { margin-top: 32px; display: flex; justify-content: center; gap: 28px; }
nav a {
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--doux);
  transition: color .2s;
}
nav a:hover { color: var(--texte); }

main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.presentation {
  max-width: 560px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 1.05rem;
  color: #55504a;
}

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 56px 40px;
}
.carte { cursor: pointer; text-decoration: none; display: block; }
.carte .cadre {
  aspect-ratio: 4 / 5;
  background: #f0ece5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}
.carte img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 6px 22px rgba(40, 30, 20, .18);
  transition: transform .5s ease;
}
.carte:hover img { transform: scale(1.03); }
.carte h3 {
  margin-top: 16px;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.carte p { font-size: .85rem; color: var(--doux); }
.vendue::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: #b3452f;
  vertical-align: middle;
}

/* Exposition */
.expo {
  margin: 120px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
}
.expo .etiquette {
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}
.expo h2 {
  font-weight: 400;
  font-size: 1.7rem;
  margin: 12px 0 20px;
  line-height: 1.2;
}
.expo p { margin: 4px 0; }
.expo .note { margin-top: 20px; font-style: italic; color: #55504a; }
.expo a { color: var(--accent); }

.contact { text-align: center; margin: 80px 0 0; }
.contact h2 { font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.contact a { color: var(--accent); margin: 0 10px; }

footer { text-align: center; padding: 72px 16px 40px; font-size: .75rem; color: var(--doux); }

/* Fenêtre de détail */
.detail {
  position: fixed;
  inset: 0;
  background: var(--fond);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.detail[hidden] { display: none; }
.detail figure {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  max-height: 100%;
}
.detail img {
  max-width: 62%;
  max-height: 86vh;
  box-shadow: 0 10px 40px rgba(40, 30, 20, .22);
}
.detail figcaption { flex: 1; min-width: 220px; }
.detail h2 { font-size: 1.9rem; line-height: 1.2; letter-spacing: .04em; }
.detail .meta { color: var(--doux); margin-top: 8px; }
.detail .dim { margin-top: 16px; font-size: 1.15rem; font-weight: 400; }
.detail .desc { margin-top: 20px; font-size: 1rem; color: #55504a; }
.detail .dispo { margin-top: 20px; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.detail button {
  background: none;
  border: 0;
  font: inherit;
  color: var(--doux);
  cursor: pointer;
  position: absolute;
}
.detail button:hover { color: var(--texte); }
.fermer { top: 16px; right: 24px; font-size: 2.4rem; line-height: 1; }
.fleche { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 8px 14px; }
.prec { left: 4px; }
.suiv { right: 4px; }

@media (max-width: 760px) {
  .entete { padding-top: 48px; }
  .galerie { gap: 40px; grid-template-columns: 1fr; }
  .detail { align-items: flex-start; overflow-y: auto; padding: 56px 16px 32px; }
  .detail figure { flex-direction: column; gap: 24px; max-height: none; }
  .detail img { max-width: 100%; max-height: 65vh; }
  .detail figcaption { text-align: center; }
  .fleche { top: auto; bottom: 8px; transform: none; position: fixed; }
}
