﻿
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap");

@font-face {
  font-family: "Boston Angel";
  src: url("assets/boston-angel-regular.otf?v=20260816") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --burgundy: #630000;
  --ink: #ebe3dd;
  --muted: #d7cec7;
  --paper: #1f1e1e;
  --soft: #1f1e1e;
  --line: #77716c;
  --dark: #1f1e1e;
  --panel: #2a2828;
  --panel-strong: #242222;
  --gold: #ebe3dd;
  --font-main: "Montserrat", Helvetica, Arial, sans-serif;
  --control-radius: 6px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::after {
  content: "";
  display: block;
  width: clamp(70px, 7vw, 104px);
  aspect-ratio: 1;
  margin: 28px auto 34px;
  background: url("assets/heritage-crest.png") center / contain no-repeat;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* VERSION PC / TABLETTE: styles par defaut. */

b,
strong {
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 clamp(16px, 2.6vw, 42px);
  color: var(--ink);
  background: var(--burgundy);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(45, 45, 45, 0.16);
  transition: none;
}

.home-page .site-header,
.page-site-header {
  background: var(--burgundy);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(45, 45, 45, 0.16);
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.mobile-menu-toggle {
  display: none;
}

.main-nav {
  grid-column: 2;
  justify-self: end;
  justify-content: flex-end;
  transform: translateX(-38px);
}

.main-nav a,
.nav-item > a,
.nav-trigger {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.nav-item {
  position: relative;
}

.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 18px;
}

.has-dropdown > a,
.has-dropdown > .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown > a::after,
.has-dropdown > .nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.has-dropdown:hover > a::after,
.has-dropdown:hover > .nav-trigger::after,
.has-dropdown:focus-within > a::after,
.has-dropdown:focus-within > .nav-trigger::after,
.has-dropdown.is-open > a::after,
.has-dropdown.is-open > .nav-trigger::after {
  opacity: 1;
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 25;
  display: grid;
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(99, 0, 0, 0.2);
  border-radius: var(--control-radius);
  background: rgba(235, 227, 221, 0.7);
  box-shadow: 0 18px 46px rgba(45, 45, 45, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: var(--control-radius);
  color: var(--burgundy);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--burgundy);
  color: var(--ink);
  outline: 0;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 4px 0;
}

.brand img {
  display: block;
  width: min(253px, 19.8vw);
  min-width: 174px;
  height: auto;
}

.header-actions {
  grid-column: 3;
  justify-content: flex-end;
  justify-self: end;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(322px, 21.5vw);
  min-width: 192px;
  height: 38px;
  padding: 0 5px 0 12px;
  border-radius: var(--control-radius);
  background: rgba(99, 0, 0, 0.38);
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}

.search:hover,
.search:focus-within {
  background: rgba(235, 227, 221, 0.52);
  color: var(--burgundy);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.search input::placeholder {
  color: currentColor;
  opacity: 0.82;
}

.search-submit {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--control-radius);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.search-submit:hover,
.search-submit:focus-visible {
  background: rgba(235, 227, 221, 0.28);
  outline: 0;
}

.search-results-modal {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 38px);
  background: rgba(31, 30, 30, 0.68);
}

.search-results-modal.is-open {
  display: flex;
}

.search-results-panel {
  width: min(820px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(31, 30, 30, 0.54);
}

.search-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.search-results-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.15;
}

.search-results-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: var(--burgundy);
  color: var(--ink);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.search-results-close:hover,
.search-results-close:focus-visible {
  background: var(--ink);
  color: var(--burgundy);
  outline: 0;
}

.search-results-count,
.search-results-empty {
  margin: 0;
  color: var(--muted);
}

.search-results-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 16px;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(235, 227, 221, 0.24);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.search-result-card:hover,
.search-result-card:focus-visible {
  border-color: rgba(235, 227, 221, 0.7);
  background: var(--panel-strong);
  outline: 0;
  transform: translateY(-1px);
}

.search-result-card img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.search-result-content {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px 14px 0;
}

.search-result-content strong {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.search-result-details {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.search-result-price {
  color: var(--ink);
  font-size: 0.92rem;
}

.search-results-empty {
  margin-top: 14px;
}

.language {
  min-height: 38px;
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  padding: 0 12px;
  background: rgba(99, 0, 0, 0.38);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.language:hover,
.language:focus-visible {
  border-color: rgba(235, 227, 221, 0.52);
  background: rgba(235, 227, 221, 0.52);
  color: var(--burgundy);
  outline: 0;
}

.language-switcher {
  position: relative;
  display: inline-flex;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: none;
  min-width: 74px;
  padding: 6px;
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: rgba(31, 30, 30, 0.78);
  box-shadow: 0 18px 46px rgba(45, 45, 45, 0.28);
}

.language-switcher.is-open .language-menu {
  display: grid;
  gap: 4px;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-radius: var(--control-radius);
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.language-flag {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 14px;
  object-fit: contain;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  background: rgba(235, 227, 221, 0.52);
  color: var(--burgundy);
  outline: 0;
}

.hero {
  --hero-original-height: 100vh;
  --hero-original-height: 100svh;
  position: relative;
  height: calc(var(--hero-original-height) * 0.7);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(112px, 14vh, 156px) clamp(16px, 2.6vw, 42px) clamp(70px, 10vh, 110px);
  color: var(--ink);
  background: var(--paper);
}

.hero::before {
  /* Use the full-height homepage composition prepared for this area. */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/wallpaper bandeau.png?v=20261116-original") center center / cover no-repeat;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/wallpaper bandeau.png?v=20261116-original") center center / cover no-repeat;
  filter: saturate(0.8) brightness(0.72) blur(8px);
  transform: scale(1.04);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* Preserve the text position independently of the background crop. */
  translate: 0 calc(var(--hero-original-height) * 0.15);
  width: min(540px, 42vw);
  padding-top: clamp(8px, 2vh, 24px);
  text-align: left;
  transform: translate(38px, calc(-7vh - 38px));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--font-main);
  font-size: clamp(2.7rem, 5.8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-content h1.hero-logo-title {
  display: block;
  font-family: "Boston Angel";
  font-size: clamp(1.85rem, 3.93vw, 4rem);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.02em;
  line-height: 0.94;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-logo-main {
  width: min(100%, clamp(220px, 27vw, 420px));
  height: auto;
}

.hero-logo-sub {
  font-family: "Boston Angel";
  font-size: clamp(0.56rem, 0.92vw, 0.92rem);
  letter-spacing: 0.08em;
  line-height: 1;
  padding-left: 0.08em;
}

.hero-selection-statement {
  margin: 24px 0 0;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(235, 227, 221, 0.6);
  border-radius: 16px;
  background: rgba(235, 227, 221, 0.86);
  color: var(--paper);
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  font-style: italic;
  line-height: 1.65;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.85vw, 1.72rem);
  line-height: 1.02;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 62px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--burgundy);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  color: var(--burgundy);
  outline: 0;
}

.button.primary {
  background: var(--burgundy);
  color: var(--ink);
}

.hero-content .button.primary {
  background: rgba(99, 0, 0, 0.7);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--ink);
  color: var(--burgundy);
}

.hero-content .button.primary:hover,
.hero-content .button.primary:focus-visible {
  background: rgba(235, 227, 221, 0.7);
  color: var(--burgundy);
}

.button span {
  font-size: 1.5rem;
  line-height: 1;
}

.intro-section,
.services,
.listings-section,
.contact-section {
  padding: 84px clamp(20px, 6vw, 96px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  background: var(--soft);
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 4.2vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p:last-child,
.vehicle-info p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: var(--line);
}

.services article {
  min-height: 220px;
  padding: 38px;
  background: var(--panel);
}

.services span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: var(--font-main);
  font-size: 2rem;
}

.services p,
.vehicle-info p,
.contact-section p {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 38px;
}

.home-listings {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 76px;
  padding-top: 46px;
  background: var(--ink);
  color: var(--burgundy);
}

.home-listings .section-kicker {
  color: var(--burgundy);
}

.home-listings h2 {
  color: var(--paper);
  font-size: clamp(1.65rem, 3.15vw, 3.2rem);
}

.home-listings-carousel {
  position: relative;
}

.home-listings .vehicle-grid {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-right: clamp(56px, 6vw, 82px);
}

.home-listings .vehicle-grid::-webkit-scrollbar {
  display: none;
}

.home-listings .vehicle-card {
  flex: 0 0 calc((100% - 78px) / 4);
  min-width: 0;
  border: 1px solid rgba(31, 30, 30, 0.36);
  background: var(--ink);
  color: var(--paper);
  scroll-snap-align: start;
}

.home-listings .vehicle-info,
.home-listings .vehicle-info p,
.home-listings .vehicle-type,
.home-listings .vehicle-title h3,
.home-listings .vehicle-title a,
.home-listings .vehicle-title strong,
.home-listings .vehicle-title .price,
.home-listings .vehicle-info > .price {
  color: var(--paper);
}

.stock-listings {
  background: var(--ink);
  color: var(--paper);
}

.listings-section.stock-listings {
  padding-top: 34px;
}

.stock-listings h2 {
  color: var(--paper);
  font-size: clamp(1.65rem, 3.15vw, 3.2rem);
}

.stock-page .stock-hero-heading {
  margin: 0;
}

.stock-page .stock-hero-heading h2 {
  color: var(--ink);
  font-size: clamp(1.65rem, 3.15vw, 3.2rem);
}

.stock-listings .vehicle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stock-listings .vehicle-card {
  border: 1px solid rgba(31, 30, 30, 0.36);
  background: var(--ink);
  color: var(--paper);
}

.stock-listings .vehicle-info,
.stock-listings .vehicle-info p,
.stock-listings .vehicle-title h3,
.stock-listings .vehicle-title a,
.stock-listings .vehicle-title strong,
.stock-listings .vehicle-title .price,
.stock-listings .vehicle-info > .price {
  color: var(--paper);
}

.stock-legal-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px clamp(20px, 6vw, 96px);
  background: var(--dark);
  color: var(--ink);
}

.stock-legal-band p {
  max-width: none;
  margin: 0;
  color: rgba(235, 227, 221, 0.72);
}

.stock-legal-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: min(360px, 32vw);
  text-align: right;
}

.stock-legal-actions p {
  color: var(--muted);
}

.pagode-legal-band {
  background: var(--ink);
  color: var(--paper);
}

.pagode-legal-band p {
  color: rgba(31, 30, 30, 0.72);
}

.pagode-legal-band .stock-legal-actions p {
  color: rgba(31, 30, 30, 0.58);
}

.vehicle-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 64px;
  border: 1px solid rgba(235, 227, 221, 0.34);
  border-radius: var(--control-radius);
  background: rgba(99, 0, 0, 0.86);
  color: var(--ink);
  cursor: pointer;
  font: 400 2.25rem/1 var(--font-main);
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.vehicle-carousel-arrow-prev {
  left: clamp(10px, 1.7vw, 24px);
  right: auto;
  opacity: 0;
  pointer-events: none;
}

.vehicle-carousel-arrow-prev.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.vehicle-carousel-arrow-next {
  left: auto;
  right: clamp(10px, 1.7vw, 24px);
}

.vehicle-carousel-arrow:hover,
.vehicle-carousel-arrow:focus-visible {
  border-color: rgba(99, 0, 0, 0.34);
  background: rgba(235, 227, 221, 0.88);
  color: var(--burgundy);
  outline: 0;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.vehicle-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  transition: opacity 0.3s ease, transform 0.34s ease;
}

.vehicle-card:hover img {
  opacity: 0.92;
  transform: scale(1.04);
}

.vehicle-image-link {
  display: block;
  overflow: hidden;
}

.vehicle-title a:hover {
  color: var(--burgundy);
}

.vehicle-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.vehicle-info > p {
  margin-bottom: 18px;
}

.vehicle-type {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vehicle-title {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.vehicle-title h3 {
  margin-bottom: 0;
  font-family: var(--font-main);
  font-size: 1.55rem;
  font-weight: 400;
}

.vehicle-title strong,
.vehicle-title .price,
.vehicle-info > .price {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.vehicle-info > .price {
  display: block;
  margin-top: auto;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.94fr);
  gap: 22px 48px;
  align-items: start;
  scroll-margin-top: 88px;
  background: var(--dark);
  color: var(--ink);
}

.contact-copy {
  grid-column: 1;
  grid-row: 1;
}

.home-page .contact-form {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 80%;
}

.contact-section p {
  max-width: 620px;
  color: rgba(235, 227, 221, 0.72);
}

.contact-section h2 {
  font-size: clamp(1.65rem, 3.15vw, 3.2rem);
}

address {
  display: grid;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(235, 227, 221, 0.22);
  font-style: normal;
}

.contact-details {
  margin-top: 28px;
  width: 100%;
}

address span:first-child {
  font-weight: 400;
}

address a,
address .contact-email {
  color: var(--ink);
}

.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 56px clamp(20px, 6vw, 96px) 64px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
}

.footer-legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(99, 0, 0, 0.72);
  border-radius: var(--control-radius);
  background: var(--burgundy);
  color: var(--ink);
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.footer-legal-button:hover,
.footer-legal-button:focus-visible {
  background: var(--ink);
  color: var(--burgundy);
  border-color: rgba(235, 227, 221, 0.72);
  outline: 0;
}

.legal-content {
  display: grid;
  gap: 26px;
  padding: 48px clamp(20px, 8vw, 140px) 72px;
  background: var(--soft);
}

.legal-block {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--panel);
}

.legal-block h2,
.legal-block h3,
.legal-block p {
  margin-bottom: 0;
}

.legal-block h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.legal-block h3 {
  margin-top: 8px;
  color: var(--gold);
  font-size: 1rem;
}

.legal-block p {
  color: var(--muted);
}

.legal-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
}

.legal-block a {
  color: var(--ink);
}

.services-content {
  display: grid;
  gap: 26px;
  padding: 48px clamp(20px, 8vw, 140px) 72px;
  background: var(--ink);
  color: var(--paper);
}

.service-block {
  scroll-margin-top: 88px;
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(31, 30, 30, 0.36);
  border-radius: var(--control-radius);
  background: var(--ink);
  color: var(--paper);
}

.service-block h2,
.service-block p {
  margin-bottom: 0;
}

.service-block p {
  max-width: 920px;
  color: var(--paper);
}

.services-content .section-kicker {
  color: var(--paper);
}

.service-block .button {
  justify-self: start;
  margin-top: 10px;
}

.arrival-content {
  display: grid;
  gap: 26px;
  padding: 48px clamp(20px, 8vw, 140px) 72px;
  background: var(--ink);
  color: var(--paper);
}

.arrival-content > div {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(31, 30, 30, 0.36);
  border-radius: var(--control-radius);
  background: var(--ink);
}

.arrival-content h2,
.arrival-content p {
  margin-bottom: 0;
  color: var(--paper);
}

.arrival-content p {
  max-width: 920px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 48px clamp(20px, 8vw, 140px) 72px;
  background: var(--ink);
  color: var(--paper);
}

.about-block {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(31, 30, 30, 0.36);
  border-radius: var(--control-radius);
  background: var(--ink);
}

.about-block .section-kicker {
  margin: 0;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-block h2,
.about-block h3,
.about-block p {
  margin: 0;
  color: var(--paper);
}

.about-block h2 {
  max-width: 920px;
}

.about-block h3 {
  max-width: 920px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 30, 30, 0.24);
  color: var(--burgundy);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.about-block p:not(.section-kicker) {
  max-width: 920px;
  color: var(--paper);
}

.about-closing {
  margin-top: 0 !important;
}

.about-founder {
  padding: clamp(28px, 4vw, 48px);
}

.about-founder-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.about-founder-portrait {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--control-radius);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.25);
}

.about-founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-founder-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding-bottom: 0;
}

