/* ==========================================================================
   MGD COLLECTION — style.css
   Thème : noir / anthracite / or — premium, minimaliste, moderne
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-alt: #0f0f12;
  --surface: #141418;
  --surface-2: #1b1b21;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #c9a35c;
  --gold-light: #e3c98a;
  --gold-dark: #a07f42;
  --text: #f4f1ea;
  --text-muted: #a8a396;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-light); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ==========================================================================
   Typographie commune
   ========================================================================== */

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.kicker.center { text-align: center; }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

.section__title.center { text-align: center; margin-bottom: 3.5rem; }

.gold { color: var(--gold); }

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

p { margin: 0 0 1.1rem; color: var(--text-muted); }

h3 { color: var(--text); }

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  background: transparent;   /* neutralise le fond blanc par défaut des <button> */
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 55%, var(--gold-light));
  color: #121212;
}

.btn--gold:hover {
  color: #000;
  box-shadow: 0 6px 30px rgba(201, 163, 92, 0.35);
}

.btn--ghost {
  border-color: rgba(244, 241, 234, 0.35);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
}

.nav__logo { height: 40px; width: auto; }

.nav__brand-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.nav__brand-text em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-size: 0.8rem;
  margin-left: 0.35rem;
  text-transform: uppercase;
}

.nav__sep { color: var(--gold); font-weight: 300; margin: 0 0.1em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links a {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover { color: var(--gold-light); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  border: 1px solid var(--gold);
  padding: 0.55rem 1.4rem !important;
  color: var(--gold) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav__cta:hover {
  background: var(--gold);
  color: #121212 !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-panamera.jpg") center 65% / cover no-repeat;
  animation: heroZoom 24s var(--ease) forwards;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.55) 45%, var(--bg) 100%),
    radial-gradient(ellipse at center, rgba(10, 10, 12, 0.1) 0%, rgba(10, 10, 12, 0.55) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  max-width: 880px;
}

.hero__logo {
  width: clamp(170px, 24vw, 250px);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.4rem;
  color: var(--text);
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto 2.6rem;
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(244, 241, 234, 0.82);
}

.hero__actions {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   La Maison
   ========================================================================== */

.maison { background: var(--bg-alt); }

.maison__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.maison__media {
  position: relative;
}

.maison__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.maison__frame {
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid rgba(201, 163, 92, 0.4);
  z-index: -1;
}

.maison__points {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.maison__points li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
}

.point-icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.point-icon svg { width: 100%; height: 100%; }

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(201, 163, 92, 0.45);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.card--featured {
  border-color: rgba(201, 163, 92, 0.35);
  background: linear-gradient(180deg, rgba(201, 163, 92, 0.07), rgba(201, 163, 92, 0.02)), var(--surface);
}

.card__icon {
  width: 46px;
  height: 46px;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.card__icon svg { width: 100%; height: 100%; }

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.card p { font-size: 0.93rem; flex: 1; }

.card__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1.2rem;
}

/* ==========================================================================
   Véhicule disponible
   ========================================================================== */

.vehicule { background: var(--bg-alt); }

.vehicule__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.vehicule__media {
  position: relative;
  min-height: 420px;
}

.vehicule__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 0.8s var(--ease);
}

.vehicule__card:hover .vehicule__media img { transform: scale(1.03); }

/* Carte sans photo : composition typographique sur la plaque ivoire,
   cohérente avec les plaques de marques du configurateur. */
.vehicule__media--typo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f5f0;
  min-height: 320px;
}

.vehicule__plate { text-align: center; padding: 2rem; }

.vehicule__plate-marque {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: #14140f;
}

.vehicule__plate-modele {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
  color: #6f6a5c;
}

/* Message affiché quand aucun véhicule n'est en ligne */
.vehicule__vide {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3.2rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Deux boutons côte à côte dans le pied de carte */
.vehicule__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
#stockVehicules .vehicule__card { margin-bottom: 1.6rem; }

.vehicule__badge {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 163, 92, 0.6);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
}

.vehicule__info {
  padding: clamp(2rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
}

.vehicule__origin {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.vehicule__name {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.vehicule__desc { font-size: 0.95rem; }

.vehicule__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem 1rem;
  margin: 1.6rem 0 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vehicule__specs dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.vehicule__specs dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.vehicule__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.vehicule__price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0;
}

.vehicule__price span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.vehicule__note {
  text-align: center;
  margin: 2.6rem auto 0;
  max-width: 560px;
  font-size: 0.92rem;
}

/* ==========================================================================
   Processus
   ========================================================================== */

.processus__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.processus__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }

.processus__media { margin-top: 2.4rem; }

.processus__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 70%;
  filter: saturate(0.9);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 1.8rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
}

.step:first-child { padding-top: 0.4rem; }

.step__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  min-width: 3.2rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step p { font-size: 0.93rem; margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--bg-alt); }

