/* =========================================================================
   ZAUTO · style.css · Feuille de style principale
   Site institutionnel multimarque. Structure modulaire, prête WordPress.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3.5rem, 7vw, 3rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--alt { background: var(--off-white); }

.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: var(--blue-400); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin-top: 0.9rem; }
.section--dark .section-head p { color: var(--text-on-dark); opacity: 0.82; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold); font-size: 0.95rem; border: 1.6px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(42,105,178,.36); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: var(--ink-800); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--grey-300); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: #fff; color: var(--ink-900); }
.btn--ghost { padding-inline: 0.2rem; color: var(--accent); font-weight: var(--fw-semibold); }
.btn--ghost:hover { gap: 0.85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-weight: var(--fw-semibold); transition: gap var(--dur) var(--ease); }
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { gap: 0.85rem; }

/* ========================================================================
   HEADER
   ======================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }
.header__inner { width: min(100% - 2*var(--gutter), var(--container)); margin-inline: auto; display: flex; align-items: center; gap: var(--space-lg); }
.header__logo { flex-shrink: 0; display: block; }
.header__logo img { display: block; height: 30px; width: 117px; }
.nav { display: flex; align-items: center; gap: 0.15rem; margin-right: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem; height: var(--header-h);
  padding: 0 0.95rem; background: none; border: 0; color: var(--ink);
  font-size: 0.94rem; font-weight: var(--fw-medium); position: relative;
}
.nav__link .chev { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 20px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__item:hover .nav__link::after { transform: scaleX(1); }
.nav__item:hover .nav__link .chev { transform: rotate(180deg); }

/* Méga-menu marques */
.megamenu {
  position: absolute; top: calc(var(--header-h) - 12px); left: 0; transform: translateY(10px);
  width: min(680px, 90vw); background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.4rem;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__item:hover .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.mm-brand { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--border); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mm-brand:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.mm-brand__logo { height: 26px; display: flex; align-items: center; }
.mm-brand__logo img { height: 100%; width: auto; object-fit: contain; }
.mm-brand__name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.95rem; }
.mm-brand__go { font-size: 0.8rem; color: var(--accent); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 0.35rem; }
.mm-brand.is-soon { opacity: 0.55; pointer-events: none; }
.mm-brand.is-soon .mm-brand__go { color: var(--text-muted); }
.mm-brand__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.mm-brand--enseigne { border-style: dashed; }
.mm-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0 0.2rem; }
.mm-sep::before, .mm-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.mm-sep span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: var(--fw-semibold); white-space: nowrap; }
.megamenu__foot { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }

.header__actions { display: flex; align-items: center; gap: 0.7rem; }
.header__actions .btn { padding: 0.65rem 1.1rem; font-size: 0.88rem; }
.icon-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: var(--fw-medium); color: var(--ink); }
.icon-link svg { width: 18px; height: 18px; }
.icon-link:hover { color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: var(--dur) var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Menu mobile */
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff; transform: translateX(100%); transition: transform var(--dur) var(--ease); overflow-y: auto; padding: 1.5rem var(--gutter) 3rem; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 1.05rem; }
.mobile-nav .m-sub { padding-left: 1rem; }
.mobile-nav .m-sub a { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-muted); }
.mobile-nav .m-sub-label { padding: 0.7rem 0 0.2rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: var(--fw-semibold); border-bottom: none; }
.mobile-nav .m-cta { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }

/* ========================================================================
   HERO
   ======================================================================== */
