/* Pièces Auto Colomiers — feuille de styles du site (production)
   Recrée le prototype design (Landing Pieces Auto Colomiers.dc.html) en CSS réel :
   - point de rupture unique 860px géré en media query (pas de JS de largeur)
   - nav desktop / mobile = deux <nav> distincts, bascule CSS uniquement
*/

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  overflow-x: clip;
  padding-bottom: var(--space-lg);
}

a { color: var(--brand-hover); text-decoration: none; }
a:hover { color: var(--brand-active); }

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

[hidden] { display: none !important; }

section { scroll-margin-top: 70px; }

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

.bubble {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3.6vw, 48px);
}

.bubble-navy {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--navy-900);
  border-radius: 28px;
  padding: clamp(22px, 3.6vw, 48px);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: transparent;
}

.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px clamp(14px, 3vw, var(--space-xl));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  flex: 0 0 auto;
  transition: opacity 160ms ease-out;
}
.brand:hover { opacity: 0.78; }

.brand-logo { height: 46px; width: auto; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title {
  font-size: 18px; font-weight: 900; color: var(--navy-900);
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand-sub {
  font-size: 11px; font-weight: 800; letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase; color: var(--mute);
}

.quote-btn {
  order: 2;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--brand); color: var(--navy-900);
  font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; height: 46px; white-space: nowrap; flex: none;
  padding: 0 6px 0 clamp(14px, 1.6vw, 22px);
  border-radius: var(--radius-pill);
  transition: background 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}
.quote-btn:hover { background: var(--brand-hover); color: var(--navy-900); box-shadow: var(--shadow-md); }
.quote-btn:active { background: var(--brand-active); transform: scale(0.98); }
.quote-btn .arrow-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--navy-900); flex: none;
}
.quote-btn .arrow-circle svg { width: 17px; height: 17px; }

/* ---------- Nav pilule sticky ---------- */

.nav-wrap {
  position: sticky; top: 10px; z-index: 30;
  display: flex; justify-content: center;
  padding: 0 clamp(12px, 3vw, var(--space-xl)) 6px;
}

.nav {
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.nav a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 clamp(10px, 1.4vw, 20px);
  border-radius: var(--radius-pill);
  font-size: 14px; line-height: 1; white-space: nowrap;
  font-weight: 600; color: var(--body); flex: none;
  transition: background 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
.nav a:hover { background: var(--white); color: var(--navy-900); }
.nav a.is-active {
  background: var(--white); color: var(--navy-900);
  font-weight: 700; box-shadow: var(--shadow-sm);
}

.nav-desktop { flex: 0 0 auto; min-width: 0; max-width: 100%; overflow: hidden; justify-content: center; gap: 2px; }
.nav-mobile { display: none; flex: 1 1 100%; width: 100%; min-width: 0; overflow: hidden; }
.nav-mobile a { flex: 1 1 0; min-width: 0; height: 38px; }

/* ---------- Responsive : point de rupture unique 860px ---------- */

@media (max-width: 859px) {
  .brand { justify-content: center; flex: 1 1 auto; }
  .quote-btn { display: none; }
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }
  .submit-row { justify-content: center; }
}

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

.section { padding: var(--space-lg) clamp(12px, 3vw, var(--space-xl)); }
#accueil { padding-top: var(--space-md); }

.eyebrow {
  font-size: var(--eyebrow-size); font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase;
  color: var(--brand-hover);
}

h2.section-title {
  margin: 0; font-size: clamp(32px, 4vw, var(--display-lg-size));
  line-height: 1.06; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em;
}

