/* ============================================================
   Maison Lynz — design system
   Premium editorial · OR & NOIR uniquement
   ============================================================ */

:root {
  --black:      #000000;
  --ink:        #060605;
  --ink-2:      #0c0b09;
  --surface:    #121009;
  --surface-2:  #1a1710;
  --line:       #241f15;
  --line-soft:  #181510;

  --gold:       #f5c518;
  --gold-deep:  #c79a0f;
  --gold-bright:#ffe24d;
  --champagne:  #d8c89a;

  --white:      #f6f3ec;
  --muted:      #8f897b;

  --maxw: 1200px;
  --gutter: clamp(22px, 5vw, 72px);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  top: -38vh; left: 50%;
  transform: translateX(-50%);
  width: 120vw; height: 80vh;
  background: radial-gradient(ellipse at center, rgba(245,197,24,0.07), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.display {
  font-size: clamp(2.9rem, 9.5vw, 8rem);
  font-weight: 420;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; font-weight: 400; }
.display.grad {
  background: linear-gradient(165deg, var(--white) 0%, var(--gold-bright) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.display.grad em { font-style: italic; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.lead { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: var(--champagne); max-width: 54ch; font-weight: 400; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--black) 72%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.2rem; letter-spacing: 0.01em;
}
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 18px; border-radius: 999px;
  font-weight: 500; font-size: 0.92rem; letter-spacing: 0.01em;
  color: var(--muted); transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }
.nav-cta { border: 1px solid var(--gold) !important; color: var(--gold) !important; margin-left: 10px; }
.nav-cta:hover { background: var(--gold) !important; color: var(--black) !important; }
.burger { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 16px 32px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-bright); box-shadow: 0 16px 44px rgba(245,197,24,0.22); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: clamp(72px, 12vw, 168px) 0 clamp(54px, 7vw, 96px); }
.hero .display { margin: 22px 0; }
.hero .display .stroke { -webkit-text-stroke: 1px var(--gold); color: transparent; font-style: italic; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* hero "landing" centré */
.hero-lp { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-lp:has(.hero-intro) { padding-top: 0; }
.hero-lp .lead { margin-inline: auto; }
.hero-lp .hero-meta { justify-content: center; }
.hero-lp .display { margin: 24px 0 6px; }

/* bloc texte qui occupe tout l'écran à l'ouverture */
.hero-intro {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-scroll {
  margin-top: clamp(40px, 7vh, 84px);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  animation: heroScrollBob 2.2s var(--ease) infinite;
}
.hero-scroll .arr { font-size: 1rem; }
@keyframes heroScrollBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

.hero-preview { position: relative; width: 100%; max-width: 920px; margin: clamp(46px, 7vw, 92px) auto 0; }
.hero-preview .glow {
  position: absolute; left: 50%; top: -22%;
  width: 90%; height: 130%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center top, rgba(245,197,24,0.22), transparent 60%);
  filter: blur(18px); pointer-events: none; z-index: 0;
}
.preview-frame {
  position: relative; z-index: 1;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-lg); padding: 8px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}
.preview-frame img { width: 100%; height: auto; display: block; border-radius: calc(var(--r-lg) - 8px); }

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.services-4 { grid-template-columns: repeat(2, 1fr); }
.service {
  background: var(--ink); padding: 48px 38px 54px; min-height: 260px;
  display: flex; flex-direction: column;
  transition: background .4s var(--ease); position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.service:hover::before { width: 100%; }
.service:hover { background: var(--ink-2); }
.service h3 { font-size: 1.85rem; margin: 0 0 14px; font-weight: 480; }
.service p { color: var(--muted); font-size: 1rem; }
.service .go {
  margin-top: auto; padding-top: 22px;
  color: var(--gold); font-family: var(--font-body); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.service:hover .go { opacity: 1; transform: none; }
.service .soon {
  margin-top: auto; padding-top: 22px;
  color: var(--muted); font-family: var(--font-body); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Galeries (masonry, format naturel) ---------- */
.gallery-block { margin-bottom: clamp(56px, 8vw, 104px); scroll-margin-top: 110px; }
.gallery-block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.gallery-block-head h3 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 460; }
.gallery-block-head p { color: var(--muted); font-style: italic; }

.grid { column-gap: clamp(12px, 1.6vw, 22px); }
.grid-16x9 { column-count: 2; }
.grid-square { column-count: 4; }
.grid-poster { column-count: 4; }
.grid-wide { column-count: 2; }

.art {
  position: relative; display: block; width: 100%;
  margin: 0 0 clamp(12px, 1.6vw, 22px); break-inside: avoid;
  overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  cursor: zoom-in;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.art img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease); }
.art:hover { border-color: var(--gold); transform: translateY(-4px); }
.art:hover img { transform: scale(1.04); }
.art::after {
  content: "↗"; position: absolute; top: 13px; right: 13px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--gold); color: var(--black); border-radius: 50%; font-weight: 700;
  opacity: 0; transform: scale(.6); transition: .35s var(--ease);
}
.art:hover::after { opacity: 1; transform: scale(1); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); display: none; place-items: center; padding: 5vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.lightbox-close { position: absolute; top: 24px; right: 30px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; transition: color .2s; }
.lightbox-close:hover { color: var(--gold); }

/* ---------- Playlists ---------- */
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.playlist { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 32px 40px; background: var(--ink); transition: .4s var(--ease); }
.playlist:hover { border-color: var(--gold); transform: translateY(-5px); background: var(--ink-2); }
.playlist h3 { font-size: 1.5rem; margin: 0 0 10px; font-weight: 480; }
.playlist .pl-go { margin-top: 24px; color: var(--gold); font-weight: 600; display: inline-flex; gap: 9px; font-size: 0.92rem; }

/* ---------- Avis ---------- */
.reviews { columns: 2; column-gap: 24px; }
.review { break-inside: avoid; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px; background: var(--ink); }
.review .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; font-size: 0.95rem; }
.review p { font-size: 1.12rem; font-family: var(--font-display); font-weight: 380; line-height: 1.4; }
.review .who { margin-top: 20px; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
.review .who .when { font-weight: 500; letter-spacing: 0.06em; opacity: 0.72; }
.review-service { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px; border: 1px solid rgba(245,197,24,0.35); border-radius: 999px; color: var(--gold); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.review-service::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.review-media { margin: 0 0 22px; cursor: zoom-in; }

/* avis accueil : 2 cartes à hauteur égale */
.reviews-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.reviews-home .review { display: flex; flex-direction: column; height: 100%; margin: 0; }
.reviews-home .review .who { margin-top: auto; }
.reviews-home .review { cursor: pointer; }
.reviews-home .review:hover { border-color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 460; font-size: clamp(1.15rem, 2.2vw, 1.55rem); padding: 26px 46px 26px 0; position: relative; transition: color .3s var(--ease); }
.faq summary:hover { color: var(--gold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.7rem; transition: transform .35s var(--ease); font-weight: 300; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 44px 28px 0; }

/* ---------- CTA ---------- */
.cta { position: relative; z-index: 1; text-align: center; padding: clamp(84px, 13vw, 168px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(245,197,24,0.10), transparent 62%), var(--ink); }
.cta h2 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); margin-bottom: 22px; font-weight: 440; }
.cta .lead { margin: 0 auto; }
.cta .btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 54px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-grid h4 { font-family: var(--font-body); color: var(--gold); margin-bottom: 16px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.82rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid-poster { column-count: 2; }
  .grid-wide { column-count: 1; }
  .grid-square { column-count: 3; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 80px 0 auto 0;
    flex-direction: column; background: var(--black);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 30px; gap: 2px;
    transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 15px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; text-align: center; border-radius: 999px !important; padding: 14px !important; }
  .burger { display: block; }
  .reviews { columns: 1; }
  .reviews-home { grid-template-columns: 1fr; }
  .services, .services-4 { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 36px 28px 40px; }
  .grid-16x9, .grid-poster, .grid-wide { column-count: 1; }
  .grid-square { column-count: 2; }

  /* Hero plein écran (accueil) : on neutralise le padding vertical du .hero
     uniquement quand il contient .hero-intro, pour que le bloc tienne dans
     le viewport sans déborder ni être coupé. Les heros secondaires
     (graphisme, montage, avis, 404) gardent leur padding d'origine. */
  .hero:has(.hero-intro) { padding: 0; }
  .hero-intro {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    padding: clamp(28px, 7vh, 60px) 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-intro { padding: clamp(16px, 4vh, 40px) 0; }
  .hero .display { margin: 14px 0; }
  .hero-lp .display { margin: 14px 0 4px; }
  .hero-intro .lead { font-size: 1.02rem; line-height: 1.55; }
  .hero-meta { gap: 12px; margin-top: 24px; }
  /* boutons pleine largeur pour des cibles tactiles confortables */
  .hero-meta .btn { width: 100%; justify-content: center; }
  .btn { padding: 15px 26px; }
  .hero-scroll { margin-top: clamp(28px, 5vh, 56px); }
  /* logos/illustrations carrés : 2 colonnes restent lisibles et évitent
     un scroll interminable ; les autres galeries passent à 1 colonne (820px) */
  .grid-square { column-count: 2; }
  .section-head { gap: 18px; }
  .section-head .btn { width: 100%; justify-content: center; }
  .footer-grid { gap: 36px; }
  .preview-frame { padding: 5px; }
  .service h3 { font-size: 1.6rem; }
  .lightbox-close { top: 14px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
