/*
Theme Name: Soleil Artwork
Description: Thème minimaliste pour présenter les peintures de l'artiste, organisées par ambiances sombres et lumineuses.
Version: 1.0
Author: Soleil Artwork
Text Domain: soleil-artwork
*/

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1d1d1b;
  background: #fafaf6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1d1d1b; text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: 0.65; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.eyebrow {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #8a8678;
  font-family: 'Inter', sans-serif;
}

/* ---- Header ---- */
.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid #eae6dc;
  background: #fafaf6;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #1d1d1b;
}

/* ---- Hero / Intro ---- */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin: 0.5rem 0 1.25rem;
}
.hero p {
  font-size: 1.1rem;
  color: #4a4a45;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

/* ---- Categories quick links ---- */
.cat-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0 3rem;
  flex-wrap: wrap;
}
.cat-links a {
  padding: .5rem 1.25rem;
  border: 1px solid #d6d1c1;
  border-radius: 999px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  background: transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.cat-links a:hover {
  background: #1d1d1b;
  color: #fafaf6;
  border-color: #1d1d1b;
  opacity: 1;
}

/* ---- Paintings grid ---- */
.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0 5rem;
}
.painting-card { display: block; }
.painting-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece8dc;
}
.painting-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.painting-card:hover { opacity: 1; }
.painting-card:hover .painting-card-image img { transform: scale(1.04); }
.painting-card-meta {
  padding: .85rem 0 0;
}
.painting-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 .15rem;
  line-height: 1.25;
}
.painting-card-cat {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #8a8678;
}
.no-paintings {
  text-align: center;
  padding: 4rem 0;
  color: #8a8678;
  font-style: italic;
}

/* ---- Single painting ---- */
.single-painting { padding: 3rem 0 5rem; }
.single-painting-image {
  text-align: center;
  margin-bottom: 2.5rem;
}
.single-painting-image img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 25px 70px rgba(0,0,0,0.12);
}
.single-painting-info {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.single-painting-info h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin: 0 0 .5rem;
}
.single-painting-cat {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #8a8678;
  display: block;
  margin-bottom: 2rem;
}
.single-painting-description {
  font-size: 1.05rem;
  color: #3a3a35;
  margin-bottom: 0;
}
.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #8a8678;
}

/* ---- Contact CTA ---- */
.contact-cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #f1ede0;
  margin: 4rem 0 0;
}
.contact-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}
.contact-cta p {
  font-size: 1.05rem;
  color: #4a4a45;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.contact-phone {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  letter-spacing: .04em;
  padding: .9rem 2rem;
  border: 1px solid #1d1d1b;
  color: #1d1d1b;
  background: transparent;
  transition: background .3s, color .3s;
}
.contact-phone:hover {
  background: #1d1d1b;
  color: #fafaf6;
  opacity: 1;
}
.contact-artist {
  margin-top: 1rem;
  font-size: .85rem;
  color: #8a8678;
  text-transform: uppercase;
  letter-spacing: .2em;
}

/* ---- Presentation section ---- */
.presentation {
  padding: 5rem 1.5rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.presentation h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: .5rem 0 1.75rem;
}
.presentation p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3a3a35;
  margin-bottom: 1.25rem;
}

/* ---- Archive header ---- */
.archive-header {
  text-align: center;
  padding: 4rem 0 1.5rem;
}
.archive-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: .5rem 0 .5rem;
}

/* ---- Page (generic) ---- */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.page-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: 0 0 2.5rem;
}
.page-content p { font-size: 1.08rem; line-height: 1.8; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #eae6dc;
  padding: 2.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: #8a8678;
  background: #fafaf6;
}
.site-footer p { margin: .25rem 0; }
.site-footer a { color: #4a4a45; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .site-header { padding: 1.25rem 0; position: static; }
  .site-header-inner { gap: .75rem; }
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: .72rem; letter-spacing: .14em; }
  .hero { padding: 3rem 0 1.5rem; }
  .paintings-grid { gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
  .painting-card-title { font-size: 1.05rem; }
  .single-painting-image img { max-height: 60vh; }
  .contact-cta { padding: 3rem 1.25rem; }
}
@media (max-width: 420px) {
  .paintings-grid { grid-template-columns: 1fr; }
}
