/* PURSANG CARS : site vitrine (pursangcars.fr), style « Liquid Glass » clair.
   Un fond image lumineux (gris perle, reflets rouges et argentés) et, par-dessus, des panneaux en
   verre dépoli blanc. Logo noir à l'œil rouge, texte noir, comme dans l'application. */

:root {
  /* Fond du site : pour mettre une photo, remplacer par url("images/ma-photo.jpg"). */
  --fond: url("images/fond-clair.svg");

  --text: #1d1d1f;
  --muted: #5e5e66;
  --faint: #8e8e93;
  --red: #d70015;
  --red-light: #ff3b4e;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f1f2f5;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Le fond (fixe, derrière tout) ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #f1f2f5 var(--fond) center / cover no-repeat;
}

/* Lueurs qui bougent lentement : c'est elles qu'on voit « couler » à travers le verre. */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.glow-red {
  width: 44vmax;
  height: 44vmax;
  right: -12vmax;
  bottom: -14vmax;
  background: radial-gradient(circle, rgba(255, 59, 78, 0.45), rgba(255, 59, 78, 0) 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.glow-white {
  width: 36vmax;
  height: 36vmax;
  left: -10vmax;
  top: 6vh;
  background: radial-gradient(circle, rgba(150, 170, 210, 0.5), rgba(150, 170, 210, 0) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.glow-soft {
  width: 30vmax;
  height: 30vmax;
  left: 38vw;
  top: 42vh;
  background: radial-gradient(circle, rgba(255, 200, 205, 0.55), rgba(255, 200, 205, 0) 70%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-12vw, -10vh, 0) scale(1.15);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(14vw, 18vh, 0) scale(1.1);
  }
}

/* ---------- Le verre ---------- */

.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 45%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 20px 50px -18px rgba(30, 30, 50, 0.22);
}

/* Bord lumineux (plus clair en haut à gauche, comme un vrai verre). */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.35) 35%, rgba(0, 0, 0, 0.06) 70%, rgba(255, 255, 255, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Reflet qui suit la souris (le « liquide »). */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx, 20%) var(--my, -10%), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

/* Verre plus opaque pour les longs textes (conditions, mentions…). */
.glass-dark {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
}

/* Navigateurs sans verre dépoli : un fond blanc presque opaque, toujours lisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(255, 255, 255, 0.94);
  }
}

/* ---------- Barre du haut (flottante, en verre) ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 14px;
}

.nav-bar {
  max-width: 1120px;
  margin: 0 auto;
  height: 66px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 22px;
  transition: background 0.3s ease;
}

.site-header.scrolled .nav-bar {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
}

.brand img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}

.nav .nav-cta {
  color: #ffffff;
  background: var(--text);
  font-weight: 600;
  padding: 11px 20px;
  margin-left: 6px;
}

.nav .nav-cta:hover {
  color: #ffffff;
  background: #000000;
}

/* Bouton « menu » (téléphone et tablette) */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  position: relative;
  flex: none;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle span:first-child {
  top: 18px;
}

.menu-toggle span:last-child {
  top: 26px;
}

.site-header.open .menu-toggle span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.site-header.open .menu-toggle span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 10px;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
}

.mobile-menu a {
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu .nav-cta {
  margin-top: 6px;
  text-align: center;
  color: #ffffff;
  background: var(--text);
  font-weight: 600;
}

.mobile-menu .nav-cta:hover {
  color: #ffffff;
  background: #000000;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .site-header.open .mobile-menu {
    display: flex;
  }
  .nav-bar {
    height: 62px;
    padding: 0 8px 0 18px;
  }
  .brand img {
    height: 38px;
  }
}