.hero { position: relative; margin-top: var(--header-h); min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink-900); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,31,.78) 0%, rgba(20,24,31,.50) 45%, rgba(38,36,82,.30) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: 4rem; }
.hero__content { max-width: 680px; }
.hero h1 { font-size: var(--fs-hero); }
.hero h1 .grad { background: linear-gradient(120deg, #6ea8e8, #cbd8f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: var(--fs-lead); opacity: .88; margin: 1.2rem 0 2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); display: grid; place-items: center; gap: 0.4rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; }

/* ========================================================================
   MARQUES (cartes)
   ======================================================================== */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.brand-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-dark); color: #fff; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.brand-card__img { position: absolute; inset: 0; z-index: -2; }
.brand-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.brand-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,31,.15) 0%, rgba(20,24,31,.55) 55%, rgba(20,24,31,.92) 100%); }
.brand-card:hover .brand-card__img img { transform: scale(1.06); }
.brand-card__body { padding: 1.6rem; }
.brand-card__logo { height: 30px; margin-bottom: 0.9rem; filter: brightness(0) invert(1); }
.brand-card__logo img { height: 100%; width: auto; }
.brand-card__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: var(--fw-bold); }
.brand-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 1.1rem; }
.brand-card__tags span { font-size: 0.72rem; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.brand-card__go { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: var(--fw-semibold); color: #fff; }
.brand-card__go svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.brand-card:hover .brand-card__go svg { transform: translateX(4px); }
.brand-card--soon { background: var(--off-white); color: var(--text-muted); border: 1.5px dashed var(--grey-300); align-items: center; justify-content: center; text-align: center; }
.brand-card--soon::after { display: none; }
.brand-card--soon .brand-card__body { padding: 2rem; }
.badge-soon { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: var(--fw-semibold); color: var(--accent); }

/* ========================================================================
   ENSEIGNES SERVICES
   ======================================================================== */
.enseignes-sep { display: flex; align-items: center; gap: 1.2rem; margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.2rem); }
.enseignes-sep__line { flex: 1; height: 1px; background: var(--border); }
.enseignes-sep__label { font-family: var(--font-display); font-size: 0.78rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); white-space: nowrap; }
.enseignes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.enseigne-card { display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.enseigne-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.enseigne-card__logo { height: 48px; width: auto; max-width: 100px; object-fit: contain; flex-shrink: 0; }
.enseigne-card__body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.enseigne-card__body p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ========================================================================
   CHIFFRES / STATS
   ======================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius-md); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: var(--fw-bold); background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.section--dark .stat__num { background: linear-gradient(120deg, #6ea8e8, #cbd8f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 0.6rem; font-size: 0.92rem; color: var(--text-muted); }
.section--dark .stat__label { color: var(--text-on-dark); opacity: .8; }

/* ========================================================================
   SERVICES (tuiles)
   ======================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tile { padding: 1.8rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.tile__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.tile__ic svg { width: 26px; height: 26px; color: #fff; }
.tile__ic--img { padding: 10px; }
.tile__ic--img img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.tile h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.tile p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.tile .link-arrow { margin-top: 1rem; }
.tile--photo { padding: 0; overflow: hidden; }
.tile--photo .tile__img { width: 100%; height: 160px; overflow: hidden; }
.tile--photo .tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile--photo:hover .tile__img img { transform: scale(1.06); }
.tile--photo .tile__body { padding: 1.2rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tile--photo .tile__body p { flex: 1; }
.tile--photo .tile__body .link-arrow { margin-top: auto; }
.tile--photo h3:not(.tile__body h3), .tile--photo p:not(.tile__body p) { padding: 0 1.6rem; }
.tile--photo h3:not(.tile__body h3) { padding-top: 1.2rem; }
.tile--photo p:not(.tile__body p) { padding-bottom: 1.6rem; }

/* ========================================================================
   FLOATING LOGOS — section "Notre histoire"
   ======================================================================== */
.history-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.floating-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 240px;
  margin: 0 auto;
}
.fl-logo {
  width: 85%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.10));
  will-change: transform;
}
.fl-logo--hyundai { animation: fl-float-1 7s ease-in-out infinite; }
.fl-logo--skoda   { animation: fl-float-2 8s ease-in-out infinite; }
.fl-logo--isuzu   { animation: fl-float-3 7.5s ease-in-out infinite; }

@keyframes fl-float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes fl-float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1.5deg); }
}
@keyframes fl-float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}

@media (max-width: 768px) {
  .tiles { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr; }
  .floating-logos { max-width: 200px; margin-top: 1rem; }
}

/* ========================================================================
   BANDEAU CTA / ENTREPRISES
   ======================================================================== */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-dark); color: #fff; padding: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band__glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-band__glow img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.cta-band > *:not(.cta-band__glow) { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band p { opacity: .85; margin-top: 0.8rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.cta-band__actions .btn { width: 100%; justify-content: center; }

/* ========================================================================
   « POURQUOI ZAUTO » (features)
   ======================================================================== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.feature { display: flex; gap: 1rem; }
.feature__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--off-white); border: none; display: grid; place-items: center; color: var(--accent); }
.feature__ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ========================================================================
   CONTACT / CONCESSION
   ======================================================================== */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.info-line { display: flex; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.info-line:last-child { border-bottom: 0; }
.info-line svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.info-line strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.info-line span { color: var(--text-muted); font-size: 0.92rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: var(--off-white); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 1rem; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: var(--fw-semibold); color: var(--grey-700); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.94rem; background: #fff; transition: border-color var(--dur) var(--ease);
}
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.consent-group { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.2rem; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); }
.consent input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15em; accent-color: var(--accent); cursor: pointer; }
.consent label { cursor: pointer; }
.consent label em { font-style: italic; color: var(--grey-500); }
.consent label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-notice { font-size: 0.78rem; line-height: 1.55; color: var(--text-muted); margin: 0.4rem 0 0; }
.form-notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field label .req, .field > label::after { color: var(--accent); }

