/* ============================================================
   Marion de Gentile — mariondegentile.com
   Design : galerie contemporaine, papier ivoire, encre, or
   ============================================================ */

:root {
  --paper: #f7f4ed;
  --paper-2: #efeadf;
  --ink: #1a1712;
  --muted: #6f6759;
  --gold: #a07c33;
  --gold-soft: #c2a25f;
  --line: #ddd5c4;
  --dark: #16130e;
  --dark-text: #efe9dc;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold-soft); color: var(--dark); }

/* ---------- Typographie utilitaire ---------- */

.overline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.display {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.title-lg { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; }
.title-md { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; }

.lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.7; }

.text-muted { color: var(--muted); }
.italic { font-style: italic; }
.center { text-align: center; }

/* ---------- Structure ---------- */

.container { width: min(1200px, 92vw); margin: 0 auto; }
.container-narrow { width: min(760px, 90vw); margin: 0 auto; }
.container-wide { width: min(1400px, 94vw); margin: 0 auto; }

section { padding: clamp(4rem, 9vh, 7.5rem) 0; }

.hr-orn {
  border: none; height: 1px; width: 72px;
  background: var(--gold-soft);
  margin: 2.2rem auto;
}
.hr-orn.left { margin: 2.2rem 0; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 1.4rem 0;
}
.site-header.scrolled {
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.9rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1400px, 94vw); margin: 0 auto;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.wordmark em { font-style: italic; color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 2.4rem; }
.site-nav a {
  font-family: var(--sans); font-size: 12.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after, .site-nav a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.lang-switch {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em;
  color: var(--muted); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }

.burger { display: none; }

/* ---------- Hero (accueil) ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  align-items: stretch;
  padding: 0;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 12vh, 9rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 8vh, 5rem);
}
.hero-text .display { margin: 1.4rem 0 1.8rem; }
.hero-tagline { max-width: 26rem; }
.hero-ctas { display: flex; gap: 1.4rem; margin-top: 2.8rem; flex-wrap: wrap; }

.hero-art { position: relative; overflow: hidden; }
.hero-art::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 130px; z-index: 1;
  background: linear-gradient(to bottom, rgba(247, 244, 237, 0.85), rgba(247, 244, 237, 0));
}
.hero-art img, .hero-art video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: heroIn 2.4s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero-art figcaption {
  position: absolute; right: 1.2rem; bottom: 1rem;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 12.5px;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold); color: var(--paper); }
.btn.on-dark { border-color: var(--dark-text); color: var(--dark-text); }
.btn.on-dark:hover { background: var(--dark-text); color: var(--dark); }

.link-arrow {
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.link-arrow::after { content: "\2192"; margin-left: 0.6em; transition: margin 0.3s var(--ease); }
.link-arrow:hover::after { margin-left: 1em; }

/* ---------- Poème / manifeste ---------- */

.poem { text-align: center; }
.poem p {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-style: italic; line-height: 1.85;
  color: var(--ink);
}
.poem .poem-q {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-style: normal; margin-bottom: 2rem;
}

/* ---------- Œuvres ---------- */

.works-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.work-card { display: block; }
.work-card .frame {
  background: var(--paper-2);
  padding: clamp(0.8rem, 1.6vw, 1.4rem);
  box-shadow: 0 18px 45px -18px rgba(26, 23, 18, 0.35);
  overflow: hidden;
}
.work-card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 1s var(--ease);
}
.work-card:hover img { transform: scale(1.03); }
.work-meta { margin-top: 1.1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.work-title { font-size: 1.35rem; }
.availability {
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap; color: var(--muted);
}
.availability.on { color: var(--gold); }
.availability.on::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  margin-right: 7px; vertical-align: 2px;
}

/* Page œuvres : pièce en vedette */

.feature-piece {
  display: grid; grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.feature-piece .frame {
  background: var(--paper-2); padding: clamp(1rem, 2vw, 1.8rem);
  box-shadow: 0 30px 70px -25px rgba(26, 23, 18, 0.45);
}
.feature-piece .frame img { cursor: zoom-in; }
.feature-text .work-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.4rem; }
.feature-text p { margin-bottom: 1rem; }

/* Flux de la galerie : paires + rangées alternées */

.works-flow > * + * { margin-top: clamp(3.5rem, 8vh, 6rem); }
.feature-piece.reverse .frame { order: 2; }
@media (max-width: 940px) {
  .feature-piece.reverse .frame { order: 0; }
}

/* Sonnet (citation poétique sous un commentaire d'œuvre) */

.sonnet {
  font-style: italic; font-size: 1.02rem; line-height: 1.75;
  color: var(--muted);
  border-left: 1px solid var(--gold-soft);
  padding-left: 1.4rem; margin: 1.6rem 0 0.4rem;
}
.sonnet footer {
  font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-top: 0.9rem;
}

/* Grille de la galerie */

.works-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.8rem, 4vw, 4rem);
}
.works-grid .work-card img { aspect-ratio: 3 / 4; cursor: zoom-in; }
.work-desc { margin-top: 0.8rem; font-size: 1.02rem; color: var(--muted); }

.price {
  font-family: var(--sans); font-weight: 400;
  font-size: 14px; letter-spacing: 0.12em;
  color: var(--gold); margin-top: 0.35rem;
}
.feature-price { display: inline-block; margin-left: 1.4rem; }

.dims {
  font-family: var(--sans); font-weight: 300;
  font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--muted); margin-top: 0.3rem;
}
.feature-dims { display: inline-block; margin-left: 1.4rem; margin-top: 0; }

/* ---------- Bande sombre ---------- */

