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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #fafafa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a { color: #005ea7; text-decoration: none; transition: color .2s; }
a:hover { color: #e1007a; }

.header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
}

.title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: #222;
}

.subtitle {
  font-size: .95rem;
  color: #888;
  letter-spacing: .06em;
  margin-top: .3rem;
}

.rainbow {
  display: flex;
  width: 100%;
  max-width: 900px;
}

.rainbow span {
  flex: 1;
  height: 4px;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.oeuvre {
  text-align: center;
}

.oeuvre img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.04);
}

.oeuvre figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0 .25rem;
}

.oeuvre-titre {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
}

.oeuvre-dim {
  font-size: .8rem;
  color: #aaa;
  white-space: nowrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  padding: 1.5rem;
  font-size: .85rem;
  color: #999;
}

@media (max-width: 600px) {
  .title { font-size: 2.5rem; }
  .subtitle { font-size: .8rem; }
  .main { padding: 1.5rem 1rem; }
  .oeuvre figcaption {
    flex-direction: column;
    align-items: center;
    gap: .3rem;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
  }
}