/* ========================================================================
   MODAL VÉHICULE D'OCCASION
   ======================================================================== */
.vo-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.vo-modal-overlay.is-open { opacity: 1; visibility: visible; }
.vo-modal-overlay.is-open .vo-modal { transform: translateY(0); }
.vo-modal {
  background: #fff; border-radius: var(--radius-md, 12px);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  padding: 2rem 2rem 1.6rem; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(24px);
  transition: transform .3s ease;
}
.vo-modal__close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: var(--text-muted); cursor: pointer; transition: color .2s;
}
.vo-modal__close:hover { color: var(--ink-900); }
.vo-modal h2 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.vo-modal__vehicle {
  font-size: 0.92rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1.4rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.vo-modal__form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vo-modal__form .field { margin-bottom: 0.8rem; }
.vo-modal__form .field.full { grid-column: 1 / -1; }
.vo-modal__form .field > label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink-700); }
.vo-modal__form .field input:not([type="checkbox"]),
.vo-modal__form .field textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm, 8px);
  font: inherit; font-size: 0.92rem; background: #fff;
  transition: border-color .2s;
}
.vo-modal__form .field input:not([type="checkbox"]):focus,
.vo-modal__form .field textarea:focus { outline: none; border-color: var(--accent); }
.vo-modal__form .field textarea { resize: vertical; min-height: 80px; }
.vo-modal__form .consent-group { margin-bottom: 0; }
.vo-modal__form .consent label { font-weight: 400; color: var(--text-muted); margin-bottom: 0; }

@media (max-width: 600px) {
  .vo-modal { padding: 1.4rem 1.2rem 1.2rem; }
  .vo-modal__form .form-row { grid-template-columns: 1fr; }
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer { background: var(--ink-900); color: var(--text-on-dark); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { display: block; height: 30px; width: 117px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer__brand p { opacity: .7; font-size: 0.92rem; max-width: 280px; }
.footer__socials { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: var(--dur) var(--ease); }
.footer__socials a:hover { border-color: transparent; }
.footer__socials a[aria-label="Facebook"]:hover { background: #1877F2; }
.footer__socials a[aria-label="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer__socials a[aria-label="LinkedIn"]:hover { background: #0A66C2; }
.footer__socials svg { width: 18px; height: 18px; }
.footer__col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-400); margin-bottom: 1rem; }
.footer__col a { display: block; padding: 0.32rem 0; font-size: 0.92rem; opacity: .82; }
.footer__col a:hover { opacity: 1; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; font-size: 0.82rem; opacity: .72; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-top: var(--header-h); background: var(--off-white); border-bottom: 1px solid var(--border); }
.breadcrumb .container { padding: 0.9rem 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 46px; height: 46px; border-radius: 50%; background: var(--ink-900); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--dur) var(--ease); z-index: 90; box-shadow: var(--shadow-md); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Bandeau cookies ---------- */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 95; max-width: 560px; margin-inline: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 1.2rem 1.4rem; display: none; }
.cookie-bar.is-visible { display: block; }
.cookie-bar p { font-size: 0.88rem; color: var(--text-muted); }
.cookie-bar__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.cookie-bar__actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ========================================================================
   PAGE HERO (sous-pages)
   ======================================================================== */
.page-hero { margin-top: var(--header-h); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--grad-dark); color: #fff; }
.page-hero__content { max-width: 760px; }
.page-hero h1 { font-size: var(--fs-h2); }
.page-hero h1 .grad { background: linear-gradient(120deg, #6ea8e8, #cbd8f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__lead { font-size: var(--fs-lead); opacity: .85; margin: 1rem 0 0; max-width: 620px; }

/* ========================================================================
   BRAND DETAIL (nos-marques.html)
   ======================================================================== */
.brand-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border); }
.brand-detail:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.brand-detail--reverse .brand-detail__visual { order: 2; }
.brand-detail--reverse .brand-detail__body { order: 1; }
.brand-detail__visual { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--off-white); }
.brand-detail__visual img { width: 100%; height: 100%; object-fit: cover; }
.brand-detail__visual.no-img { display: grid; place-items: center; color: var(--text-muted); font-size: 0.9rem; }
.brand-detail__visual.no-img::after { content: "Image à venir"; }
.brand-detail__logo { height: 32px; margin-bottom: 0.7rem; }
.brand-detail__logo img { height: 100%; width: auto; object-fit: contain; }
.brand-detail__body h3 { font-size: var(--fs-h3); margin-bottom: 0.7rem; }
.brand-detail__body p { color: var(--text-muted); margin-bottom: 1.2rem; }
.brand-detail__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.brand-detail__tags span { font-size: 0.75rem; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); background: var(--off-white); border: 1px solid var(--border); color: var(--text-muted); font-weight: var(--fw-medium); }

