/* ── THEME ── */
:root {
  --radius: .25rem;
  --background:        oklch(14% .005 60);
  --foreground:        oklch(96% .01  80);
  --card:              oklch(18% .005 60);
  --card-foreground:   oklch(96% .01  80);
  --primary:           oklch(78% .1   75);
  --primary-foreground:oklch(14% .005 60);
  --secondary:         oklch(24% .01  60);
  --muted:             oklch(22% .005 60);
  --muted-foreground:  oklch(68% .015 70);
  --border:            oklch(28% .008 60);
  --input:             oklch(28% .008 60);
  --ring:              oklch(78% .1   75);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --max-w: 80rem;    /* 1280px */
  --nav-h: 4rem;     /* 64px  */
  --px:    1.5rem;
}
@media (min-width: 1024px) { :root { --px: 2.5rem; } }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-feature-settings: "ss01","ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -.01em; font-weight: 400; }

/* ── UTILITIES ── */
.label-tag {
  color: var(--primary);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: .75rem;
  display: block;
}
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  transition: opacity .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: .9; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--foreground);
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .875rem;
  border: 1px solid var(--border);
  transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--primary); }

.btn-acquerir {
  font-size: .875rem;
  border: 1px solid color-mix(in oklab, var(--primary) 60%, transparent);
  color: var(--primary);
  padding: .375rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-acquerir:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline-primary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: .875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .875rem;
  border: 1px solid var(--primary);
  transition: background .15s, color .15s;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in oklab, var(--border) 40%, transparent);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: .025em;
  color: var(--foreground);
  flex-shrink: 0;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
@media (max-width: 767px) { .nav-links { display: none; } .nav-inner > .btn-acquerir { display: none; } }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
@media (max-width: 767px) { .hamburger { display: flex; } }
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--foreground);
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: .75rem var(--px) 1.25rem;
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .75rem 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}
.mobile-menu a:last-child { border: none; margin-top: .75rem; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay-t {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    var(--background) 0%,
    color-mix(in oklab, var(--background) 60%, transparent) 40%,
    color-mix(in oklab, var(--background) 40%, transparent) 100%);
}
.hero-overlay-r {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklab, var(--background) 70%, transparent) 0%,
    color-mix(in oklab, var(--background) 20%, transparent) 50%,
    color-mix(in oklab, var(--background) 60%, transparent) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 6rem var(--px) 4rem;
}
.hero-content .label-tag { margin-bottom: 1.5rem; }
h1 { font-family: var(--font-display); font-weight: 400; line-height: .85; letter-spacing: -.025em; }
.h1-pierre {
  display: block;
  font-size: clamp(4rem, 18vw, 12rem);
  color: var(--foreground);
}
.h1-debearn {
  display: block;
  font-size: clamp(4rem, 18vw, 12rem);
  font-style: italic;
  color: var(--primary);
  margin-top: -.1em;
}
.hero-sub {
  margin-top: 2rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.625;
}
.hero-btns {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── GALLERY ── */
.section-oeuvres {
  padding: 7rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}
.oeuvres-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
}
.oeuvres-header .display-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: .25rem;
}
.gold-line {
  display: none;
  width: 8rem;
  height: 1px;
  background: var(--primary);
  margin-bottom: 1rem;
  opacity: .6;
  flex-shrink: 0;
}
@media (min-width: 768px) { .gold-line { display: block; } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.artwork-card a { display: block; }
.artwork-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  aspect-ratio: 3/4;
  margin-bottom: 1rem;
}
.artwork-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.artwork-card:hover .artwork-img-wrap img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: .75rem; left: .75rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .2rem .625rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
}
.badge-dispo {
  background: var(--primary);
  color: var(--primary-foreground);
}
.badge-demande {
  background: color-mix(in oklab, var(--background) 80%, transparent);
  color: var(--muted-foreground);
}

.artwork-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  transition: color .15s;
}
.artwork-card:hover .artwork-title { color: var(--primary); }
.artwork-meta {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin-top: .25rem;
}
.artwork-footer {
  margin-top: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
}
.artwork-price      { color: var(--primary); }
.artwork-price-muted { color: var(--muted-foreground); }
.voir-link {
  font-size: .75rem;
  color: var(--muted-foreground);
  transition: color .15s;
}
.artwork-card:hover .voir-link { color: var(--primary); }

/* ── BIO ── */
.section-bio {
  padding: 7rem var(--px);
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bio-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .bio-grid { grid-template-columns: 2fr 3fr; gap: 3.5rem; }
}
.bio-portrait-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.bio-portrait-wrap img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ring {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent);
  pointer-events: none;
}
.bio-meta {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.meta-key { color: var(--primary); }

.bio-text-col .label-tag { margin-bottom: 1rem; }
.bio-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 2rem;
}
.bio-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
  line-height: 1.625;
}
.bio-body p { font-size: 1rem; }
.primary-em { font-style: italic; color: var(--primary); }

/* ── PARCOURS ── */
.section-parcours {
  padding: 7rem var(--px);
}
.parcours-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 768px) { .parcours-inner { grid-template-columns: 1fr 1fr; } }

.parcours-col .label-tag { margin-bottom: .75rem; }
.parcours-h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 2.5rem; }

.parcours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.parcours-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.parcours-list li:last-child { border-bottom: none; padding-bottom: 0; }
.parcours-year {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  min-width: 36px;
  flex-shrink: 0;
  padding-top: .1rem;
}
.parcours-list strong {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: .2rem;
  font-family: var(--font-body);
}
.parcours-list span {
  font-size: .8rem;
  color: var(--muted-foreground);
}

/* ── CONTACT ── */
.section-contact {
  position: relative;
  padding: 8rem var(--px);
  background: var(--card);
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.contact-bg {
  position: absolute; inset: 0;
  opacity: .1;
  pointer-events: none;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}
.contact-inner .label-tag { justify-content: center; display: flex; margin-bottom: 1rem; }
.contact-title { font-size: clamp(2rem, 6vw, 3.75rem); margin-bottom: 1.5rem; }
.contact-sub {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── FOOTER ── */
.site-footer {
  padding: 2.5rem var(--px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