.arrival-content .button {
  justify-self: start;
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(235, 227, 221, 0.22);
  background: rgba(235, 227, 221, 0.06);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: rgba(235, 227, 221, 0.86);
  font-size: 0.92rem;
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(235, 227, 221, 0.2);
  border-radius: var(--control-radius);
  padding: 10px 12px;
  background: rgba(77, 77, 77, 0.72);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(235, 227, 221, 0.22);
}

.contact-form option {
  background: var(--panel-strong);
  color: var(--ink);
}

.form-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  color: rgba(235, 227, 221, 0.74);
  font-size: 0.86rem;
  font-weight: 400;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 3px;
  accent-color: var(--ink);
}

.button.form-submit {
  justify-self: start;
  min-width: 170px;
  background: var(--burgundy);
  color: var(--ink);
  cursor: pointer;
}

.button.form-submit:hover {
  background: var(--ink);
  color: var(--burgundy);
}

.button.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
}

.form-alert {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(235, 227, 221, 0.42);
  border-radius: var(--control-radius);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
}

.form-alert.is-visible {
  display: block;
}

.form-status.is-success {
  color: var(--ink);
}

.form-status.is-error {
  color: var(--ink);
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(77, 77, 77, 0.82);
}

.contact-popup.is-open {
  display: flex;
}

