/* ============================================
   Maison Chevalier Prestige - Custom Styles
   Style: Minuit - Or - Creme
   ============================================ */

:root {
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  --font-heading-sc: 'Cormorant SC', Georgia, serif;
  --font-body:       Lato, Arial, sans-serif;
  --or:              #c8a96e;
  --or-dark:         #8a7040;
  --minuit:          #0d1b2e;
  --ardoise:         #2c2c2c;
  --gris:            #6b6b6b;
  --creme:           #f7f3ee;
  --border:          #e8e0d8;
  --color-or:        #c8a96e;
  --color-minuit:    #0d1b2e;
  --color-border:    #e8e0d8;
  --color-creme:     #f7f3ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ardoise);
  background: var(--creme);
  margin: 0;
}
h1, h2 { font-family: var(--font-heading); font-weight: 300; }
h3, h4 { font-family: var(--font-heading-sc); }

/* Header offset */
main { padding-top: 96px; }
main:has(.hero-split), main:has(.hero-section) { padding-top: 0; }
@media (min-width: 1024px) { main { padding-top: 112px; } main:has(.hero-split), main:has(.hero-section) { padding-top: 0; } }

/* Navigation */
.nav-link {
  color: var(--gris);
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.875rem;
  right: 0.875rem;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-link:hover { color: var(--ardoise); }
.nav-link:hover::after { transform: scaleX(1); }

/* Header scrolled state */
header.header-scrolled {
  border-bottom-color: var(--or) !important;
  box-shadow: 0 4px 32px rgba(13,27,46,0.12);
}

.cta-button {
  background: var(--minuit);
  color: white;
  padding: 0.65rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  display: inline-block;
}
.cta-button:hover { background: var(--or); color: var(--minuit); }

.mobile-nav-link {
  display: block;
  color: var(--gris);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}
.mobile-nav-link:hover { color: var(--ardoise); }
.mobile-nav-cta {
  display: block;
  background: var(--minuit);
  color: white;
  padding: 0.875rem 1.25rem;
  margin-top: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  font-size: 0.8rem;
  text-decoration: none;
}

/* Footer */
.footer-link { color: #6b7280; font-size: 0.875rem; transition: color 0.2s; text-decoration: none; }
.footer-link:hover { color: var(--or); }
.footer-link-small { color: #4b5563; font-size: 0.75rem; transition: color 0.2s; text-decoration: none; }
.footer-link-small:hover { color: #9ca3af; }

/* Formulaire */
.form-label {
  display: block;
  font-family: var(--font-heading-sc);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ardoise);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ardoise);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.12);
}
.form-input::placeholder { color: #b0a898; font-weight: 300; }

/* Submit button */
.demande-button {
  background: var(--minuit);
  color: white;
  border: 1px solid var(--minuit);
  cursor: pointer;
  font-family: var(--font-body);
}
.demande-button:hover {
  background: transparent;
  color: var(--minuit);
}

/* Section Hero */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--minuit);
  padding-top: 80px;
}
@media (min-width: 1024px) {
  .hero-section { padding-top: 96px; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,46,0.85) 0%, rgba(13,27,46,0.55) 55%, rgba(200,169,110,0.08) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-year {
  font-family: var(--font-heading);
  font-size: clamp(8rem, 22vw, 18rem);
  color: var(--or);
  opacity: 0.06;
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-weight: 300;
}

/* Hero Split Screen */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  margin-top: -96px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-split { margin-top: -112px; }
}
.hero-split-left {
  background: var(--minuit);
  display: flex;
  align-items: center;
  padding: 7rem 3rem 2rem;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}
.hero-split-right {
  position: relative;
  overflow: hidden;
}
.hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(1.1);
}
.hero-split::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--color-or), transparent);
  z-index: 10;
}
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh 1fr;
    height: auto;
    max-height: none;
    margin-top: -96px;
  }
  .hero-split::after { display: none; }
  .hero-split-left { padding: 2rem 1.5rem 3rem; }
  .hero-split-right { order: -1; }
}

/* Hero line reveal animation */
.hero-line-wrapper {
  overflow: hidden;
  display: block;
}
.hero-line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.hero-line.revealed {
  transform: translateY(0);
  opacity: 1;
}

/* Logo appear */
header .logo-img {
  opacity: 0;
  animation: logoAppear 1.2s ease 0.5s forwards;
}
@keyframes logoAppear {
  to { opacity: 1; }
}

/* Gold decorative line */
.or-line { width: 3rem; height: 1px; background: var(--or); }
.or-line-lg { width: 6rem; height: 1px; background: var(--or); }