/* ========================================================================
   SERVICE BLOCK (services.html)
   ======================================================================== */
/* Legacy icon blocks (kept for compatibility) */
.service-block { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.service-block--reverse { direction: rtl; }
.service-block--reverse > * { direction: ltr; }
.service-block__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--grad-blue); display: grid; place-items: center; flex-shrink: 0; }
.service-block__icon svg { width: 30px; height: 30px; color: #fff; }
.service-block__icon--img { background: #fff; border: 1px solid var(--border); padding: 10px; }
.service-block__icon--img img { width: 100%; height: 100%; object-fit: contain; }
.service-block__body h2 { font-size: var(--fs-h3); margin-bottom: 0.8rem; }
.service-block__body > p { color: var(--text-muted); margin-bottom: 1.2rem; }

/* Image + texte alternés — pleine largeur */
.section:has(.service-split) { padding-top: 0; padding-bottom: 0; }
.section:has(.service-split) > .container { max-width: 100%; padding: 0; }

.service-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: stretch;
}
.service-split--reverse { grid-template-columns: 3fr 2fr; }
.service-split--reverse .service-split__img  { order: 2; }
.service-split--reverse .service-split__body { order: 1; }
.service-split__img {
  overflow: hidden;
  line-height: 0;
}
.service-split__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.service-split:hover .service-split__img img { transform: scale(1.04); }
.service-split__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
}
.service-split__body h2 { font-size: var(--fs-h3); margin-bottom: 0.8rem; }
.service-split__body > p { color: var(--text-muted); margin-bottom: 1.2rem; }

@media (max-width: 768px) {
  .service-split { grid-template-columns: 1fr; }
  .service-split--reverse .service-split__img  { order: 0; }
  .service-split--reverse .service-split__body { order: 0; }
  .service-split__img { max-height: 280px; }
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: baseline; font-size: 0.94rem; color: var(--text-muted); }
.check-list li::before { content: "\2713"; color: var(--accent); font-weight: var(--fw-bold); flex-shrink: 0; }

/* ========================================================================
   FORM CARD (pages formulaires)
   ======================================================================== */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem); }
.section--alt .form-card { border-color: transparent; box-shadow: var(--shadow-md); }

/* ========================================================================
   VÉHICULES D'OCCASION (occasions.html)
   ======================================================================== */
