/* ============================================================
   ARTFREE — Manu Gomez
   Galerie sombre & élégante — feuille de style
   ============================================================ */

:root {
  --bg:        #0c0c0e;
  --bg-soft:   #141417;
  --bg-card:   #1a1a1f;
  --line:      rgba(255,255,255,0.08);
  --text:      #e7e4dd;
  --text-dim:  #9a958c;
  --text-mute: #6b665e;
  --accent:    #c9a227;   /* or / bronze */
  --accent-2:  #d8b24c;
  --white:     #f6f3ec;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent-2); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }
.divider { width: 64px; height: 1px; background: var(--accent); margin: 22px auto; opacity: .8; }
.lead { color: var(--text-dim); font-size: 1.12rem; max-width: 640px; }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 34px;
  background: rgba(12,12,14,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(12,12,14,0.92); border-bottom-color: var(--line); padding: 13px 34px; }
.nav__brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .12em; color: var(--white); }
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__links a {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; position: relative; padding: 4px 0;
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--accent);
}
.nav__toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.7rem; cursor: pointer; line-height: 1; }

/* mobile menu */
.nav__mobile {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,12,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.nav__mobile.open { opacity: 1; pointer-events: auto; }
.nav__mobile a { font-family: var(--serif); font-size: 2rem; color: var(--text); }
.nav__mobile a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(35%) contrast(1.05) brightness(.42);
  transform: scale(1.05);
  animation: slowzoom 24s ease-in-out infinite alternate;
}
@keyframes slowzoom { to { transform: scale(1.15); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(12,12,14,.25) 0%, rgba(12,12,14,.78) 70%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 0 24px; }
.hero h1 { color: var(--white); text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.hero__sub { margin-top: 18px; font-size: 1.05rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-2); }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-dim);
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 38px; background: var(--accent); margin: 12px auto 0; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }

/* page hero (interior) */
.pagehero { padding: 170px 0 60px; text-align: center; border-bottom: 1px solid var(--line); }
.pagehero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--white); }
.pagehero p { color: var(--text-dim); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  padding: 15px 34px; border: 1px solid var(--accent); color: var(--accent);
  transition: all .3s ease;
}
.btn:hover { background: var(--accent); color: #1a1408; }
.btn--solid { background: var(--accent); color: #1a1408; }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color:#1a1408; }

/* ---------- Section grid (home) ---------- */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.collection {
  position: relative; aspect-ratio: 3/4; overflow: hidden; display: block;
}
.collection img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) brightness(.62); transition: transform .8s ease, filter .6s ease;
}
.collection:hover img { transform: scale(1.07); filter: grayscale(0) brightness(.78); }
.collection__label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  background: linear-gradient(to top, rgba(8,8,10,.6), rgba(8,8,10,.15));
}
.collection__label h3 { color: var(--white); font-size: 1.9rem; }
.collection__label span { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- Gallery (masonry-ish) ---------- */
.gallery {
  column-count: 4; column-gap: 16px;
}
.gallery__item {
  break-inside: avoid; margin-bottom: 16px; position: relative; cursor: pointer;
  background: var(--bg-soft); overflow: hidden;
}
.gallery__item img {
  width: 100%; height: auto; transition: transform .6s ease, opacity .4s ease;
  opacity: 0;
}
.gallery__item img.loaded { opacity: 1; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: "+"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.6);
  color: var(--white); font-size: 2rem; font-weight: 200; opacity: 0;
  width: 54px; height: 54px; line-height: 50px; text-align: center;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transition: all .4s ease;
}
.gallery__item:hover::after { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(7,7,9,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 86vh; box-shadow: 0 20px 80px rgba(0,0,0,.7); }
.lightbox__close { position: absolute; top: 24px; right: 32px; font-size: 2.4rem; color: var(--text-dim); cursor: pointer; line-height: 1; font-weight: 200; }
.lightbox__close:hover { color: var(--white); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.4rem; color: var(--text-dim); cursor: pointer; padding: 20px; user-select: none; font-weight: 200;
}
.lightbox__nav:hover { color: var(--white); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }

/* ---------- About / CV ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 64px; align-items: start; }
.about-portrait img { width: 100%; filter: grayscale(15%) contrast(1.02); }
.about-portrait .cap { color: var(--text-mute); font-size: .82rem; margin-top: 12px; letter-spacing: .04em; }
.cv h3 { color: var(--accent-2); margin: 40px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; }
.cv h3:first-child { margin-top: 0; }
.cv .work { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv .work b { color: var(--white); font-weight: 600; font-size: 1.02rem; }
.cv .work .meta { color: var(--text-dim); font-size: .92rem; }
.cv .work .sel { color: var(--text-mute); font-size: .86rem; font-style: italic; }
.cv ul { list-style: none; }
.cv h4 { color: var(--accent-2); margin: 28px 0 10px; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; }
.cv .filmo-list li b { color: var(--white); font-weight: 600; }
.cv .filmo-list li i { color: var(--text-mute); }
.cv ul li { padding: 6px 0 6px 18px; position: relative; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,.04); }
.cv ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.bio-fact { color: var(--text-dim); }
.bio-fact b { color: var(--text); }

/* ---------- Films ---------- */
.film-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); }
.film-feature__media { aspect-ratio: 16/10; overflow: hidden; }
.film-feature__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); }
.film-feature__body { padding: 40px 44px 40px 0; }
/* Reversed layout (media on the right) */
.film-feature--rev .film-feature__media { order: 2; }
.film-feature--rev .film-feature__body { padding: 40px 0 40px 44px; }
/* Portrait poster variant: show the full poster, no cropping */
.film-feature--poster .film-feature__media { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; background: #0b0b0d; padding: 26px; }
.film-feature--poster .film-feature__media img { width: auto; height: auto; max-width: 100%; max-height: 560px; object-fit: contain; filter: none; }
.posters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.posters .gallery__item { margin: 0; }
.posters .gallery__item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }

/* video */
.video-wrap { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); }
.video-wrap video, .video-wrap iframe { width: 100%; display: block; aspect-ratio: 16/9; border: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-info p { margin: 10px 0; color: var(--text-dim); }
.contact-info a { color: var(--accent-2); }
.contact-info .label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); display: block; margin-top: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 13px 15px; font-family: var(--sans); font-size: .95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; text-align: center; color: var(--text-mute); }
.footer .brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); letter-spacing: .1em; }
.footer .brand span { color: var(--accent); }
.footer__links { display: flex; gap: 26px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.footer__links a { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.footer small { font-size: .78rem; letter-spacing: .04em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery { column-count: 3; }
  .collections { grid-template-columns: repeat(3,1fr); }
  .posters { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .film-feature { grid-template-columns: 1fr; }
  .film-feature__body { padding: 0 30px 36px; }
  .film-feature__media { aspect-ratio: 16/9; }
  .film-feature--rev .film-feature__media { order: 0; }
  .film-feature--rev .film-feature__body { padding: 0 30px 36px; }
  .film-feature--poster .film-feature__media { aspect-ratio: auto; padding: 20px; }
  .film-feature--poster .film-feature__media img { max-height: 460px; }
  .gallery { column-count: 2; }
  .collections { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .gallery { column-count: 1; }
  .posters { grid-template-columns: repeat(2,1fr); }
  .collections { grid-template-columns: 1fr; }
  .nav { padding: 14px 20px; }
  .wrap { padding: 0 20px; }
}

.hidden-field { display: none; }
