/* =========================================================
   NWAY CARS — Nuit & Champagne
   ========================================================= */

:root {
  --noir:        #0a0a0b;
  --noir-2:      #0f0f11;
  --charbon:     #141417;
  --charbon-2:   #1a1a1e;
  --ivoire:      #f2ede3;
  --ivoire-soft: #cfc9bd;
  --muted:       #908a7e;
  --or:          #c9a86a;
  --or-clair:    #e3c990;
  --or-fonce:    #a9854f;
  --line:        rgba(201, 168, 106, 0.20);
  --line-soft:   rgba(242, 237, 227, 0.10);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--noir);
  color: var(--ivoire);
  font-weight: 300;
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
dl, dd { margin: 0; }
::selection { background: var(--or); color: var(--noir); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(70px, 11vw, 150px) 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}
.section-lead {
  color: var(--ivoire-soft);
  font-size: 1.06rem;
  max-width: 46ch;
  margin-top: 22px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.gold { color: var(--or); }
em { font-style: italic; }

.link-gold {
  display: inline-block;
  margin-top: 30px;
  color: var(--or);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s var(--ease);
}
.link-gold::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--or); transform: scaleX(.4); transform-origin: left; opacity: .5;
  transition: transform .4s var(--ease), opacity .3s;
}
.link-gold:hover { color: var(--or-clair); }
.link-gold:hover::after { transform: scaleX(1); opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 2px;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn .ico-phone { width: 17px; height: 17px; fill: currentColor; }
.btn-primary {
  background: linear-gradient(135deg, var(--or-clair), var(--or-fonce));
  color: #15110a;
  font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(201,168,106,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(201,168,106,0.7); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ivoire);
  background: rgba(255,255,255,0.01);
}
.btn-ghost:hover { border-color: var(--or); color: var(--or-clair); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 21px 52px; font-size: 1rem; letter-spacing: 0.22em; }

.btn-call {
  border: 1px solid var(--line);
  color: var(--ivoire);
  padding: 12px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.btn-call:hover { border-color: var(--or); color: var(--or-clair); }
.btn-call .ico-phone { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.site-header.scrolled .header-inner { height: 72px; }
.header-inner { transition: height .5s var(--ease); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--or);
  font-family: var(--serif); font-size: 1.3rem; color: var(--or);
  letter-spacing: 0;
}
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.06em; color: var(--ivoire); }
.brand-name em { color: var(--or); font-style: italic; }

.nav { display: flex; gap: 38px; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivoire-soft); position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ivoire); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; }
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ivoire); transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px 28px 30px;
  background: rgba(10,10,11,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:not(.btn) {
  padding: 16px 0; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ivoire-soft); border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn-call { margin-top: 20px; justify-content: center; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.15) 32%, rgba(10,10,11,0.55) 72%, var(--noir) 100%),
    radial-gradient(120% 80% at 20% 80%, rgba(10,10,11,0.6), transparent 60%);
}
.hero-content { padding-bottom: clamp(40px, 7vw, 70px); padding-top: 140px; max-width: 860px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 6px 0 26px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-sub { color: var(--ivoire-soft); font-size: clamp(1rem, 2.2vw, 1.22rem); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-strip { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25)); }
.hero-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 8px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; height: 52%; width: 1px; background: var(--line-soft); }
.stat-num { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--or); line-height: 1; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Intro ---------- */
.intro { background: var(--noir); text-align: center; }
.intro-inner { max-width: 760px; margin: 0 auto; }
.intro-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.08; letter-spacing: 0.01em;
}
.intro-text { color: var(--ivoire-soft); font-size: 1.12rem; margin-top: 30px; }

/* ---------- Véhicule ---------- */
.vehicle { background: linear-gradient(180deg, var(--noir), var(--noir-2)); }
.vehicle-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.vehicle-media { position: relative; }
.vehicle-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--line); transform: translate(16px, 16px); z-index: -1;
}
.vehicle-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.spec-list { margin: 34px 0 36px; border-top: 1px solid var(--line-soft); }
.spec-list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 2px; border-bottom: 1px solid var(--line-soft);
}
.spec-list dt { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { font-family: var(--serif); font-size: 1.28rem; color: var(--ivoire); text-align: right; }

/* ---------- Expérience / Features ---------- */
.experience { background: var(--noir-2); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5.5vw, 76px); align-items: center; }
.feature + .feature { margin-top: clamp(60px, 9vw, 120px); }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; overflow: hidden; }
.feature-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-media:hover img { transform: scale(1.05); }
.feature-index {
  font-family: var(--serif); font-size: 3.4rem; color: transparent;
  -webkit-text-stroke: 1px var(--or-fonce); display: block; line-height: 1; margin-bottom: 8px; opacity: .75;
}
.feature-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.feature-text p { color: var(--ivoire-soft); }
.feature-points { list-style: none; padding: 0; margin: 26px 0 0; }
.feature-points li {
  position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem; color: var(--ivoire);
}
.feature-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 7px; height: 7px; border: 1px solid var(--or); background: rgba(201,168,106,0.15);
}