.vo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.vo-card { border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; background: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.vo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vo-card__img { height: 180px; background: var(--off-white); position: relative; overflow: hidden; }
.vo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.vo-card:hover .vo-card__img img { transform: scale(1.05); }
.vo-card__img:empty::after { content: "Photo à venir"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: 0.85rem; }
.vo-card__badge { position: absolute; top: 0.8rem; left: 0.8rem; font-size: 0.7rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: var(--accent); color: #fff; z-index: 1; }
.vo-card__body { padding: 1.2rem 1.4rem 1.4rem; }
.vo-card__body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.vo-card__details { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.vo-card__price { font-family: var(--font-display); font-size: 1.2rem; font-weight: var(--fw-bold); color: var(--accent); margin-bottom: 1rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.vo-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 2rem; font-style: italic; }

/* ========================================================================
   ENSEIGNE CARD LARGE (nos-marques.html)
   ======================================================================== */
.enseigne-card--large { flex-direction: column; align-items: flex-start; padding: 2rem; }
.enseigne-card--large .enseigne-card__logo { height: 40px; max-width: 140px; margin-bottom: 0.6rem; }
.enseigne-card--large .enseigne-card__body p { margin-bottom: 1rem; }

/* ========================================================================
   PROSE (pages textuelles : à propos, légales)
   ======================================================================== */
.prose { max-width: 780px; }
.prose p { color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.75; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.6rem; color: var(--ink); }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.4rem; margin-bottom: 1.2rem; line-height: 1.75; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-ink); }

/* Cookie table */
.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid #e2e2e2; color: var(--text-muted); }
.cookie-table th { font-weight: 600; color: var(--ink); background: var(--off-white); }
.cookie-table tr:last-child td { border-bottom: none; }

/* ========================================================================
   JOB CARDS (recrutement.html)
   ======================================================================== */
.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-card { display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.job-card__body { flex: 1; }
.job-card__body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.job-card__body p { color: var(--text-muted); font-size: 0.92rem; margin: 0.5rem 0 0; }
.job-card__meta { display: flex; gap: 0.8rem; font-size: 0.8rem; color: var(--accent); font-weight: var(--fw-semibold); }
.job-card .btn { flex-shrink: 0; }

/* ---------- Reveal (animation au scroll) ----------
   Gated derrière .js : sans JavaScript (ou avant l'observer), le contenu
   reste visible. Aucune section ne peut donc rester masquée. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}


/* ========================================================================
   CONSENTEMENT COOKIES (bandeau, panneau de préférences, page cookies)
   ======================================================================== */
.cookie-bar p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__actions .btn--outline { border-color: var(--grey-300); }
.cookie-panel { position: fixed; inset: 0; z-index: 9998; background: rgba(19, 23, 32, 0.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.cookie-panel.is-open { opacity: 1; visibility: visible; }
.cookie-panel__box { position: relative; background: #fff; border-radius: var(--radius-md); width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; padding: 2rem; box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform .3s ease; }
.cookie-panel.is-open .cookie-panel__box { transform: none; }
.cookie-panel__close { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.cookie-panel__close:hover { color: var(--ink); }
.cookie-panel h2 { font-size: 1.3rem; margin-bottom: .5rem; padding-right: 2rem; }
.cookie-panel p, .cookie-prefs p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.cookie-cats { display: flex; flex-direction: column; gap: .75rem; margin: 1.2rem 0; }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
label.cookie-cat { cursor: pointer; }
label.cookie-cat:hover { border-color: var(--grey-300); }
.cookie-cat strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--ink); margin-bottom: .2rem; }
.cookie-cat .desc { font-size: .84rem; color: var(--text-muted); line-height: 1.5; }
.cookie-badge { flex-shrink: 0; font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--grey-100); color: var(--grey-700); white-space: nowrap; }
.switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--grey-300); border-radius: 999px; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-panel__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-panel__actions .btn { padding: .65rem 1.2rem; font-size: .88rem; }
.cookie-panel__foot { font-size: .8rem; margin-top: 1rem; }
.cookie-panel__foot a, .cookie-prefs a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-prefs { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); margin: 1.2rem 0 2rem; }
.cookie-prefs .cookie-cats { margin-top: 0; }
.cookie-prefs .cookie-panel__actions { justify-content: flex-start; }
.cookie-saved { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--accent-ink); font-weight: 600; margin-left: .5rem; }

/* ---------- Carte : chargement sur action (RGPD) ---------- */
.map-consent { text-align: center; padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.map-consent p { font-size: .9rem; color: var(--text-muted); max-width: 400px; line-height: 1.55; margin: 0; }
.map-consent strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: .3rem; font-size: 1.05rem; }
.map-consent a { font-size: .85rem; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.map-embed.is-loaded { display: block; }
.map-embed.is-loaded .leaflet-container { width: 100%; height: 100%; min-height: 320px; }

/* ---------- Pages légales ---------- */
.legal-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.2rem !important; }
.prose .legal-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; padding: 0; list-style: none; }
.prose .legal-toc a { display: inline-block; font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border-radius: var(--radius-pill); background: var(--grey-100); color: var(--grey-700); text-decoration: none; transition: var(--dur) var(--ease); }
.prose .legal-toc a:hover { background: var(--accent); color: #fff; }
.prose h2 { font-size: var(--fs-h3); margin: 3rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.prose h3[id], .prose h2[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--grey-100); padding: .1em .4em; border-radius: 4px; color: var(--ink); }
.legal-box { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; margin: 1.2rem 0 1.6rem; font-size: .92rem; }
.legal-box p { margin-bottom: .8rem; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-table td { vertical-align: top; }
.legal-table td:first-child { font-weight: 600; color: var(--ink); }
.placeholder-legal { display: inline-block; background: #fff7e6; border: 1px dashed #d99a2b; color: #7a5200; padding: .25rem .6rem; border-radius: 6px; font-size: .85rem; margin-top: .3rem; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.2rem 0 2.2rem; }
.prose .doc-card, .prose .doc-card:hover { text-decoration: none; color: var(--ink); }
.doc-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; transition: var(--dur) var(--ease); }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.doc-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: .3rem; }
.doc-card strong { font-family: var(--font-display); font-size: .98rem; }
.doc-card span { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.doc-card span:last-child { font-weight: 600; color: var(--accent); }
@media (max-width: 640px) { .cookie-table { display: block; overflow-x: auto; } .cookie-panel__box { padding: 1.5rem 1.2rem; } }
