:root {
  --blue: #1a3fd6;
  --blue-dark: #122a96;
  --blue-light: #eef1fe;
  --red: #e5342b;
  --red-dark: #c21f17;
  --ink: #0f1115;
  --text: #1f2430;
  --text-muted: #646b7a;
  --border: #e6e8ee;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(16,17,26,0.04), 0 8px 24px rgba(16,17,26,0.06);
  --shadow-hover: 0 4px 10px rgba(16,17,26,0.06), 0 16px 40px rgba(16,17,26,0.10);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Le site n'a qu'un seul thème (clair). Sans cette ligne, certains
   navigateurs/apps en mode sombre système "corrigent" automatiquement
   des couleurs déjà correctes (ex: texte blanc sur la photo du hero)
   et les rendent illisibles. On fige donc explicitement le thème. */
html { color-scheme: light only; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-muted);
  padding: 8px 2px;
  position: relative;
  transition: color 0.15s;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.18s;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--ink); }
nav.main-nav a:hover::after,
nav.main-nav a.active::after { transform: scaleX(1); }

.btn-phone-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.btn-phone-header:hover { background: var(--blue); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero { padding: 88px 0 80px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* Hero — texte au-dessus, photo en bande sous le texte */
.hero-stacked .container {
  display: block;
}

.hero-stacked .hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-stacked .hero-ctas,
.hero-stacked .hero-badges {
  justify-content: center;
}

.hero-stacked p { margin-left: auto; margin-right: auto; }

.hero-photo-frame {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,17,21,0.2);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: center 32%;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* CTA bouton principal — bien visible, en "rectangle" */
.btn-cta {
  padding: 18px 34px;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(26,63,214,0.4);
}
.btn-cta:hover { box-shadow: 0 14px 34px rgba(26,63,214,0.46); }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-pill::before { content: "●"; color: var(--red-dark); font-size: 0.6rem; }

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
  font-weight: 800;
}

.hero h1 .accent { color: var(--blue); }

.hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual .ring {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-light), #fff 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
}

.hero-visual .ring img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-visual .floating-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual .floating-card.top { top: -6px; right: -10px; }
.hero-visual .floating-card.bottom { bottom: 4px; left: -30px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,63,214,0.28);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,63,214,0.34); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--ink); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: 1.9rem;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card .price-tag {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.15rem;
}

.card .mini-link {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--blue);
}

/* Service full cards (prestations page) */
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 16px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.service-row:hover { box-shadow: var(--shadow-hover); border-color: transparent; }

.service-row h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Code couleur par prestation — aide à repérer chaque démarche d'un coup d'œil.
   Couleurs choisies et vérifiées pour un contraste ≥ 4.5:1 sur fond blanc. */