.contact-popup-panel {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: var(--panel);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 28px 80px rgba(77, 77, 77, 0.58);
}

.contact-popup-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: var(--burgundy);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.contact-popup-close:hover,
.contact-popup-close:focus-visible {
  background: var(--ink);
  color: var(--burgundy);
  outline: 0;
}

.test-entry {
  display: flex;
  justify-content: center;
  padding: 42px clamp(20px, 6vw, 96px);
  background: var(--paper);
}

.button.test-link {
  min-width: 160px;
  background: var(--burgundy);
  color: var(--ink);
}

.button.test-link:hover {
  background: var(--ink);
  color: var(--burgundy);
}

.detail-page {
  background: var(--soft);
}

.detail-hero {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 82px clamp(20px, 6vw, 96px) 28px;
  background-color: var(--burgundy);
  background-image: url("assets/cuir.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--ink);
}

.detail-page:not(.legal-page) .detail-hero {
  background-image: url("assets/hero-wallpaper.png?v=20261116-original");
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(31, 30, 30, 0.38);
}

.detail-page:not(.legal-page) .detail-hero::after {
  background: rgba(31, 30, 30, 0.56);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
}

.detail-hero-content h1 {
  display: none;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  white-space: nowrap;
}

.stock-hero-title {
  margin-left: 0;
}

.stock-hero-title h1 {
  margin-bottom: 0;
}

.stock-hero-crest {
  position: absolute;
  top: 18px;
  right: clamp(22px, 4vw, 72px);
  z-index: 2;
  width: clamp(132px, 14vw, 230px);
  height: auto;
}

.detail-hero-content p:last-child {
  margin-bottom: 0;
  color: rgba(235, 227, 221, 0.86);
  font-size: 1.22rem;
  font-weight: 400;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 48px;
  align-items: start;
  padding: 38px clamp(20px, 6vw, 96px) 44px;
}

.mercedes-pagode-page .page-site-header {
  background: rgba(99, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(45, 45, 45, 0.14);
}

.mercedes-pagode-page .detail-content {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  padding-top: 124px;
}

.pagode-listing-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 3.6rem);
}

