/* ============================================================
   CEEDPIX — style.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg:        #080808;
  --surface:   #111111;
  --surface2:  #1a1a1a;
  --border:    #222222;
  --text:      #e8e4df;
  --muted:     #888880;
  --accent:    #b8a98a;
  --accent-dk: #8c7d65;
  --white:     #f5f2ee;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t:         0.4s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.eyebrow { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.lead { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); font-style: italic; color: var(--muted); line-height: 1.7; }
.divider { width: 40px; height: 1px; background: var(--accent); margin: 1.5rem 0; }

/* ── Layout ── */
.section    { padding: clamp(5rem,9vw,8rem) clamp(1.5rem,5vw,4rem); }
.section-sm { padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,4rem); }
.section-header { margin-bottom: clamp(3rem,5vw,4.5rem); }
.section-header .eyebrow { margin-bottom: .8rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; color: var(--muted); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: .85rem 2rem; transition: var(--t); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border: 1px solid rgba(232,228,223,.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px; padding: 0 clamp(1.5rem,5vw,4rem); display: flex; align-items: center; justify-content: space-between; transition: background var(--t), border-color var(--t); }
.site-header.scrolled { background: rgba(8,8,8,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.logo { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .08em; color: var(--white); }
.logo span { display: block; font-size: .58rem; font-family: var(--sans); font-weight: 300; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-top: 1px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: .7rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--text); transition: color var(--t); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-size: .66rem !important; color: var(--accent) !important; border: 1px solid var(--accent-dk); padding: .45rem 1.1rem; transition: background var(--t), color var(--t) !important; }
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text); transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; color: var(--text); transition: color var(--t); }
.nav-mobile a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: flex-end; padding: clamp(2rem,5vw,5rem) clamp(1.5rem,5vw,4rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,8,8,.72) 0%, rgba(8,8,8,.35) 25%, rgba(8,8,8,.05) 50%, rgba(8,8,8,.75) 80%, rgba(8,8,8,.97) 100%); z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; filter: brightness(.75); }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-content .eyebrow { margin-bottom: 1.2rem; }
.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-content .lead { margin-bottom: 2.5rem; color: rgba(232,228,223,.8); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   PAGE HEADER (pages internes)
   ============================================================ */
.page-header { padding-top: calc(72px + clamp(3rem,6vw,5rem)); padding-bottom: clamp(2.5rem,5vw,4rem); padding-left: clamp(1.5rem,5vw,4rem); padding-right: clamp(1.5rem,5vw,4rem); border-bottom: 1px solid var(--border); }
.page-header .eyebrow { margin-bottom: .8rem; }
.page-header h1 { margin-bottom: 1rem; }

/* ============================================================
   FINE ART — Séries inline avec nav sticky
   ============================================================ */
.fineart-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .fineart-layout { grid-template-columns: 1fr; } }

/* Sticky series nav (sidebar desktop) */
#series-sticky-nav {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
  scrollbar-width: none;
}
#series-sticky-nav::-webkit-scrollbar { display: none; }
#series-sticky-nav h3 { font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
#series-sticky-nav ul { display: flex; flex-direction: column; gap: .2rem; }
#series-sticky-nav a { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 300; color: var(--muted); padding: .5rem .6rem; border-left: 2px solid transparent; transition: color var(--t), border-color var(--t); line-height: 1.3; }
#series-sticky-nav a:hover { color: var(--text); }
#series-sticky-nav a.active { color: var(--white); border-left-color: var(--accent); }