.service-row.cat-titulaire, .card.cat-titulaire { --cat-color: #a6145c; }
.service-row.cat-da, .card.cat-da { --cat-color: #1a3fd6; }
.service-row.cat-dc, .card.cat-dc { --cat-color: #5b3fd6; }
.service-row.cat-ww, .card.cat-ww { --cat-color: #c21f17; }
.service-row.cat-leasing, .card.cat-leasing { --cat-color: #0b6670; }
.service-row.cat-duplicata, .card.cat-duplicata { --cat-color: #9a5b00; }
.service-row.cat-adresse, .card.cat-adresse { --cat-color: #1e7d4c; }

.service-row[class*="cat-"] { border-left-color: var(--cat-color); }
.service-row[class*="cat-"] h3, .card[class*="cat-"] h3 { color: var(--cat-color); }

.service-row p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 560px;
}

.service-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-meta strong { color: var(--text); }

.service-price {
  text-align: right;
  min-width: 200px;
}

.service-price .amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}

.service-price .amount small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Bannière de page (prestations, contact) */
.page-banner {
  position: relative;
  padding: 80px 0 56px;
  background-size: cover;
  background-position: center 55%;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,10,16,0.95) 0%, rgba(8,10,16,0.85) 45%, rgba(8,10,16,0.65) 100%);
}
.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.page-banner-inner h2 { color: #fff; font-size: 2rem; font-weight: 800; margin: 16px 0 14px; letter-spacing: -0.01em; }
.page-banner-inner p { color: rgba(255,255,255,0.82); margin: 0; }
.page-banner-inner .eyebrow-pill { background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step { text-align: left; }

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  border-radius: var(--radius-lg);
  margin: 0 24px;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 800;
}

.cta-band p {
  color: #b7bdc9;
  margin: 0 0 28px;
}

/* CTA band — variante avec photo en fond */
.cta-band-photo {
  position: relative;
  overflow: hidden;
  background: #0a0c12 url("assets/fleet-car.jpg") center 60% / cover no-repeat;
}
.cta-band-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,12,18,0.94), rgba(10,12,18,0.78));
}
.cta-band-photo > * { position: relative; z-index: 2; }

/* Section confiance avec photo */
.trust-photo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.trust-photo-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.trust-photo-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

.trust-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.trust-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 1px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-item p, .contact-item a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.contact-item a:hover { color: var(--blue); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Commencer / flow page */
.flow-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.flow-stepper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.flow-stepper .dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.flow-stepper .dot .circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.flow-stepper .sep { width: 36px; height: 1.5px; background: var(--border); align-self: center; }

.flow-stepper .dot.active { color: var(--ink); }
.flow-stepper .dot.active .circle { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Plate lookup */
.plate-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.plate-row .field-group { flex: 1; min-width: 200px; margin-bottom: 0; }
.plate-row input {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.plate-row .btn { flex-shrink: 0; padding: 13px 22px; }

.plate-result {
  margin-top: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: none;
}
.plate-result.show { display: block; }
.plate-result.ok { border-color: #1e7d4c; background: #f3fbf6; }
.plate-result.err { border-color: var(--border); background: var(--bg-alt); }
.plate-result .pr-title { font-weight: 800; color: var(--ink); font-size: 0.95rem; margin-bottom: 6px; }
.plate-result .pr-meta { color: var(--text-muted); font-size: 0.84rem; }
.plate-skip { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.plate-skip a { color: var(--blue); font-weight: 700; }

.recap-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.recap-card h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; }
.recap-card p { margin: 0; color: #b7bdc9; font-size: 0.88rem; }
.recap-card .recap-price { font-size: 1.6rem; font-weight: 800; }

.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
}

.form-section h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h3 .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.form-section > p.hint {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0 0 20px;
}
.form-section > p.hint.hint-small {
  margin: -8px 0 18px;
  font-size: 0.8rem;
}
.optional-tag {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.82em;
}

/* Checklist des documents requis (page Commencer) */
.doc-checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.doc-checklist li.checked { border-color: #1e7d4c; background: #f3fbf6; }
.doc-checklist li.missing { border-color: var(--red-dark); background: #fdf2f1; }
.doc-checklist input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.doc-checklist label { cursor: pointer; line-height: 1.4; }

.doc-checklist-error {
  background: #fdf2f1;
  border: 1.5px solid var(--red-dark);
  color: var(--red-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-alt);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.dropzone .dz-icon { font-size: 1.8rem; margin-bottom: 10px; }
.dropzone .dz-text { font-weight: 700; color: var(--ink); font-size: 0.94rem; margin-bottom: 4px; }
.dropzone .dz-sub { color: var(--text-muted); font-size: 0.8rem; }

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list .file-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.86rem;
}

.file-list .file-item .file-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-list .file-item .remove-file {
  color: var(--red-dark);
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
}

/* Vérification IA des documents (purement consultative, jamais bloquante) :
   trois états visuels. "warning" reste en jaune/orange, jamais en rouge,
   pour ne pas donner l'impression d'un refus — ce n'est qu'un avis à
   vérifier soi-même, la checklist cochée par le client reste seule
   obligatoire. */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.ai-badge.ai-checking {
  color: var(--text-muted);
  background: var(--border);
}
.ai-badge.ai-ok {
  color: #1e7d4c;
  background: #e7f6ee;
}
.ai-badge.ai-warning {
  color: #92650b;
  background: #fff3d6;
}
.ai-badge-message {
  font-size: 0.78rem;
  color: #92650b;
  background: #fff8e8;
  border: 1px solid #e8b931;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

/* Mode "plusieurs véhicules" (traitement par lot) */
.vehicle-block-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.btn-remove-vehicle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--red-dark);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-remove-vehicle:hover { border-color: var(--red-dark); background: #fdf2f1; }

.btn-add-vehicle {
  width: 100%;
  margin-bottom: 20px;
  border-style: dashed;
}

.dz-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.batch-summary {
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.batch-payment-note,
.payment-config-error {
  background: #fff8e8;
  border: 1.5px solid #e8b931;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.payment-config-error a { color: var(--blue); text-decoration: underline; }

#payment-element {
  margin-bottom: 20px;
}

#retry-dossier-btn {
  margin-top: 12px;
}

.payment-success-card {
  background: #f1faf4;
  border: 1.5px solid #1e7d4c;
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
}
.payment-success-card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e7d4c;
}
.payment-success-card p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 0.94rem;
}

.field-group { margin-bottom: 18px; }

.field-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.field-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.field-group input:focus {
  outline: none;
  border-color: var(--blue);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.submit-status {
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 14px;
  min-height: 20px;
}
.submit-status.ok { color: #1e7d4c; }
.submit-status.err { color: var(--red-dark); }

/* Mandats (immatriculation + débours) préremplis + signature électronique */
.mandate-box {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.mandate-box h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink);
}
.mandate-box p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-line;
}
.mandate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.signature-wrap label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
#signature-pad {
  width: 100%;
  height: 160px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  display: block;
}
#signature-pad.signed { border-style: solid; border-color: #1e7d4c; }
.signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.signature-hint { font-size: 0.78rem; color: var(--text-muted); }
.btn-clear-sign {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #9aa1b0;
  padding: 50px 0 28px;
  font-size: 0.88rem;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-grid .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-grid .footer-logo img { height: 36px; width: 36px; border-radius: 50%; object-fit: cover; }

.footer-grid h4 {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 14px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: #828a9a;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .hero-visual .ring { width: 180px; height: 180px; }
  .hero-visual .ring img { width: 140px; height: 140px; }
  .hero-stacked .hero-inner { max-width: 100%; }
  .hero-photo-frame { margin-top: 32px; border-radius: var(--radius); }
  .hero-photo-frame img { aspect-ratio: 4 / 3; object-position: center 30%; }
  .trust-photo-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-photo-img img { aspect-ratio: 16/10; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .btn-phone-header span.label { display: none; }
  .service-row { grid-template-columns: 1fr; }
  .service-price { text-align: left; }
  .cta-band { margin: 0 12px; padding: 48px 20px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .recap-card { flex-direction: column; align-items: flex-start; }
  .form-section { padding: 22px 18px; }
  .card { padding: 22px; }
  .flow-stepper { flex-wrap: wrap; gap: 10px 6px; margin-bottom: 28px; }
  .flow-stepper .dot { font-size: 0.76rem; gap: 6px; }
  .flow-stepper .dot .circle { width: 22px; height: 22px; font-size: 0.7rem; }
  .flow-stepper .sep { width: 22px; }
  .plate-row .field-group { min-width: 160px; }
  .cta-band { padding: 36px 18px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .form-section { padding: 18px 14px; }
  .recap-card { padding: 20px 20px; }
  .hero-badges .badge { font-size: 0.78rem; padding: 6px 10px; }
}