.contact__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.contact__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 163, 92, 0.4);
  color: var(--gold);
}

.contact__icon svg { width: 21px; height: 21px; }

.contact__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact__list a, .contact__list span:not(.contact__label):not(.contact__icon) {
  color: var(--text);
  font-size: 1rem;
}

.contact__list a:hover { color: var(--gold-light); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form__field { margin-bottom: 1.2rem; }

.form__field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a35c' stroke-width='1.5'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  cursor: pointer;
}

.form__field textarea { resize: vertical; min-height: 120px; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(168, 163, 150, 0.5); }

.form__error {
  color: #e08f8f;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.form__submit { width: 100%; }

.form__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.9rem 0 0;
}

.form__privacy {
  font-size: 0.73rem;
  line-height: 1.6;
  color: rgba(168, 163, 150, 0.75);
  text-align: center;
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.footer__logo {
  width: 150px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__nav a:hover { color: var(--gold-light); }

.footer__coords { font-size: 0.88rem; margin-bottom: 1.4rem; }

.footer__legal-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1rem;
}

.footer__legal-nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(168, 163, 150, 0.35);
}

.footer__legal-nav a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold);
}

.footer__legal {
  font-size: 0.78rem;
  color: rgba(168, 163, 150, 0.6);
  margin: 0;
}

/* ==========================================================================
   Pages légales (mentions légales, confidentialité)
   ========================================================================== */

/* En-tête simplifié : pas de menu déroulant, donc toujours visible */
.nav--simple .nav__links {
  position: static;
  transform: none;
  flex-direction: row;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0;
  min-width: 0;
}

.nav--simple .nav__cta { margin-top: 0; }

.legal { padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 7vw, 5rem); }

.legal__wrap { width: min(760px, 100% - 3rem); margin-inline: auto; }

.legal__back {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.legal__updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.6rem;
}

.legal__intro { font-size: 1rem; }

.legal section { margin-top: 2.8rem; }

.legal h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  padding-top: 0.4rem;
}

.legal h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.8rem 0 0.7rem;
}

.legal p, .legal li {
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.legal ul, .legal ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }

.legal li { margin-bottom: 0.5rem; color: var(--text-muted); }

.legal li strong, .legal p strong { color: var(--text); font-weight: 600; }

.legal__dl {
  margin: 0 0 1.1rem;
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr;
  gap: 0.55rem 1.6rem;
  font-size: 0.95rem;
}

.legal__dl dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.legal__dl dd { margin: 0; color: var(--text); }

.legal__table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }

.legal table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal th, .legal td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal th {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal td { color: var(--text-muted); }

.legal__note {
  border-left: 2px solid var(--gold);
  background: rgba(201, 163, 92, 0.05);
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
}

.legal__note p:last-child { margin-bottom: 0; }

/* Champs restant à renseigner par l'éditeur — visibles au premier coup d'œil */
.tbd {
  display: inline-block;
  background: rgba(224, 143, 143, 0.12);
  border: 1px dashed rgba(224, 143, 143, 0.55);
  color: #e8a5a5;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.55rem;
}

@media (max-width: 560px) {
  .legal__dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .legal__dl dt { padding-top: 0.8rem; }
}

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .vehicule__card { grid-template-columns: 1fr; }
  .vehicule__media { min-height: 320px; aspect-ratio: 16 / 10; }
  .processus__intro { position: static; }
}