.band-dark {
  background: var(--dark); color: var(--dark-text);
  text-align: center;
  padding: clamp(5rem, 12vh, 8rem) 0;
}
.band-dark blockquote {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-style: italic; line-height: 1.5;
  max-width: 21ch; margin: 0 auto 1.4rem;
}
.band-dark .overline { color: var(--gold-soft); }

/* ---------- Split section (photo + texte) ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media { overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; aspect-ratio: 4 / 5; }
.split-media.landscape img { aspect-ratio: 4 / 3; }
.split-text h2 { margin: 0.9rem 0 1.3rem; }
.split-text p { margin-bottom: 1.1rem; }

/* ---------- Démarche ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.pillar h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.1rem; }
.pillar h3::after {
  content: ""; display: block; width: 44px; height: 1px;
  background: var(--gold-soft); margin-top: 1.1rem;
}
.pillar p { font-size: 1.05rem; color: var(--muted); margin-bottom: 0.9rem; }

.page-hero {
  padding: clamp(9rem, 20vh, 13rem) 0 clamp(3rem, 6vh, 5rem);
  text-align: center;
}
.page-hero .display { margin-top: 1.2rem; }
.page-hero .lead { max-width: 34rem; margin: 1.8rem auto 0; }

.full-photo { overflow: hidden; }
.full-photo img { width: 100%; height: clamp(340px, 62vh, 620px); object-fit: cover; object-position: 50% 72%; }
.full-photo figcaption {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  text-align: right; padding-top: 0.7rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.contact-intro p { margin-bottom: 1.2rem; }

form .field { margin-bottom: 1.6rem; }
label {
  display: block;
  font-family: var(--sans); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.55rem;
}
input, textarea, select {
  width: 100%;
  background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--ink);
  padding: 0.5rem 2px 0.7rem;
  transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--gold); }
textarea { resize: vertical; min-height: 130px; }

.form-status {
  margin-top: 1.4rem; font-style: italic;
  color: var(--gold); font-size: 1.05rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5rem) 0 2.2rem;
  margin-top: clamp(3rem, 8vh, 6rem);
}
.footer-inner { text-align: center; }
.footer-signature { width: 190px; margin: 0 auto 1.6rem; mix-blend-mode: multiply; }
.footer-nav { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.footer-nav a {
  font-family: var(--sans); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.footer-nav a:hover { color: var(--gold); }
.footer-note { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Atelier de la série ---------- */

.studio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
}
.studio-item .media {
  aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 18px 45px -18px rgba(26, 23, 18, 0.35);
}
.studio-item .media img, .studio-item .media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease);
}
.studio-item:hover .media img { transform: scale(1.03); }
.studio-item .media img { cursor: zoom-in; }
/* Esprit carnet de recherche : planches numérotées, légendes italiques */
.studio-grid { counter-reset: planche; }
.studio-item figcaption {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--muted); margin-top: 0.9rem;
}
.studio-item figcaption::before {
  counter-increment: planche;
  content: counter(planche, upper-roman) ".\2002";
  font-style: normal; color: var(--gold);
  font-size: 0.85em; letter-spacing: 0.08em;
}

@media (max-width: 940px) {
  .studio-grid { grid-template-columns: 1fr; }
}

/* ---------- Musique de fond ---------- */

#music-toggle {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(247, 244, 237, 0.9);
  border: 1px solid var(--gold-soft); color: var(--gold);
  font-size: 19px; cursor: pointer;
  box-shadow: 0 6px 24px -8px rgba(26, 23, 18, 0.4);
  transition: color 0.3s, border-color 0.3s, opacity 0.3s;
}
#music-toggle:hover { color: var(--ink); border-color: var(--ink); }
#music-toggle.off { color: var(--muted); border-color: var(--line); opacity: 0.75; }
#music-toggle.off::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%;
  height: 1px; background: currentColor; transform: rotate(-35deg);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 13, 9, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  position: absolute; bottom: 1.6rem; left: 0; right: 0;
  text-align: center; color: var(--dark-text);
  font-style: italic; font-size: 1.2rem;
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: none; border: none; color: var(--dark-text);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer; padding: 0.6rem;
}

/* ---------- Apparitions au défilement ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img, .hero-art video { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { order: -1; height: 58svh; }
  .hero-art img, .hero-art video { position: relative; height: 100%; }
  .hero-text { padding-top: 3rem; padding-bottom: 4rem; }
  .works-strip { grid-template-columns: 1fr; }

  /* Sur mobile, les toiles sans commentaire restent par paires, en compact */
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 0.9rem; }
  .works-grid .work-card .frame { padding: 0.5rem; }
  .works-grid .work-meta { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .works-grid .work-title { font-size: 1.05rem; }
  .works-grid .availability { font-size: 9px; }
  .works-grid .price { font-size: 12px; margin-top: 0.15rem; }
  .works-grid .link-arrow { font-size: 10.5px; }
  .feature-piece, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .pillars { grid-template-columns: 1fr; }

  .burger {
    display: block; background: none; border: none; cursor: pointer;
    font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--ink); padding: 6px 2px;
  }
  .site-nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 60;
    background: var(--paper);
    flex-direction: column; justify-content: center; gap: 2.6rem;
    transform: translateY(-102%);
    transition: transform 0.5s var(--ease);
  }
  .site-nav.open { transform: none; }
  .site-nav a { font-size: 15px; }
  .nav-close {
    position: absolute; top: 1.4rem; right: 1.6rem;
    background: none; border: none; cursor: pointer;
    font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--muted); padding: 6px;
  }
}

@media (min-width: 941px) {
  .nav-close { display: none; }
}