/* Vehicle cards */
.vehicle-card {
  background: white;
  transition: transform 0.4s, box-shadow 0.4s;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(13,27,46,0.08);
}
.vehicle-card img,
.mega-vehicle-card img,
.section-minuit .vehicle-card img {
  object-position: center 80%;
}
.vehicle-card .vehicle-surname {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.vehicle-card:hover .vehicle-surname {
  opacity: 1;
  transform: translateY(0);
}

/* Review stars */
.stars { color: var(--or); letter-spacing: 0.08em; }

/* Alternating sections */
.section-minuit { background: var(--minuit); color: white; }
.section-creme  { background: var(--creme); }
.section-blanc  { background: white; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.delay-150 { animation-delay: 0.15s; }
.delay-300 { animation-delay: 0.3s; }
.delay-450 { animation-delay: 0.45s; }

/* Cookie bar */
#cookie-bar { transition: transform 0.3s ease; }
#cookie-bar.hidden { display: none; }

/* Scale subtle pour images */
.scale-103 { transform: scale(1.03); }

/* == Mega-menu == */
.mega-menu {
  display: none;
  z-index: 100;
}
.mega-menu-trigger:hover .mega-menu,
.mega-menu-trigger:focus-within .mega-menu {
  display: grid;
}
.mega-vehicle-card,
.mega-service-card {
  display: block;
  padding: 0.5rem;
  transition: background 0.2s;
  border-radius: 2px;
  text-decoration: none;
}
.mega-vehicle-card:hover,
.mega-service-card:hover {
  background: var(--creme);
}

/* == Review badge == */
.review-badge {
  border-radius: 2px;
  white-space: nowrap;
}

/* == Booking widget 2 steps == */
.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris);
  font-size: 0.7rem;
  transition: all 0.3s;
  font-family: var(--font-heading-sc);
  letter-spacing: 0.05em;
}
.step-indicator.active {
  background: var(--minuit);
  border-color: var(--minuit);
  color: white;
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* == Service photo cards == */
.service-photo-card {
  display: block;
  background: white;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  text-decoration: none;
}
.service-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(13,27,46,0.08);
}
.service-card-body {
  padding: 1.5rem;
}

/* == Editorial grid == */
.editorial-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 260px 260px 260px 260px;
  gap: 4px;
}
.editorial-card {
  position: relative;
  overflow: hidden;
  margin: 0;
}
/* Card 1: Pont Alexandre - large left, rows 1-2 */
.editorial-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
/* Card 2: Le Bourget - small right top */
.editorial-card:nth-child(2) { grid-column: 2; grid-row: 1; }
/* Card 3: Opéra - small right bottom */
.editorial-card:nth-child(3) { grid-column: 2; grid-row: 2; }
/* Card 4: Chauffeur - large left, rows 3-4 */
.editorial-card:nth-child(4) { grid-column: 1; grid-row: 3 / 5; }
/* Card 5: S-Class - large right, rows 3-4 */
.editorial-card:nth-child(5) { grid-column: 2; grid-row: 3 / 5; }

.editorial-card img {
  object-position: center 60%;
}
.editorial-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(13,27,46,0.75));
}
@media (max-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 240px;
  }
  .editorial-card:nth-child(1),
  .editorial-card:nth-child(2),
  .editorial-card:nth-child(3),
  .editorial-card:nth-child(4),
  .editorial-card:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* == Trust band == */
.trust-item {
  padding: 0.75rem 0;
  position: relative;
}
.trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

/* == Showroom fullscreen == */
.showroom-slide {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.showroom-slide.active {
  opacity: 1;
  pointer-events: all;
}
.showroom-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}
.showroom-info {
  position: absolute;
  bottom: 10%;
  left: 8%;
  z-index: 2;
}
.showroom-nav {
  position: fixed;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.showroom-nav-dot {
  width: 2px;
  height: 24px;
  background: rgba(200,169,110,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.showroom-nav-dot.active {
  height: 40px;
  background: var(--color-or);
}

/* == Horizontal timeline == */
.timeline-scroll-wrapper {
  overflow: hidden;
  position: relative;
  cursor: grab;
}
.timeline-scroll-wrapper:active {
  cursor: grabbing;
}
/* Fade edges to hint scrollable content */
.timeline-fade-wrapper {
  position: relative;
}
.timeline-fade-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--color-minuit));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}
.timeline-fade-wrapper.scroll-end::after {
  opacity: 0;
}
.timeline-horizontal {
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding: 1rem 0;
}
.timeline-event {
  width: 300px;
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-left: 1px solid rgba(200,169,110,0.3);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(200,169,110,0.15);
  line-height: 1;
  margin-bottom: -1.5rem;
}
.timeline-event-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  color: white;
  margin-bottom: 1rem;
}


/* == Vehicle gallery == */
.vehicle-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 70vh;
  min-height: 400px;
}
.vehicle-gallery .gallery-main {
  grid-row: 1 / -1;
  overflow: hidden;
}
.vehicle-gallery .gallery-thumb {
  overflow: hidden;
}
.vehicle-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transition: transform 0.7s;
}
.vehicle-gallery .gallery-main img {
  object-position: center 80%;
}
.vehicle-gallery img:hover {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .vehicle-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 120px;
    height: auto;
    gap: 3px;
  }
  .vehicle-gallery .gallery-main {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .vehicle-gallery .gallery-thumb {
    grid-column: auto;
  }
}

/* == Specs grid == */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}
.spec-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
}

/* == Scroll snap showroom == */
@supports (scroll-snap-type: y mandatory) {
  body.page-flotte {
    scroll-snap-type: y mandatory;
  }
  .showroom-slide {
    scroll-snap-align: start;
  }
}

/* == Responsive == */
@media (max-width: 640px) {
  .hero-split-left { padding: 1.25rem; }
}

/* == Large screens hero == */
@media (min-width: 1024px) and (max-height: 900px) {
  .hero-split-left { padding-top: 7rem; padding-bottom: 1.5rem; }
}
@media (min-width: 1024px) and (min-height: 901px) {
  .hero-split-left { padding-top: 8rem; }
}