.featured-photo-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.86fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
  border-radius: var(--control-radius);
}

.featured-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.featured-photo-main-frame {
  position: relative;
  grid-row: span 2;
  min-height: 0;
  overflow: hidden;
}

.featured-photo-main {
  display: block;
  aspect-ratio: 16 / 9;
}

.featured-photo-more {
  position: relative;
  min-height: 0;
}

.photo-more-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  height: 34px;
  border: 1px solid rgba(235, 227, 221, 0.38);
  border-radius: var(--control-radius);
  padding: 0 10px;
  background: rgba(31, 30, 30, 0.64);
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.gallery-page-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 42px;
  border: 1px solid rgba(235, 227, 221, 0.38);
  border-radius: var(--control-radius);
  padding: 0 14px;
  background: rgba(31, 30, 30, 0.78);
  color: var(--ink);
  font-size: 0.88rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.gallery-page-link:hover,
.gallery-page-link:focus-visible {
  border-color: rgba(99, 0, 0, 0.34);
  background: rgba(235, 227, 221, 0.88);
  color: var(--burgundy);
  outline: 0;
}

.mobile-photo-dots {
  display: none;
}

.mobile-photo-arrow {
  display: none;
}

.photo-more-button:hover,
.photo-more-button:focus-visible {
  border-color: rgba(99, 0, 0, 0.34);
  background: rgba(235, 227, 221, 0.88);
  color: var(--burgundy);
  outline: 0;
}