/* ---------- Hero (#accueil) ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero-col {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: var(--space-xl);
}

.badge-pin {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border-default);
  color: var(--navy-900); font-size: var(--eyebrow-size); font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.badge-pin svg { width: 14px; height: 14px; color: var(--brand-hover); }

.hero-title {
  margin: 0; font-size: clamp(48px, 7.2vw, var(--display-mega-size));
  line-height: 0.94; font-weight: 900; letter-spacing: -0.03em;
  color: var(--navy-900); text-wrap: balance;
}

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xs); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; padding: 16px 26px;
  border-radius: var(--radius-xl); border: none; cursor: pointer;
  font-family: var(--font-body);
  transition: background 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out, color 160ms ease-out;
}
.btn:active { transform: scale(0.98); }

.btn-navy { background: var(--navy-900); color: var(--brand); }
.btn-navy:hover { background: var(--navy-800); color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn-outline-navy { background: var(--white); border: 1.5px solid var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--brand-pale); color: var(--navy-900); transform: translateY(-2px); }

.btn-brand { background: var(--brand); color: var(--navy-900); }
.btn-brand:hover { background: var(--brand-hover); color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn-brand:active { background: var(--brand-active); transform: scale(0.98); }

.proof-row { display: flex; gap: var(--space-xl); margin-top: var(--space-md); flex-wrap: wrap; }
.proof-item {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--body-sm-size); font-weight: 600; color: var(--body);
}
.proof-item svg { width: 16px; height: 16px; color: var(--positive); }

.hero-media { position: relative; display: flex; align-items: center; justify-content: center; padding-bottom: 56px; }

.hero-photo {
  width: 100%; height: clamp(260px, 46vw, 420px);
  border-radius: 24px; object-fit: cover; object-position: 50% 48%;
}

.stats-card {
  position: absolute; bottom: 8px; left: 0; right: 0;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: var(--space-lg) var(--space-xl);
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.stats-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,31,77,0.18); }
.stats-item { display: flex; flex-direction: column; gap: 2px; }
.stats-num { font-size: 22px; font-weight: 900; color: var(--navy-900); }
.stats-label { font-size: 12px; font-weight: 600; color: var(--mute); }
.stats-sep { width: 1px; background: var(--border-default); }

/* ---------- Devis (#devis) ---------- */

.devis-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px); align-items: center;
}
.devis-copy { display: flex; flex-direction: column; gap: 8px; }
.devis-copy p { margin: 0; font-size: var(--body-md-size); line-height: var(--body-md-lh); color: var(--body); }
h2.devis-title {
  margin: 0; font-size: var(--display-md-size); line-height: var(--display-md-lh);
  font-weight: 800; color: var(--navy-900);
}

.devis-actions { display: flex; flex-direction: column; gap: var(--space-md); }
.plate-row { display: flex; gap: var(--space-md); align-items: stretch; flex-wrap: wrap; }

.plate-input-wrap {
  display: flex; align-items: center; background: var(--white);
  border: 2px solid var(--navy-900); border-radius: var(--radius-md);
  overflow: hidden; flex: 1 1 260px; min-width: 240px;
}
.plate-side { width: 26px; align-self: stretch; background: var(--navy-900); }
.plate-input {
  flex: 1; border: none; outline: none; font-family: var(--font-body);
  font-size: 22px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-900); padding: 12px 14px; min-width: 0; background: var(--white);
}

.reassurance-box {
  display: flex; align-items: center; gap: var(--space-md);
  background: var(--brand-pale); border-radius: var(--radius-lg); padding: var(--space-lg);
}
.reassurance-box svg { width: 24px; height: 24px; color: var(--navy-900); flex: none; }
.reassurance-box span { font-size: 14px; line-height: 21px; color: var(--body); }
.reassurance-box strong { color: var(--navy-900); white-space: nowrap; }

/* ---------- Marques (#marques) ---------- */

.marques-wrap { display: flex; flex-direction: column; gap: var(--space-2xl); }
.marques-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-xl); flex-wrap: wrap;
}
.marques-head p { margin: 0; max-width: 44ch; font-size: var(--body-md-size); line-height: var(--body-md-lh); color: var(--body); }

.marques-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-md); }
.marque-tile {
  background: var(--surface-soft); border: 1px solid transparent; border-radius: var(--radius-lg);
  padding: 20px var(--space-md); text-align: center; font-size: 14px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-900); cursor: default;
  transition: background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}
