:root {
  --prussian: #003153;
  --prussian-light: #1d5a86;
  --red: #e30613;
  --red-dark: #b8050f;
  --yellow: #ffd500;
  --yellow-dark: #e6b800;
  --ink: #0d2235;
  --ink-soft: #4d5e6e;
  --cream: #fbf9f4;
  --sand: #f6f0df;
  --line: #e3ddcc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 49, 83, 0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

button { font: inherit; }

.hidden { display: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.center { text-align: center; margin-top: 40px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--prussian) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%);
}

.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--prussian);
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }

.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }

.nav a:hover { color: var(--red); }

.nav .nav-cta {
  background: var(--prussian);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
}

.nav .nav-cta:hover { background: var(--red); color: #fff; }

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline { border-color: var(--prussian); color: var(--prussian); background: transparent; }
.btn-outline:hover { background: var(--prussian); color: #fff; }

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  background: var(--prussian);
  color: var(--cream);
  margin-top: 14px;
}
.btn-small:hover { background: var(--red); }

/* Hero */
.hero {
  /* Le haut de page tient dans l'écran : texte et photos visibles sans défiler */
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vh, 56px) 0;
  overflow: hidden;
}

.hero > .container { width: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--serif);
  color: var(--prussian);
  font-size: clamp(2rem, min(4.6vw, 7vh), 3.6rem);
  line-height: 1.1;
  margin-bottom: clamp(10px, 2.2vh, 20px);
}

.hero-sub { color: var(--ink-soft); font-size: clamp(1rem, 2.2vh, 1.12rem); margin-bottom: clamp(16px, 3.2vh, 30px); max-width: 34em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(14px, 3vh, 28px); }

.hero-points {
  list-style: none;
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-points li::before { content: '✦ '; color: var(--red); }

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  aspect-ratio: 1 / 1;
  /* Jamais plus haut que l'écran disponible */
  width: min(100%, calc(100vh - 190px));
  width: min(100%, calc(100svh - 190px));
  justify-self: end;
}

.hero-collage::before {
  content: '';
  position: absolute;
  inset: 10% -5% -5% 14%;
  background: var(--yellow);
  border-radius: 50% 50% 46% 54% / 60% 44% 56% 40%;
  opacity: 0.8;
  z-index: -1;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  background: #fff;
}

.collage-main { grid-row: 1 / 3; border-radius: 200px 200px var(--radius) var(--radius) !important; }
.collage-top { transform: rotate(2.5deg); border: 6px solid #fff; }
.collage-bottom { transform: rotate(-2.5deg); border: 6px solid #fff; }

/* Univers */
.univers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.univers-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--prussian);
}

.univers-card:nth-child(3n+2) { border-top-color: var(--yellow); }
.univers-card:nth-child(3n) { border-top-color: var(--red); }

.univers-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.univers-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.univers-body h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--prussian); margin-bottom: 8px; }

.univers-body p { color: var(--ink-soft); margin-bottom: 18px; }

.univers-link {
  margin-top: auto;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.univers-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--prussian); color: #eef3f7; }

.section-title {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 14px;
}

.section-intro {
  text-align: center;
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0 auto 40px;
}

.section-dark .section-intro { color: #b9cad8; }

/* Filters */
.filters { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 36px; }
.filter-group { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.filter-group:empty { display: none; }
.filter-dispo { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; }
.filter-dispo input { width: 18px; height: 18px; accent-color: var(--red); }
.filters-empty { text-align: center; color: var(--ink-soft); margin-bottom: 24px; }

.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
}

.filter.is-active { background: var(--prussian); color: #fff; border-color: var(--prussian); }

/* Œuvres */
.oeuvres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.oeuvre {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.oeuvre[data-statut="Vendu"] .oeuvre-img img { filter: grayscale(0.55); opacity: 0.8; }

.oeuvre-img {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.oeuvre-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s; }

.oeuvre-img:hover img { transform: scale(1.04); }

.statut {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
}

.statut-dispo { color: #2d6a4f; }
.statut-reserve { color: #8a6500; background: #fff7c2; }
.statut-vendu { background: var(--red); color: #fff; }

.oeuvre-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.oeuvre-cat {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 4px;
}

.oeuvre-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }

.oeuvre-head h3 { font-family: var(--serif); font-size: 1.3rem; }

.prix { font-weight: 600; color: var(--red); white-space: nowrap; }

.oeuvre-body p:not(.oeuvre-cat) { color: var(--ink-soft); font-size: 0.94rem; }

.oeuvre-body .dimensions { font-size: 0.84rem; margin-top: 8px; }

.oeuvre-body .btn-small { align-self: flex-start; margin-top: auto; }
.oeuvre-body .dimensions + .btn-small { margin-top: 16px; }

/* Étapes sur mesure */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.steps li {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 8px;
}

.steps h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }

.steps p { color: #b9cad8; font-size: 0.95rem; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery figure { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }

.gallery button { border: none; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }

.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.gallery figcaption { padding: 14px 18px; font-size: 0.92rem; color: var(--ink-soft); }

/* Artiste */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.about-text h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 18px; }

.about-text p { color: var(--ink-soft); margin-bottom: 18px; }

.about-text .about-info { color: var(--ink); margin-bottom: 6px; }

/* Avis */
.avis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.avis-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.avis-stars { color: var(--yellow-dark); margin-bottom: 12px; letter-spacing: 3px; }

.avis-card blockquote { font-family: var(--serif); font-style: italic; font-size: 1.08rem; margin-bottom: 16px; }

.avis-card cite { font-weight: 600; color: var(--red); font-style: normal; font-size: 0.92rem; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-inner h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; }

.contact-intro { color: var(--ink-soft); margin-bottom: 24px; }

.contact-infos p { margin-bottom: 10px; }

.contact-infos a { color: var(--ink); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }

.contact-form .btn { align-self: flex-start; }

.form-message { padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.form-message.is-ok { background: #e3f2ea; color: #2d6a4f; }
.form-message.is-error { background: #fbe4e7; color: var(--red-dark); }

/* Footer */
.footer { background: var(--prussian); color: #c5d3de; padding: 28px 0; font-size: 0.9rem; }

.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Lightbox */
.lightbox {
  border: none;
  background: transparent;
  max-width: min(92vw, 720px);
  margin: auto;
  padding: 0;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(0, 20, 35, 0.88); }

.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }

.lightbox p { color: #fff; text-align: center; margin-top: 12px; font-family: var(--serif); font-size: 1.15rem; }

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 860px) {
  /* Mobile : bande de trois photos au-dessus du texte */
  .hero { min-height: 0; padding: 20px 0 36px; }

  .hero-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }

  .hero-inner { gap: 22px; }

  .hero-collage {
    order: -1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 2.4 / 1;
    gap: 10px;
    justify-self: center;
  }

  .collage-main { grid-row: auto; border-radius: 60px 60px var(--radius) var(--radius) !important; }
  .collage-top, .collage-bottom { border-width: 4px; }
  .collage-top { transform: rotate(2deg); }
  .collage-bottom { transform: rotate(-2deg); }

  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); margin-bottom: 10px; }
  .eyebrow { font-size: 0.72rem; margin-bottom: 10px; }
  .hero-sub { font-size: 0.96rem; line-height: 1.5; margin-bottom: 16px; }
  .hero-actions { gap: 10px; margin-bottom: 14px; }
  .hero-actions .btn { padding: 10px 18px; font-size: 0.95rem; }
  .hero-points { font-size: 0.85rem; gap: 6px 16px; }

  .section { padding: 64px 0; }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open { display: flex; }

  .burger { display: block; }
}