/* ---------- Galerie ---------- */
.gallery { background: var(--noir); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 235px;
  gap: 16px;
}
.g-item { position: relative; overflow: hidden; border-radius: 2px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(0.96) brightness(0.95); }
.g-item::after {
  content: "\002B"; /* + */
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 300; font-size: 2rem; color: var(--ivoire);
  background: rgba(10,10,11,0.35); opacity: 0; transition: opacity .4s var(--ease);
}
.g-item:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.g-item:hover::after { opacity: 1; }
.g-big { grid-column: span 2; grid-row: span 2; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--noir), var(--noir-2)); }
.pricing-inner { max-width: 720px; margin: 0 auto; }
.price-card {
  background: linear-gradient(160deg, var(--charbon-2), var(--charbon));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
  position: relative;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
}
.price-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(201,168,106,0.10), transparent 60%);
}
.price-head { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.price-from { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.price-amount { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1; white-space: nowrap; }
.price-unit { font-family: var(--serif); font-size: 1.4rem; color: var(--ivoire-soft); white-space: nowrap; }

.price-includes { list-style: none; padding: 0; margin: 26px auto 30px; max-width: 420px; }
.price-includes li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--ivoire-soft); font-size: 0.98rem; }
.price-includes li:last-child { border-bottom: none; }

.price-deposit {
  background: rgba(201,168,106,0.06);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ivoire-soft);
  line-height: 1.6;
  margin-bottom: 30px;
}
.price-deposit strong { color: var(--or); font-weight: 500; }
.price-note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); }
.price-note strong { color: var(--ivoire-soft); font-weight: 400; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(10,10,11,0.78), rgba(10,10,11,0.82)),
    url('../img/gls-front.jpg') center 38% / cover fixed;
  text-align: center; padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.cta-inner h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; }
.cta-inner p { color: var(--ivoire-soft); margin: 18px 0 36px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--noir); padding-top: 72px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-soft); }
.footer-brand .brand-mark { margin-bottom: 0; display: inline-grid; vertical-align: middle; }
.footer-brand .brand-name { margin-left: 12px; }
.footer-tag { color: var(--muted); margin-top: 16px; font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or); font-weight: 400; margin-bottom: 18px; }
.footer-phone { font-family: var(--serif); font-size: 1.7rem; color: var(--ivoire); transition: color .3s; }
.footer-phone:hover { color: var(--or); }
.footer-muted { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.footer-legal-link {
  margin-top: 14px; color: var(--ivoire-soft); font-size: 0.9rem; letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: color .3s, text-decoration-color .3s;
}
.footer-legal-link:hover { color: var(--or); text-decoration-color: var(--or); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 0 34px; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em;
}
.footer-bottom .footer-legal-link { margin-top: 0; }

/* ---------- FAB (mobile call) ---------- */
.fab-call {
  position: fixed; bottom: 18px; right: 18px; z-index: 80;
  display: none; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--or-clair), var(--or-fonce));
  color: #15110a; font-weight: 500; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 20px; border-radius: 50px;
  box-shadow: 0 14px 34px -10px rgba(201,168,106,0.6);
}
.fab-call .ico-phone { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6,6,7,0.95); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lb-figure img { max-width: 92vw; max-height: 78vh; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); }
.lb-figure figcaption { margin-top: 16px; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivoire-soft); }
.lb-close { position: absolute; top: 22px; right: 30px; font-size: 2.4rem; line-height: 1; color: var(--ivoire); transition: color .3s; }
.lb-close:hover { color: var(--or); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 3rem; line-height: 1; color: var(--ivoire-soft); width: 60px; height: 80px; transition: color .3s;
}
.lb-nav:hover { color: var(--or); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }

/* ---------- Modal (legal) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,6,7,0.86); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; z-index: 1;
  width: min(760px, 100%); max-height: 88vh;
  background: linear-gradient(180deg, var(--charbon-2), var(--charbon));
  border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.95);
  transform: translateY(18px) scale(.98); transition: transform .5s var(--ease);
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-scroll { max-height: 88vh; overflow-y: auto; padding: clamp(32px, 5vw, 56px); }
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 2rem; line-height: 1; color: var(--ivoire-soft); z-index: 2; transition: color .3s; }
.modal-close:hover { color: var(--or); }
.modal-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; margin-bottom: 28px; }
.modal-scroll h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or); font-weight: 500; margin: 30px 0 10px; }
.modal-scroll p { color: var(--ivoire-soft); font-size: 0.96rem; line-height: 1.75; }
.modal-scroll a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.modal-scroll strong { color: var(--ivoire); font-weight: 400; }
.modal-foot { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 0.8rem !important; color: var(--muted) !important; }

/* Custom scrollbar inside modal */
.modal-scroll::-webkit-scrollbar { width: 8px; }
.modal-scroll::-webkit-scrollbar-thumb { background: var(--or-fonce); border-radius: 8px; }
.modal-scroll::-webkit-scrollbar-track { background: transparent; }

body.no-scroll { overflow: hidden; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-call { display: none; }
  .nav-toggle { display: flex; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-media { max-width: 560px; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { max-width: 620px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .fab-call { display: inline-flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; }
  .g-big { grid-column: span 2; grid-row: span 2; }
  .hero-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { content: none; }
  .stat { border-top: 1px solid var(--line-soft); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .cta-band { background-attachment: scroll; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-content { padding-top: 120px; }
}

@media (max-width: 420px) {
  .container { padding: 0 20px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .feature-media:hover img, .g-item:hover img { transform: none; }
}