.marque-tile:hover { background: var(--brand-pale); border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.marque-tile:active { transform: scale(0.98); }

.marques-note { font-size: var(--body-sm-size); color: var(--mute); }

/* ---------- Atelier / Pourquoi nous (#atelier) ---------- */

.atelier-wrap { display: flex; flex-direction: column; gap: var(--space-2xl); }
.atelier-head { display: flex; flex-direction: column; gap: var(--space-md); max-width: 46ch; }
.atelier-head h2 { margin: 0; font-size: clamp(32px, 4vw, var(--display-lg-size)); line-height: 1.06; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.atelier-head .eyebrow { color: var(--brand); }

.atelier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.feature-card {
  background: var(--white); border-radius: 20px; padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card svg { width: 30px; height: 30px; color: var(--brand-hover); }
.feature-card h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--navy-900); }
.feature-card p { margin: 0; font-size: 15px; line-height: 23px; color: var(--body); }

/* ---------- Magasin (#magasin) ---------- */

.magasin-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 3.4vw, 48px); align-items: start;
}
.magasin-col-left { display: flex; flex-direction: column; gap: var(--space-xl); }

.info-card {
  background: var(--surface-soft); border-radius: 20px; padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-lg);
}
.info-row { display: flex; gap: var(--space-md); align-items: flex-start; }
.info-row svg { width: 20px; height: 20px; color: var(--brand-hover); flex: none; margin-top: 2px; }
.info-row-text { display: flex; flex-direction: column; gap: 2px; }
.info-row-text .label { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.info-row-text .value { font-size: 15px; color: var(--body); }

.hr-line { height: 1px; background: var(--border-default); border: none; margin: 0; }

.hours-block { display: flex; flex-direction: column; gap: 10px; }
.hours-title { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.hours-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: var(--space-lg); row-gap: 2px; font-size: 15px; color: var(--body);
}
.hours-row .jour { white-space: nowrap; }
.hours-row .heures { font-weight: 700; color: var(--navy-900); white-space: nowrap; margin-left: auto; text-align: right; }

.map-card {
  position: relative; display: block; width: 100%;
  height: clamp(260px, 46vw, 420px); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-md); background: #eaf0f4;
  cursor: pointer; transition: box-shadow 180ms ease-out, transform 180ms ease-out;
}
.map-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.map-card svg.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-overlay {
  position: absolute; left: var(--space-lg); right: var(--space-lg); bottom: var(--space-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.map-pill-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--navy-900); font-size: 12px; font-weight: 800;
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase;
  padding: 10px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
}
.map-pill-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-900); color: var(--brand); font-size: 13px; font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); white-space: nowrap;
}
.map-pill-navy svg { width: 15px; height: 15px; }

/* ---------- Contact (#contact) ---------- */

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 3.4vw, 48px); align-items: stretch;
}
.contact-copy { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-copy h2 { margin: 0; font-size: clamp(32px, 4vw, var(--display-lg-size)); line-height: 1.06; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.contact-copy p { margin: 0; font-size: var(--body-lg-size); line-height: var(--body-lg-lh); color: var(--body); text-wrap: pretty; }

.phone-pill {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: auto;
  background: var(--brand-pale); border-radius: var(--radius-pill); padding: 10px 20px 10px 10px;
  transition: background 160ms ease-out, transform 160ms ease-out;
}
.phone-pill:hover { background: var(--brand); transform: translateY(-2px); }
.phone-pill .icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); color: var(--brand); flex: none;
}
.phone-pill .icon-circle svg { width: 18px; height: 18px; }
.phone-pill-text { display: flex; flex-direction: column; line-height: 1.15; }
.phone-pill-text .kicker { font-size: 11px; font-weight: 800; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--navy-900); }
.phone-pill-text .number { font-size: 19px; font-weight: 900; color: var(--navy-900); white-space: nowrap; }