/* Mobile series nav (horizontal scroll) */
.series-mobile-nav { display: none; position: sticky; top: 72px; z-index: 50; background: rgba(8,8,8,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: .75rem clamp(1.5rem,5vw,4rem); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.series-mobile-nav::-webkit-scrollbar { display: none; }
.series-mobile-nav a { display: inline-block; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); padding: .4rem .9rem; border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t); }
.series-mobile-nav a.active, .series-mobile-nav a:hover { color: var(--white); border-bottom-color: var(--accent); }
@media (max-width: 900px) { #series-sticky-nav { display: none; } .series-mobile-nav { display: block; } }

/* Series section */
.series-section { padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem); border-bottom: 1px solid var(--border); scroll-margin-top: 72px; }
@media (max-width: 900px) { .series-section { scroll-margin-top: 120px; } }
.series-section-header { max-width: 680px; margin-bottom: clamp(2.5rem,5vw,4rem); }
.series-section-header .eyebrow { margin-bottom: .8rem; }
.series-section-header h2 { margin-bottom: 1rem; }
.series-intention { font-family: var(--serif); font-size: clamp(1.1rem,2vw,1.4rem); font-style: italic; color: var(--muted); line-height: 1.7; max-width: 560px; }

/* Series cover banner */
.series-cover { width: 100%; aspect-ratio: 21/9; object-fit: cover; filter: brightness(.7); margin-bottom: clamp(2rem,4vw,3.5rem); display: block; }
@media (max-width: 600px) { .series-cover { aspect-ratio: 16/9; } }

/* Series gallery */
.series-gallery { columns: 2; column-gap: 3px; }
@media (min-width: 700px)  { .series-gallery { columns: 3; } }
@media (min-width: 1100px) { .series-gallery { columns: 4; } }
.series-gallery img { width: 100%; display: block; margin-bottom: 3px; break-inside: avoid; cursor: zoom-in; transition: filter .5s; }
.series-gallery img:hover { filter: brightness(.75); }

/* Tirages CTA per series */
.series-print-cta { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   PORTFOLIO — Filter JS
   ============================================================ */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.filter-btn { font-family: var(--sans); font-size: .7rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 1rem 2rem 1rem 0; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t), border-color var(--t); background: none; }
.filter-btn.active, .filter-btn:hover { color: var(--white); border-bottom-color: var(--accent); }
.filter-label { font-size: .62rem; letter-spacing: .12em; color: var(--muted); margin-left: .4rem; }
.filter-group { display: none; }
.filter-group[data-group="portraits"] { display: block; }

/* Masonry */
.masonry { columns: 2; column-gap: 3px; }
@media (min-width: 700px)  { .masonry { columns: 3; } }
@media (min-width: 1200px) { .masonry { columns: 4; } }
.masonry-item[hidden] { display: none; }
.masonry-item { position: relative; }
.masonry-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.masonry-item { break-inside: avoid; margin-bottom: 3px; overflow: hidden; }
.masonry-item img { width: 100%; display: block; transition: transform .6s var(--ease), filter .6s; filter: brightness(.9); cursor: zoom-in; }
.masonry-item:hover img { transform: scale(1.03); filter: brightness(1); }

/* ============================================================
   OFFRES & TARIFS
   ============================================================ */