@media (max-width: 860px) {
  .maison__grid,
  .processus__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .maison__media { max-width: 480px; }
  .processus__media { max-width: 480px; }

  .nav__brand-text { display: none; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 2rem 2rem;
    min-width: 240px;
    transform: translateX(110%);
    transition: transform 0.4s var(--ease);
  }

  .nav__links.is-open { transform: none; }

  .nav__links a { padding: 0.9rem 0; font-size: 0.85rem; }

  .nav__cta { margin-top: 1rem; }

  .nav__burger { display: flex; }

  .nav.is-scrolled, .nav:has(.nav__links.is-open) {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .vehicule__specs { grid-template-columns: repeat(2, 1fr); }
  .vehicule__footer { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__actions .btn { width: 100%; }
  .step { gap: 1.2rem; }
}

/* ==========================================================================
   Configurateur d'importation
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.config { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(3rem, 7vw, 5rem); }

.config__head { max-width: 760px; margin-bottom: 2.6rem; }

.config__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.config__intro { font-size: 1rem; }
.config__intro strong { color: var(--text); font-weight: 600; }

/* ----- Fil d'étapes ----- */

.steps-bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 2.4rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--line);
  counter-reset: none;
}

.steps-bar li { flex: 1 1 auto; }

.steps-bar button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.steps-bar button span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.72rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.steps-bar button:hover { color: var(--gold-light); }

.steps-bar button.is-done { color: var(--text); }
.steps-bar button.is-done span {
  border-color: var(--gold);
  color: var(--gold);
}