.photo-more-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
}

.mercedes-pagode-page .detail-summary {
  margin-top: 34px;
}

.mercedes-pagode-page .detail-specs {
  display: grid;
  gap: 26px;
  min-height: 430px;
}

.mercedes-pagode-page .detail-specs div:first-child {
  border-top: 0;
}

.spec-heritage-crest {
  justify-self: center;
  width: auto;
  height: 99px;
  object-fit: contain;
}

.vehicle-price-card {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 60%;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--control-radius);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.vehicle-price-card strong {
  display: block;
  width: 100%;
  color: var(--burgundy);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.interest-button {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  gap: 0;
  cursor: pointer;
}

.vehicle-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: clamp(18px, 4vw, 46px);
  background: rgba(31, 30, 30, 0.58);
}

.vehicle-gallery-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.vehicle-gallery-panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-radius: var(--control-radius);
  padding: clamp(22px, 3.2vw, 42px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 26px 80px rgba(31, 30, 30, 0.48);
}

.vehicle-gallery-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  background: var(--ink);
}

.vehicle-gallery-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
}

.vehicle-gallery-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: var(--control-radius);
  padding: 0 12px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.vehicle-gallery-close span:last-child {
  font-size: 0.9rem;
}

.vehicle-gallery-close:hover,
.vehicle-gallery-close:focus-visible {
  background: var(--burgundy);
  color: var(--ink);
  outline: 0;
}

.vehicle-interest-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 34px);
  background: rgba(31, 30, 30, 0.68);
}

.vehicle-interest-modal.is-open {
  display: flex;
}

.vehicle-interest-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: clamp(22px, 3.5vw, 38px);
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(31, 30, 30, 0.54);
}

