/* Feuille de style de oeuvres.html
   Reprend les valeurs (couleurs, polices, tailles, espacements) de l'ancien style.css */

body {
  background-color: #F2F0EC;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Grille générale : colonne de menu (210 px) + colonne de contenu */
.page {
  display: grid;
  grid-template-columns: 210px minmax(0, 974px);
  max-width: 1184px;
}

/* En-tête */
.site-header {
  grid-column: 2;
  grid-row: 1;
  height: 150px;
  margin-bottom: 50px;
  display: flex;
  align-items: flex-end;
  background: url("images/haut1.jpg") no-repeat left top;
}

.site-title {
  margin: 0 0 20px;
  font-size: 48px;
  line-height: 1;
  font-weight: normal;
  color: #4A321C;
  letter-spacing: 1px;
  text-indent: 20px;
  cursor: default;
}

/* Menu */
.menu {
  grid-column: 1;
  grid-row: 2;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a,
.menu [aria-current="page"] {
  display: block;
  box-sizing: content-box;
  width: 180px;
  height: 25px;
  margin: 12px 3px 0 0;
  padding: 5px 2px 2px;
  font-size: 15px;
  color: #454545;
  background-color: #E2E2E2;
  text-align: left;
  text-indent: 3px;
  text-decoration: none;
}

.menu a:hover {
  background-color: #CCCCCC;
}

.menu [aria-current="page"] {
  background-color: #CCCCCC;
  margin-bottom: 1px;
  cursor: default;
}

/* Œuvres */
main {
  grid-column: 2;
  grid-row: 2;
  box-sizing: border-box;
  max-width: 880px;
  padding-right: 50px;
}

.oeuvre {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 0 3rem;
  margin-bottom: 1.5rem;
  /* trait de séparation centré, comme l'ancien <hr width="350"> */
  background: linear-gradient(#999, #999) no-repeat center bottom / 350px 1px;
}

.oeuvre:last-child {
  background: none;
}

.oeuvre > a {
  flex: 0 0 321px;
  text-align: center;
}

.oeuvre img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.notice {
  font-size: 15px;
  line-height: 19px;
  letter-spacing: 1px;
  text-align: justify;
  cursor: default;
}

.notice h2 {
  margin: 0;
  font-size: inherit;
  font-weight: bold;
  text-align: inherit;
}

.notice p {
  margin: 0;
}

.notice .dates {
  margin-bottom: 19px;
}

/* Deux œuvres en regard, sur deux colonnes */
.oeuvre--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.oeuvre--duo .vignette {
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}

.oeuvre--duo img {
  max-width: 100%;
  height: auto;
}

.oeuvre--duo .notice {
  text-align: left;
}

/* Œuvre en pleine largeur : image étirée sur la page, cartel en dessous */
.oeuvre--large {
  flex-direction: column;
}

.oeuvre--large > a {
  flex: none;
  width: 100%;
}

.oeuvre--large img {
  display: block;
  width: 100%;
}

.oeuvre--large .notice {
  margin-top: 1rem;
}

/* Page « Informations pratiques » */
.contact {
  margin: 1rem 0 2rem;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  cursor: default;
}

.oeuvre--centree {
  flex-direction: column;
  align-items: center;
}

.oeuvre--centree > a {
  flex: none;
}

.oeuvre--centree .notice {
  margin-top: 1rem;
  font-size: 11px;
  text-align: center;
}

.oeuvre--centree .notice .dates {
  margin-bottom: 0;
}

/* Page d'accueil : texte de présentation, œuvres sans trait de séparation */
.intro {
  padding-top: 1.25rem;
  font-size: 15px;
  line-height: 19px;
  letter-spacing: 1px;
  text-align: justify;
  cursor: default;
}

.intro p {
  margin: 0 0 19px;
}

.sans-trait .oeuvre {
  background: none;
}

/* Contenu centré par rapport au bandeau (960 px) */
main.centre-bandeau {
  max-width: none;
  padding-right: 0;
}

.centre-bandeau > * {
  max-width: 830px;
  margin-left: auto;
  margin-right: auto;
}

/* Pied de page */
.site-footer {
  grid-column: 2;
  grid-row: 3;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("images/bas1.jpg") no-repeat left top;
  font-size: 11px;
  line-height: 19px;
  letter-spacing: 1px;
  text-align: center;
  cursor: default;
}

.site-footer p {
  margin: 0;
}

.site-footer .nom {
  font-weight: bold;
}

/* Version anglaise : le nom de la galerie est un peu plus grand dans le pied de page */
html[lang="en"] .site-footer .nom {
  font-size: 14px;
}

/* Petits écrans */
@media (max-width: 800px) {
  .page {
    grid-template-columns: 1fr;
  }

  .site-header,
  .menu,
  main,
  .site-footer {
    grid-column: 1;
    grid-row: auto;
  }

  .menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
  }

  main {
    padding-right: 0;
  }

  .oeuvre {
    flex-direction: column;
    align-items: center;
  }

  .oeuvre > a {
    flex-basis: auto;
  }
}

@media (max-width: 800px) {
  .oeuvre--duo {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