.steps-bar button.is-current {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.steps-bar button.is-current span {
  background: var(--gold);
  border-color: var(--gold);
  color: #121212;
}

/* ----- Mise en page ----- */

.config__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.config__summary {
  position: sticky;
  top: calc(var(--nav-h) + 1.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
}

.silhouette { margin-bottom: 1.2rem; }
.silhouette svg { width: 100%; height: auto; display: block; }

.sil-body {
  fill: none; stroke: var(--gold); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.sil-glass {
  fill: rgba(201, 163, 92, 0.13);
  stroke: var(--gold); stroke-width: 2; stroke-linejoin: round;
}
.sil-wheel { fill: none; stroke: var(--gold); stroke-width: 3; }
.sil-hub { fill: none; stroke: rgba(201, 163, 92, 0.45); stroke-width: 2; }
.sil-ground { stroke: rgba(201, 163, 92, 0.25); stroke-width: 2; stroke-linecap: round; }

.config__vehicle {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
}

.config__recap {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}

.config__recap dt {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.config__recap dd { margin: 0; color: var(--text); }

.config__recap-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ----- Étapes ----- */

.config__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}

.config__step { display: none; }
.config__step.is-active { display: block; animation: stepIn 0.45s var(--ease); }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.config__step h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.config__hint { font-size: 0.9rem; margin-bottom: 1.6rem; }

.config__search { display: block; margin-bottom: 1.4rem; }

.config__search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.config__search input:focus { outline: none; border-color: var(--gold); }

/* ----- Grilles de choix ----- */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.choice-grid--models { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choice-grid--versions { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.choice-grid--engines { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }

.choice {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.choice:hover { border-color: rgba(201, 163, 92, 0.5); background: var(--surface-2); }

.choice.is-selected {
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.09);
}

.choice__meta {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Tuiles marques : plaque typographique ----------
   Le nom de la marque tient lieu de logo, composé dans le serif du site.
   La taille est posée en style inline par echelle() (assets/js/configurateur.js)
   en unités cqi, pour que « DS » et « Mercedes-Benz » occupent la même largeur
   optique quelle que soit la largeur de la grille. */
.choice--brand { align-items: center; text-align: center; }

.choice__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 68px;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.6rem;
  background: #f7f5f0;
  border-radius: 2px;
  overflow: hidden;
  /* sert de référence aux unités cqi appliquées au nom (voir echelle() en JS) */
  container-type: inline-size;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;          /* repli si les unités cqi ne sont pas gérées */
  color: #14140f;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  line-height: 1.1;
  /* compense l'interlettrage, qui décentre optiquement vers la gauche */
  text-indent: 0.11em;
  text-align: center;
  /* les noms composés passent à la ligne sur l'espace ou le trait d'union */
  overflow-wrap: break-word;
}

.choice--brand:hover .choice__plate,
.choice--brand.is-selected .choice__plate { background: #fffdf8; }

/* ---------- Tuiles modèles et versions : texte seul ---------- */
.choice--model,
.choice--version {
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.15rem 1rem 1rem;
  container-type: inline-size;
}

/* Tuiles motorisation : plus compactes, ce sont des codes courts (330d, M3) */
.choice--engine {
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.7rem 0.6rem;
}

.engine-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
}

.choice--engine:hover .engine-name,
.choice--engine.is-selected .engine-name { color: var(--gold-light); }
.choice--engine .choice__meta { font-size: 0.62rem; letter-spacing: 0.06em; }
.choice--engine.choice--any .engine-name { font-style: italic; color: var(--text-muted); font-size: 0.95rem; }
.choice--engine.choice--any:hover .engine-name { color: var(--gold-light); }

/* Intitulé rapproché du contrôle qu'il annonce */
.config__hint--tight { margin: -0.2rem 0 0.7rem; font-size: 0.8rem; }

.model-name,
.version-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.model-name { font-size: 1.2rem; }   /* repli ; la taille reelle vient du JS */
.version-name { font-size: 1.15rem; }

.choice--model:hover .model-name,
.choice--model.is-selected .model-name,
.choice--version:hover .version-name,
.choice--version.is-selected .version-name { color: var(--gold-light); }

/* Tuile « Peu importe » : mise en retrait, elle ferme la liste */
.choice--any { border-style: dashed; }
.choice--any .version-name { font-style: italic; color: var(--text-muted); }
.choice--any:hover .version-name { color: var(--gold-light); font-style: italic; }

.config__empty { font-size: 0.9rem; margin: 1rem 0 0; }

.config__other {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.config__other label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.config__other input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 0;
}

.config__other input:focus { outline: none; border-color: var(--gold); }

/* ----- Champs ----- */

.field { margin-bottom: 1.5rem; border: none; padding: 0; }

.field label, .field legend {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding: 0;
}

.field__opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a35c' stroke-width='1.5'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  cursor: pointer;
}

.field textarea { resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* ----- Pastilles de choix ----- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.chip:hover { border-color: rgba(201, 163, 92, 0.5); color: var(--text); }

.chip.is-selected {
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.12);
  color: var(--gold-light);
}

/* ----- Navigation et envoi ----- */

.config__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.config__nav .btn { flex: 0 1 auto; }
.config__nav button[hidden] { display: none; }

.config__final {
  margin: 2rem 0 1.4rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid rgba(201, 163, 92, 0.3);
}

.config__final h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.config__send { width: 100%; }

.shake { animation: shake 0.4s ease; }

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .config__step.is-active { animation: none; }
  .shake { animation: none; }
}

@media (max-width: 940px) {
  .config__layout { grid-template-columns: 1fr; }
  .config__summary { position: static; }
  .silhouette { max-width: 340px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .steps-bar button span { width: 22px; height: 22px; font-size: 0.66rem; }
  .steps-bar button { font-size: 0; gap: 0; justify-content: center; }
  .steps-bar button span { font-size: 0.7rem; }
  .choice-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .config__nav { flex-direction: column-reverse; }
  .config__nav .btn { width: 100%; }
}