.form-panel {
  background: var(--surface-soft); border-radius: 20px; padding: var(--space-2xl);
  display: flex; flex-direction: column; gap: var(--space-lg);
}

.banner { display: flex; align-items: center; gap: var(--space-md); border-radius: var(--radius-lg); padding: var(--space-lg); font-size: 15px; font-weight: 700; }
.banner svg { width: 20px; height: 20px; flex: none; }
.banner-success { background: var(--positive-pale); color: var(--positive-deep); animation: mi-pop 220ms ease-out both; }
.banner-error { background: var(--negative-pale); color: var(--negative-deep); }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span.field-label { font-size: 14px; font-weight: 600; color: var(--ink); }

.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; padding: 12px 16px;
  border-radius: var(--radius-md); border: 1.5px solid var(--border-default);
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-pale);
}
.field input.plate-field { text-transform: uppercase; }
.field textarea { resize: vertical; font-family: var(--font-body); }

.submit-row { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-sm); }
.submit-btn {
  background: var(--brand); color: var(--navy-900); border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; padding: 15px 26px;
  border-radius: var(--radius-xl);
  transition: background 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}
.submit-btn:hover:not(:disabled) { background: var(--brand-hover); box-shadow: var(--shadow-md); }
.submit-btn:active:not(:disabled) { background: var(--brand-active); transform: scale(0.98); }
.submit-btn:disabled { cursor: not-allowed; opacity: 0.75; }

/* ---------- Pages légales ---------- */

.legal-content { display: flex; flex-direction: column; gap: var(--space-2xl); max-width: 74ch; margin: 0 auto; }
.legal-content .legal-updated { font-size: var(--body-sm-size); color: var(--mute); margin: calc(-1 * var(--space-lg)) 0 0; }
.legal-content h1 {
  margin: 0; font-size: clamp(32px, 4.4vw, var(--display-lg-size));
  line-height: 1.1; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em;
}
.legal-content section { display: flex; flex-direction: column; gap: var(--space-md); }
.legal-content h2 {
  margin: 0; font-size: var(--display-sm-size); line-height: var(--display-sm-lh);
  font-weight: 700; color: var(--navy-900);
}
.legal-content p, .legal-content li { margin: 0; font-size: var(--body-md-size); line-height: var(--body-md-lh); color: var(--body); }
.legal-content strong { color: var(--navy-900); }
.legal-content ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.legal-content a { font-weight: 600; }
.legal-content .legal-note {
  background: var(--brand-pale); border-radius: var(--radius-lg); padding: var(--space-lg);
  font-size: var(--body-sm-size); line-height: var(--body-sm-lh); color: var(--body);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900); color: var(--surface-soft); border-radius: 28px;
  max-width: var(--container-max); width: calc(100% - 2 * clamp(12px, 3vw, var(--space-xl)));
  margin: var(--space-lg) auto 0; padding: clamp(22px, 3.6vw, 48px);
}
.footer-grid {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-brand img { height: 64px; width: auto; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 22px; color: var(--silver-300); max-width: 34ch; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-size: 13px; font-weight: 800; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--brand); }
.footer-col a {
  color: var(--surface-soft); font-size: 14px; width: fit-content;
  transition: color 160ms ease-out, transform 160ms ease-out;
}
.footer-col a:hover { color: var(--brand); transform: translateX(3px); }
.footer-col span.static { font-size: 14px; color: var(--surface-soft); }
.footer-col .muted { color: var(--silver-300); }

.legal-bar {
  max-width: var(--container-max); margin: var(--space-2xl) auto 0; padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap;
  font-size: 13px; color: var(--silver-500);
}
.legal-bar a { color: var(--silver-500); transition: color 160ms ease-out; }
.legal-bar a:hover { color: var(--brand); }

/* ---------- Animations ---------- */

@keyframes pac-route { to { stroke-dashoffset: 0; } }
@keyframes pac-pin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pac-pulse { 0% { r: 6; opacity: .55; } 100% { r: 26; opacity: 0; } }
@keyframes mi-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