/* ---------- Boutons ---------- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
}

.button-primary:hover {
  background: #000000;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.button-glass {
  color: var(--text);
  border-radius: 999px;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Accueil ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-main {
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  width: 170px;
  height: auto;
  margin: 0 0 26px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(215, 0, 21, 0.6);
  margin-right: 10px;
  vertical-align: 1px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -1.4px;
}

.hero h1 .accent,
.page-hero h1 .accent {
  background: linear-gradient(90deg, #1d1d1f 0%, #6b1019 40%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 0 30px;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

/* Véhicule à la une (à droite de l'accueil) */
.featured {
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 420px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.featured:hover {
  transform: translateY(-4px);
}

.featured-photo {
  flex: 1;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.featured-photo .logo-fallback {
  width: 55%;
  height: auto;
  object-fit: contain;
}

.featured-body {
  padding: 18px 12px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 12px;
}

.featured-body > div {
  flex: 1 1 auto;
  min-width: 0;
}

.featured-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
}

.featured-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.featured-price {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.featured-price.on-request {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.featured-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .featured {
    min-height: 0;
  }
  .featured-photo {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.9px;
  line-height: 1.1;
}

.section-head p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
}

/* ---------- Services (accueil) ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 26px 26px;
  min-height: 280px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover,
.vehicle:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 30px 60px -20px rgba(30, 30, 50, 0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 16px -8px rgba(215, 0, 21, 0.35);
  margin-bottom: 8px;
  flex: none;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service h3,
.use h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.2px;
}

.service p,
.use p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.service-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-more::after {
  content: "→";
  color: var(--red);
  transition: transform 0.2s ease;
}

.service:hover .service-more::after {
  transform: translateX(4px);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Véhicules ---------- */

.vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.vehicle {
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-photo {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7c7cc;
}

.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vehicle:hover .vehicle-photo img {
  transform: scale(1.04);
}

.vehicle-photo svg {
  width: 64px;
  height: 64px;
}

.vehicle-body {
  padding: 16px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.vehicle-name {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.vehicle-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.vehicle-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-price {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.vehicle-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.vehicle-price.on-request {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.vehicle-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--text);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.vehicle-cta:hover {
  background: #000000;
}

.vehicles-note {
  text-align: center;
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.skeleton {
  min-height: 320px;
}

.skeleton::after {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  padding: 30px 28px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Infos pratiques ---------- */

.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info {
  padding: 30px 28px;
}

.info h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
}

.info ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.info li {
  padding-left: 20px;
  position: relative;
  color: #3a3a3c;
}

.info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.info .address {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.info .link {
  display: inline-block;
  margin: 6px 0 18px;
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Contact ---------- */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.contact:hover {
  transform: translateY(-4px);
}

.contact .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact strong {
  display: block;
  font-size: 16px;
}

.contact > div > span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ---------- En-tête des pages de service ---------- */

.page-hero {
  padding: 128px 0 24px;
}

.page-hero-card {
  padding: clamp(30px, 6vw, 64px);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.3px;
}

.page-hero .lead {
  margin: 0 0 30px;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

/* ---------- Occasions / programme ---------- */

.uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.uses-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.use {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.use-number {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--red);
}

/* ---------- Bandeau d'appel à l'action ---------- */

.cta-band {
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.6px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Formulaire de devis ---------- */

.devis-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .devis-grid {
    grid-template-columns: 1fr;
  }
}

.devis-card {
  padding: clamp(26px, 5vw, 48px);
}

.devis-card h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.6vw, 44px);
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.lead-small {
  margin: 0 0 28px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3c;
}

.field .optional {
  font-weight: 400;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1d1d1f 50%), linear-gradient(135deg, #1d1d1f 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a1a1a8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 0, 0, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--red);
}

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

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

.form-submit {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 600;
}

.form-status.ok {
  color: #248a3d;
}

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

.devis-aside {
  padding: 30px 26px;
  position: sticky;
  top: 100px;
}

.devis-aside h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.devis-aside > p {
  margin: 0 0 18px;
  color: var(--muted);
}

.aside-links {
  display: grid;
  gap: 12px;
}

.aside-links .contact {
  padding: 14px;
  gap: 12px;
}

.aside-links .contact .contact-icon {
  width: 40px;
  height: 40px;
}

/* ---------- Pages de texte (conditions, mentions, confidentialité) ---------- */

.page {
  padding: 120px 0 64px;
}

.page .glass {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
}

.page .devis-grid .glass {
  max-width: none;
  margin: 0;
}

.page h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4.6vw, 44px);
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.page .updated {
  margin: 0 0 30px;
  color: var(--faint);
  font-size: 14px;
}

.page h2 {
  margin: 34px 0 10px;
  font-size: 20px;
}

.page .devis-aside h2 {
  margin-top: 0;
}

.page p,
.page li {
  color: #3a3a3c;
}

.page ul {
  padding-left: 22px;
}

.page li {
  margin: 5px 0;
}

.page li::marker {
  color: var(--red);
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 16px;
}

.page td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page td:first-child {
  color: var(--faint);
  width: 42%;
  padding-right: 16px;
}

/* Emplacement à compléter (visible tant que l'information manque). */
.todo {
  background: #fff4e5;
  color: #b25000;
  padding: 1px 7px;
  border-radius: 7px;
  font-weight: 600;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 24px 0 36px;
}

.footer-bar {
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.footer-bar img {
  height: 42px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-line {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Apparition douce au défilement ---------- */
/* (seulement si le script tourne : sans lui, tout reste visible) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .glow,
  .skeleton::after {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .button,
  .vehicle,
  .service,
  .contact,
  .featured,
  .vehicle-photo img {
    transition: none;
  }
}