.vehicle-interest-panel h2 {
  margin: 0 52px 20px 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.vehicle-interest-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(235, 227, 221, 0.28);
  border-radius: var(--control-radius);
  background: var(--burgundy);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.vehicle-interest-close:hover,
.vehicle-interest-close:focus-visible {
  background: var(--ink);
  color: var(--burgundy);
  outline: 0;
}

.vehicle-interest-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.vehicle-interest-form input[readonly] {
  opacity: 0.86;
}

.detail-main {
  min-width: 0;
}

.detail-summary h2 {
  margin-bottom: 16px;
}
.detail-summary p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-specs {
  align-self: start;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.detail-specs h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.detail-specs dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-specs div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.detail-specs dt {
  color: var(--muted);
  font-weight: 400;
}

.detail-specs dd {
  margin: 0;
  text-align: right;
}

.gallery-section {
  padding: 0 clamp(20px, 6vw, 96px) 92px;
}

.gallery-page-content {
  padding: 128px clamp(20px, 6vw, 96px) 78px;
  background: var(--ink);
  color: var(--paper);
}

.gallery-page-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.gallery-page-heading h1 {
  color: var(--paper);
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 1.08;
  white-space: normal;
}

.gallery-back-link {
  justify-self: start;
  color: var(--burgundy);
  font-size: 0.9rem;
}

.gallery-back-link:hover,
.gallery-back-link:focus-visible {
  color: var(--paper);
  outline: 0;
}

.gallery-page-grid {
  cursor: pointer;
}

.detail-main .gallery-section {
  padding: 18px 0 0;
}

.detail-main .gallery-section .section-heading {
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-strong);
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-grid img:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.gallery-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

.vehicle-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-gallery-grid img:first-child {
  grid-column: auto;
  grid-row: auto;
  height: auto;
}

.vehicle-gallery-grid img:nth-child(3n) {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(77, 77, 77, 0.92);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 28px 80px rgba(77, 77, 77, 0.58);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(46px, 5vw, 70px);
  height: clamp(46px, 5vw, 70px);
  border: 1px solid rgba(235, 227, 221, 0.38);
  border-radius: var(--control-radius);
  background: var(--burgundy);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  background: var(--ink);
  color: var(--burgundy);
  border-color: rgba(235, 227, 221, 0.72);
  outline: 0;
}

.lightbox-arrow-prev {
  left: clamp(16px, 4vw, 54px);
}

.lightbox-arrow-next {
  right: clamp(16px, 4vw, 54px);
}

/* TABLETTE / PETITS ECRANS PC. */
@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
  }

  .brand img {
    width: min(231px, 30.8vw);
    min-width: 165px;
    height: auto;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
    justify-self: end;
    width: 100%;
  }

  .nav-dropdown {
    top: calc(100% + 8px);
  }

  .search {
    width: min(380px, 70vw);
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-listings .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-listings .vehicle-card {
    flex-basis: calc((100% - 26px) / 2);
  }

  .hero {
    padding-top: 150px;
  }
}

@media (max-width: 860px) {
  .intro-section,
  .services,
  .vehicle-grid,
  .contact-section,
  .form-row,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-listings .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .stock-legal-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stock-legal-actions {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .mercedes-pagode-page .detail-content {
    gap: 30px;
  }

  .featured-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .featured-photo-main {
    grid-row: auto;
  }

  .featured-photo-grid img {
    aspect-ratio: 16 / 10;
  }

  .home-page .contact-form {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    order: 2;
  }

  .contact-copy {
    display: contents;
  }

  .contact-intro {
    order: 1;
  }

  .contact-details {
    order: 3;
    margin-top: 0;
  }
}

/* VERSION TELEPHONE: reference iPhone 16 Pro, 402 x 874 px CSS. */
@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  body::after {
    width: 58px;
    margin: 18px auto 24px;
  }

  .site-header {
    position: fixed;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 5px;
    min-height: 0;
    padding: 6px 14px 8px;
    background: var(--burgundy);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(31, 30, 30, 0.2);
  }

  .home-page .site-header,
  .page-site-header {
    background: var(--burgundy);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(31, 30, 30, 0.2);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    padding: 0;
  }

  .brand img {
    width: clamp(136px, 38.5vw, 158px);
    min-width: 0;
    height: auto;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 38px;
    height: 34px;
    place-content: center;
    border: 0;
    border-radius: var(--control-radius);
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .header-actions {
    display: contents;
  }

  .search {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 34px;
    gap: 4px;
    padding: 0 4px 0 8px;
  }

  .search input {
    min-width: 0;
    font-size: 0.82rem;
  }

  .search-submit {
    width: 28px;
    height: 28px;
    font-size: 1.08rem;
  }

  .search-results-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .search-results-panel {
    width: 100%;
    max-height: calc(100svh - 20px);
    padding: 16px;
  }

  .search-results-header {
    gap: 12px;
  }

  .search-results-header h2 {
    font-size: clamp(1.18rem, 5.2vw, 1.45rem);
  }

  .search-results-close {
    width: 36px;
    height: 36px;
  }

  .search-result-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
  }

  .search-result-card img {
    min-height: 96px;
  }

  .search-result-content {
    gap: 4px;
    padding: 10px 10px 10px 0;
  }

  .search-result-content strong {
    font-size: 0.92rem;
  }

  .search-result-details,
  .search-result-price {
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .language {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
    display: none;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .site-header.is-mobile-menu-open .language {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-height: calc(100svh - 108px);
    display: none;
    justify-content: flex-start;
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    padding: 4px 0 0;
    transform: none;
  }

  .site-header.is-mobile-menu-open .main-nav {
    display: flex;
  }

  .main-nav > a[href*="accueil"] {
    display: none;
  }

  .main-nav a,
  .nav-item > a,
  .nav-trigger {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  .nav-trigger,
  .main-nav > a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
    padding: 0 2px;
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 4px;
    padding: 6px;
    border: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    box-shadow: none;
  }

  .has-dropdown.is-open .nav-dropdown {
    display: grid;
  }

  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown,
  .has-dropdown.is-open .nav-dropdown {
    transform: none;
  }

  .nav-dropdown a {
    min-height: 36px;
    padding: 8px 10px;
    color: var(--ink);
    font-size: 0.8rem;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a:focus-visible {
    background: transparent;
    color: var(--ink);
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.65rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.48rem, 7.1vw, 1.95rem);
    line-height: 1.08;
  }

  h3 {
    font-size: 1.06rem;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .hero {
    --hero-original-height: calc(100vh - 56px);
    --hero-original-height: calc(100svh - 56px);
    align-items: flex-end;
    padding: 100px 16px 54px;
  }

  .hero::before {
    background-position: center top;
  }

  .hero-content {
    width: 100%;
    padding-top: 0;
    transform: none;
    translate: 0 calc(var(--hero-original-height) * 0.3);
  }

  .hero-content h1.hero-logo-title {
    font-size: clamp(1.16rem, 6.1vw, 1.55rem);
    line-height: 1;
    white-space: normal;
  }

  .hero-subtitle {
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .button {
    width: 100%;
    min-height: 50px;
    gap: 14px;
    padding: 0 16px;
    font-size: 0.78rem;
  }

  .hero-content .button.primary {
    width: auto;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.7rem;
  }

  .intro-section,
  .services,
  .listings-section,
  .contact-section,
  .detail-content,
  .services-content,
  .about-content,
  .arrival-content,
  .legal-content {
    padding: 34px 16px 40px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .home-listings {
    scroll-margin-top: 108px;
    padding-top: 34px;
  }

  .home-listings .vehicle-grid {
    gap: 16px;
    padding-right: 42px;
  }

  .home-listings .vehicle-card {
    flex-basis: min(78vw, 318px);
  }

  .stock-listings .vehicle-grid,
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .vehicle-card {
    border-radius: var(--control-radius);
  }

  .vehicle-image-link {
    aspect-ratio: 4 / 3;
  }

  .vehicle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .vehicle-info {
    padding: 14px;
  }

  .vehicle-title {
    gap: 6px;
    margin-bottom: 10px;
  }

  .vehicle-title h3 {
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .vehicle-info > p {
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .vehicle-title strong,
  .vehicle-title .price,
  .vehicle-info > .price {
    font-size: 1rem;
  }

  .vehicle-carousel-arrow {
    right: 8px;
    width: 34px;
    height: 52px;
    font-size: 1.8rem;
  }

  .vehicle-carousel-arrow-prev {
    left: 8px;
  }

  .detail-page .detail-hero,
  .detail-hero {
    min-height: 204px;
    padding: 112px 16px 24px;
  }

  .detail-hero-content h1 {
    font-size: clamp(1.52rem, 7.6vw, 1.95rem);
    line-height: 1.04;
    white-space: normal;
  }

  .detail-hero-content p:last-child {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .stock-hero-title {
    margin-left: 0;
  }

  .stock-hero-crest {
    top: 18px;
    right: 14px;
    width: clamp(72px, 24vw, 108px);
  }

  .services article,
  .service-block,
  .arrival-content > div,
  .legal-block {
    min-height: auto;
    padding: 18px 16px;
  }

  .about-content {
    gap: 18px;
  }

  .about-block {
    min-height: auto;
    padding: 18px 16px;
  }

  .about-block h2 {
    font-size: 1.45rem;
  }

  .about-founder {
    padding: 18px 16px;
  }

  .about-founder-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-founder-copy {
    order: 2;
    padding-bottom: 0;
  }

  .about-founder-portrait {
    order: 1;
    max-width: none;
  }

  .about-founder-portrait img {
    width: 100%;
  }

  .service-block {
    scroll-margin-top: 116px;
  }

  .service-block .button,
  .arrival-content .button {
    justify-self: stretch;
  }

  .contact-section {
    gap: 16px;
    scroll-margin-top: 104px;
  }

  .contact-intro {
    order: 1;
  }

  .home-page .contact-form {
    order: 2;
  }

  address {
    gap: 7px;
    padding: 14px 12px;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
  }

  .contact-form {
    gap: 7px;
    padding: 10px;
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .contact-form label {
    gap: 3px;
    font-size: 0.72rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .contact-form textarea {
    min-height: 72px;
  }

  .form-consent {
    gap: 8px;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .form-consent input {
    width: 14px;
    height: 14px;
  }

  .button.form-submit {
    min-height: 36px;
    min-width: 0;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .form-alert {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .form-status {
    font-size: 0.72rem;
  }

  .site-footer {
    gap: 14px;
    padding: 36px 16px 42px;
  }

  .stock-legal-band {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px;
  }

  .stock-legal-actions {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .mercedes-pagode-page .detail-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 106px 16px 36px;
  }

  .mercedes-pagode-page .detail-main,
  .mercedes-pagode-page .detail-summary {
    display: contents;
  }

  .mercedes-pagode-page .featured-photo-grid {
    order: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    overflow: visible;
    border-radius: var(--control-radius);
  }

  .mercedes-pagode-page .featured-photo-grid > img:not(.featured-photo-main),
  .mercedes-pagode-page .featured-photo-more {
    display: none;
  }

  .mercedes-pagode-page .featured-photo-main-frame {
    grid-row: auto;
    grid-column: 1;
    overflow: hidden;
    border-radius: var(--control-radius);
  }

  .mercedes-pagode-page .featured-photo-main {
    grid-row: auto;
    grid-column: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--control-radius);
    touch-action: pan-y;
    cursor: zoom-in;
  }

  .mobile-photo-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(235, 227, 221, 0.34);
    border-radius: 999px;
    padding: 0;
    background: rgba(31, 30, 30, 0.42);
    color: var(--ink);
    transform: translateY(-50%);
    cursor: pointer;
  }

  .mobile-photo-arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
  }

  .mobile-photo-arrow-prev {
    left: 10px;
  }

  .mobile-photo-arrow-prev::before {
    transform: translateX(2px) rotate(-45deg);
  }

  .mobile-photo-arrow-next {
    right: 10px;
  }

  .mobile-photo-arrow-next::before {
    transform: translateX(-2px) rotate(135deg);
  }

  .mobile-photo-dots {
    grid-column: 1;
    order: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 0;
  }

  .mobile-photo-dots button {
    width: 42px;
    height: 32px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 0;
    background: rgba(235, 227, 221, 0.16);
    cursor: pointer;
    opacity: 0.68;
  }

  .mobile-photo-dots button.is-active {
    border-color: var(--ink);
    opacity: 1;
  }

  .mobile-photo-dots img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mercedes-pagode-page .pagode-listing-title {
    order: 2;
    margin: 0;
    font-size: clamp(1.62rem, 7.4vw, 2rem);
    line-height: 1.12;
  }

  .mercedes-pagode-page .detail-specs {
    order: 3;
    width: 100%;
    min-height: auto;
    gap: 12px;
    padding: 14px;
  }

  .mercedes-pagode-page .spec-heritage-crest {
    height: 58px;
  }

  .vehicle-price-card {
    width: 100%;
    min-height: 44px;
  }

  .vehicle-price-card strong {
    font-size: 1.35rem;
  }

  .interest-button {
    min-height: 44px;
  }

  .detail-specs {
    padding: 18px 16px;
  }

  .detail-specs h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
  }

  .detail-specs div {
    gap: 12px;
    padding: 9px 0;
    font-size: 0.9rem;
  }

  .detail-specs dd {
    overflow-wrap: anywhere;
  }

  .mercedes-pagode-page .detail-summary p {
    order: 4;
    max-width: none;
    margin: 0;
  }

  .detail-summary p {
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .gallery-section,
  .detail-main .gallery-section {
    padding: 6px 0 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid img:first-child,
  .vehicle-gallery-grid img:nth-child(3n) {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }

  .photo-more-button {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .gallery-page-link {
    display: none;
    right: 10px;
    bottom: 30px;
  }

  .gallery-page-content {
    padding: 116px 16px 42px;
  }

  .gallery-page-heading {
    gap: 10px;
    margin-bottom: 18px;
  }

  .gallery-page-heading h1 {
    font-size: clamp(1.52rem, 7.4vw, 2rem);
  }

  .gallery-back-link {
    font-size: 0.8rem;
  }

  .vehicle-gallery-modal {
    padding: 10px;
  }

  .vehicle-gallery-panel {
    max-height: calc(100svh - 20px);
    padding: 16px;
  }

  .vehicle-gallery-header {
    margin-bottom: 16px;
  }

  .vehicle-gallery-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-gallery-grid img:first-child,
  .vehicle-gallery-grid img:nth-child(3n) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .image-lightbox {
    padding: 14px;
  }

  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .lightbox-arrow-prev {
    left: 10px;
  }

  .lightbox-arrow-next {
    right: 10px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 139px;
  }

  .search input {
    font-size: 0.78rem;
  }

  .mercedes-pagode-page .pagode-listing-title,
  .detail-hero-content h1 {
    font-size: 1.58rem;
  }
}

/* Bandeaux adaptatifs : sur téléphone, le texte et l'image restent toujours entiers. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header,
  .home-page .site-header,
  .page-site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
  }

  .home-page .hero {
    display: block;
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding: 0;
    background: transparent;
  }

  .home-page .hero-content {
    position: absolute;
    inset: clamp(8px, 3vw, 16px);
    z-index: 2;
    width: calc(100% - clamp(16px, 6vw, 32px));
    max-width: none;
    margin: 0;
    padding: 0;
    translate: none;
  }

  .home-page .hero::before {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2112 / 741;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .home-page .hero::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-size: cover;
  }

  .home-page .hero-selection-statement {
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .detail-page:not(.legal-page) .detail-hero {
    min-height: 0;
    padding: 24px 16px calc(35.1vw + 20px);
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
  }
}