.tarif-grid { display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(min(100%,280px),1fr)); }
.tarif-card { background: var(--surface); padding: 2.2rem 1.8rem 2rem; display: flex; flex-direction: column; border: 1px solid transparent; transition: background var(--t), border-color var(--t); position: relative; }
.tarif-card:hover { background: var(--surface2); border-color: var(--border); }
.tarif-card.featured { border-color: var(--accent-dk); }
.tarif-card.featured::before { content: 'Signature'; position: absolute; top: -1px; right: 1.5rem; background: var(--accent); color: var(--bg); font-size: .6rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; padding: .3rem .8rem; }
.tarif-name { font-family: var(--serif); font-size: 1.25rem; color: var(--white); line-height: 1.2; margin-bottom: .4rem; }
.tarif-price { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin: .6rem 0 .8rem; }
.tarif-price small { font-size: .75rem; font-family: var(--sans); color: var(--muted); }
.tarif-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: .8rem; }
.tarif-items { list-style: none; flex: 1; display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.4rem; }
.tarif-items li { font-size: .8rem; color: var(--muted); padding-left: 1rem; position: relative; line-height: 1.5; }
.tarif-items li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.formule-grid { display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(min(100%,360px),1fr)); }
.formule-card { background: var(--surface); padding: 2.5rem 2rem; border: 1px solid var(--border); display: flex; flex-direction: column; }
.formule-badge { display: inline-flex; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-dk); padding: .3rem .75rem; width: fit-content; margin-bottom: .8rem; }
.formule-name { font-family: var(--serif); font-size: 1.7rem; color: var(--white); margin-bottom: .5rem; }
.formule-price { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; margin: .5rem 0 1rem; }
.formule-price small { font-size: .75rem; font-family: var(--sans); color: var(--muted); }
.formule-desc { font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: .8rem; }
.formule-items { list-style: none; flex: 1; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.8rem; }
.formule-items li { font-size: .85rem; color: var(--muted); padding-left: 1rem; position: relative; line-height: 1.6; }
.formule-items li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: .7rem; }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { max-width: 780px; margin: 0 auto; text-align: center; }
.statement blockquote { font-family: var(--serif); font-size: clamp(1.45rem,3vw,2.1rem); font-style: italic; line-height: 1.5; color: var(--text); margin-bottom: 2rem; }
.statement blockquote::before { content: '\201C'; color: var(--accent); }
.statement blockquote::after  { content: '\201D'; color: var(--accent); }
.statement p { color: var(--muted); font-size: .95rem; line-height: 1.8; max-width: 600px; margin: 0 auto 1.5rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap { display: grid; gap: clamp(3rem,6vw,6rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 1fr 1.5fr; } }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-links { display: flex; flex-direction: column; gap: .8rem; }
.contact-links a { font-size: .8rem; letter-spacing: .1em; color: var(--muted); transition: color var(--t); display: flex; align-items: center; gap: .6rem; }
.contact-links a:hover { color: var(--accent); }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: var(--sans); font-size: .9rem; padding: .85rem 1rem; transition: border-color var(--t); outline: none; -webkit-appearance: none; border-radius: 0; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select option { background: var(--surface); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-consent { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.5rem; }
.form-consent input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); }
.form-consent label { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,5vw,4rem); }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: .85rem; line-height: 1.7; max-width: 280px; margin-top: .8rem; }
.footer-nav h4 { font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { font-size: .85rem; color: var(--muted); transition: color var(--t); }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-bottom p { font-size: .75rem; color: var(--muted); }
.footer-bottom a { font-size: .75rem; color: var(--muted); transition: color var(--t); }
.footer-bottom a:hover { color: var(--text); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: rgba(17,17,17,.97); backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding: 1.5rem clamp(1.5rem,5vw,4rem); display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; transform: translateY(100%); transition: transform .5s cubic-bezier(.16,1,.3,1); }
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: .82rem; color: var(--muted); line-height: 1.6; flex: 1; min-width: 240px; }
#cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-btn { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: .65rem 1.4rem; transition: var(--t); }
.cookie-accept { background: var(--accent); color: var(--bg); }
.cookie-accept:hover { background: var(--white); }
.cookie-refuse { border: 1px solid var(--border); color: var(--muted); }
.cookie-refuse:hover { border-color: var(--muted); color: var(--text); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox { display: none; position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.96); align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
#lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--muted); font-size: 1.5rem; transition: color var(--t); }
#lightbox-close:hover { color: var(--white); }

/* ============================================================
   LÉGAL
   ============================================================ */
.legal-content { max-width: 780px; margin: 0 auto; padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,4rem); }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 .8rem; color: var(--accent); font-family: var(--sans); font-weight: 400; letter-spacing: .05em; }
.legal-content p, .legal-content li { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: .75rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .tarif-grid { grid-template-columns: 1fr; }
  .formule-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, #cookie-banner, .nav-mobile { display: none !important; }
  body { background: white; color: black; }
}
