/* ============================================
   AutoMalin — V4 Design original
   Archivo + IBM Plex Sans · GSAP · Lenis
   ============================================ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: var(--t15); font-weight: 400; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; border-radius: 0; -webkit-appearance: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

/* ── Tokens ── */
:root {
  --heading: 'Archivo', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --black: #0E0E0E;
  --navy: #0B172A;
  --bg: #F4F2EE;
  --white: #FFFFFF;
  --text: #17202A;
  --text-2: #5B6470;
  --text-3: #8A919A;
  --filet: #D9D6CF;
  --filet-dark: #2A2A2A;
  --accent: #E30613;
  --accent-hover: #C80510;
  --available: #16845B;
  --t13: 13px; --t15: 15px; --t17: 17px; --t21: 21px; --t28: 28px; --t40: 40px; --t56: 56px; --t80: 80px;
  --s4: 4px; --s8: 8px; --s16: 16px; --s24: 24px; --s40: 40px; --s64: 64px; --s96: 96px;
  --mx: 48px; --mx-m: 20px; --max: 1440px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--mx); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s8);
  height: 52px; padding: 0 28px;
  font-family: var(--heading); font-size: var(--t13); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--black); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--filet); }
.btn--outline:hover { background: var(--text); color: var(--white); border-color: var(--text); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--bg); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 12px; }
.btn__arrow { width: 16px; height: 16px; transition: transform 200ms; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.text-link { font-size: var(--t15); font-weight: 500; color: var(--accent); transition: opacity 150ms; }
.text-link:hover { opacity: 0.7; }

/* ============================================
   HEADER (sticky, blanc, logo couleur)
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--filet);
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
.header--hidden { transform: translateY(-100%); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--max); margin: 0 auto; padding: 0 var(--mx);
}
.header__logo img { height: 32px; width: auto; }
.header__nav { display: flex; align-items: center; gap: var(--s40); }
.header__nav a {
  font-size: var(--t15); font-weight: 500; color: var(--text);
  position: relative; transition: color 150ms;
}
.header__nav a:hover { color: var(--accent); }
.header__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 200ms;
}
.header__nav a:hover::after { width: 100%; }
.header__right { display: flex; align-items: center; gap: var(--s16); }
.header__phone { font-size: var(--t15); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.header__toggle { display: none; flex-direction: column; gap: 5px; width: 24px; padding: 4px 0; }
.header__toggle span { display: block; height: 2px; background: var(--text); transition: transform 200ms, opacity 200ms; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--white); flex-direction: column; align-items: center;
  justify-content: center; gap: var(--s40);
  opacity: 0; pointer-events: none; transition: opacity 200ms;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: var(--heading); font-size: var(--t28); font-weight: 700; color: var(--text); }

/* ============================================
   HERO — immersif avec recherche intégrée
   ============================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: var(--s96) 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
}
.hero__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.18; filter: grayscale(0.3);
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, rgba(11,23,42,0.92) 30%, rgba(26,40,68,0.85) 55%, rgba(42,21,32,0.88) 80%, rgba(227,6,19,0.35) 100%);
}
.hero__bg-overlay::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(227,6,19,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 0%, rgba(11,23,42,0.5) 0%, transparent 55%);
}
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t13); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s24);
}
.hero__badge-dot { width: 8px; height: 8px; background: var(--accent); }
.hero__title {
  font-family: var(--heading); font-size: var(--t56); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: var(--s24);
}
.hero__title-accent { color: var(--accent); }
.line-wrap { overflow: hidden; display: block; }
.line-inner { display: block; }
.hero__lead {
  font-size: var(--t17); line-height: 1.6; color: rgba(255,255,255,0.55);
  max-width: 560px; margin: 0 auto var(--s40);
}
.hero__actions { display: flex; justify-content: center; gap: var(--s16); margin-bottom: var(--s64); }

/* Search intégrée dans le hero */
.hero-search {
  position: relative; z-index: 2;
  background: var(--white);
  margin: 0 auto;
  max-width: 1100px;
  transform: translateY(50%);
  box-shadow: 0 12px 48px rgba(14,14,14,0.12), 0 2px 6px rgba(14,14,14,0.06);
}
.hero-search__fields {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0;
}
.hero-search__field {
  padding: var(--s16) var(--s24);
  border-right: 1px solid var(--filet);
  display: flex; flex-direction: column; gap: var(--s4);
}
.hero-search__field:last-of-type { border-right: none; }
.hero-search__field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
}
.hero-search__field select,
.hero-search__field input {
  border: none; background: transparent; font-size: var(--t15);
  font-weight: 500; color: var(--text); outline: none; padding: 0; width: 100%;
}
.hero-search__cta { display: flex; align-items: stretch; }
.hero-search__cta .btn { height: auto; padding: var(--s16) var(--s40); white-space: nowrap; }

/* ============================================
   QUICK ACCESS — chips thématiques
   ============================================ */
.quick-access {
  padding: calc(var(--s64) + 40px) 0 var(--s40);
  background: var(--white);
}
.quick-access__row {
  display: flex; align-items: center; gap: var(--s8);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--s8);
}
.quick-access__row::-webkit-scrollbar { display: none; }
.quick-access__label {
  font-size: var(--t13); font-weight: 600; color: var(--text-2);
  white-space: nowrap; margin-right: var(--s8);
}
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s24);
  font-size: var(--t13); font-weight: 600; color: var(--text); white-space: nowrap;
  border: 1px solid var(--filet); transition: all 150ms;
}
.chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip--active { background: var(--navy); color: var(--white); border-color: var(--navy); }


/* ============================================
   SECTION (générique)
   ============================================ */
.section { padding: var(--s96) 0; }
.section--bg { background: var(--bg); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--dark { background: var(--black); color: var(--white); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--s40); gap: var(--s16);
}
.section__eyebrow {
  font-size: var(--t13); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s8);
}
.section__title {
  font-family: var(--heading); font-size: var(--t40); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
}
.section__more { flex-shrink: 0; }

/* ============================================
   VEHICLE CARDS
   ============================================ */
.vgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s24);
}
.vcard {
  background: var(--white); border: 1px solid var(--filet);
  overflow: hidden; box-shadow: 0 2px 8px rgba(14,14,14,0.03);
  transition: border-color 200ms, box-shadow 300ms, transform 300ms;
}
.vcard:hover {
  border-color: var(--text-2);
  box-shadow: 0 8px 32px rgba(14,14,14,0.1);
  transform: translateY(-2px);
}
.vcard__img {
  position: relative; overflow: hidden; aspect-ratio: 4/3; background: #E8E5E0;
}
.vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.22,1,0.36,1); }
.vcard:hover .vcard__img img { transform: scale(1.04); }
.vcard__badge {
  position: absolute; top: var(--s8); left: var(--s8); height: 24px; padding: 0 var(--s8);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; align-items: center; z-index: 1;
}
.vcard__badge--new { background: var(--accent); color: var(--white); }
.vcard__badge--green { background: var(--available); color: var(--white); }
.vcard__body { padding: var(--s16); }
.vcard__name {
  font-family: var(--heading); font-size: var(--t17); font-weight: 700; color: var(--text); margin-bottom: 2px;
}
.vcard__trim { font-size: var(--t13); color: var(--text-2); margin-bottom: var(--s16); }
.vcard__meta {
  display: flex; flex-wrap: wrap; gap: var(--s8); margin-bottom: var(--s16);
}
.vcard__meta span {
  font-size: 12px; font-weight: 500; color: var(--text-2); padding: 4px 8px;
  border: 1px solid var(--filet);
}
.vcard__footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--filet); padding-top: var(--s16);
}
.vcard__price {
  font-family: var(--heading); font-size: var(--t21); font-weight: 800;
  color: var(--text); letter-spacing: -0.01em;
}
.vcard__monthly { font-size: var(--t13); color: var(--text-2); text-align: right; }
.vcard__monthly strong { font-weight: 600; color: var(--text); display: block; }
.vcard__loc { font-size: 12px; color: var(--text-3); margin-top: var(--s8); }

/* ============================================
   PROMESSE — timeline 4 étapes
   ============================================ */
.promise {
  position: relative; padding: var(--s96) 0; color: var(--white); overflow: hidden;
  background:
    linear-gradient(160deg,
      var(--navy) 0%,
      #0F1F3A 20%,
      #1C1525 45%,
      #3A0A10 70%,
      var(--accent) 100%);
}
.promise::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 55%; height: 160%;
  background: radial-gradient(ellipse, rgba(227,6,19,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.promise::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.promise__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.promise__step {
  padding: var(--s40);
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: background 300ms;
}
.promise__step:last-child { border-right: none; }
.promise__step:hover { background: rgba(255,255,255,0.03); }
.promise__n {
  font-family: var(--heading); font-size: var(--t56); font-weight: 800;
  color: rgba(255,255,255,0.08); line-height: 1; margin-bottom: var(--s24);
}
.promise__step-title {
  font-family: var(--heading); font-size: var(--t21); font-weight: 700;
  margin-bottom: var(--s16);
}
.promise__step-desc {
  font-size: var(--t15); color: rgba(255,255,255,0.5); line-height: 1.6;
}
.promise__bar {
  position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 400ms cubic-bezier(0.22,1,0.36,1);
}
.promise__step:hover .promise__bar { width: 100%; }

/* ============================================
   ECOSYSTEM — sub-brands
   ============================================ */
.eco-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24);
}
.eco-card {
  padding: var(--s40);
  background: linear-gradient(160deg, var(--white) 0%, #F9F8F6 100%);
  border: 1px solid var(--filet);
  box-shadow: 0 2px 12px rgba(14,14,14,0.03);
  transition: border-color 200ms, box-shadow 300ms, transform 300ms;
}
.eco-card:hover {
  border-color: var(--text-2);
  box-shadow: 0 8px 32px rgba(14,14,14,0.08);
  transform: translateY(-2px);
}
.eco-card__brand {
  font-family: var(--heading); font-size: var(--t28); font-weight: 800;
  color: var(--text); margin-bottom: var(--s8);
}
.eco-card__brand span { color: var(--accent); }
.eco-card__desc {
  font-size: var(--t15); color: var(--text-2); line-height: 1.6; margin-bottom: var(--s24);
}
.eco-card__link { align-self: flex-start; }

/* ============================================
   REVIEWS
   ============================================ */
.rev-row { display: flex; align-items: center; gap: var(--s64); margin-bottom: var(--s64); }
.rev-score {
  font-family: var(--heading); font-size: var(--t80); font-weight: 800;
  line-height: 1; letter-spacing: -0.04em;
}
.rev-meta { display: flex; flex-direction: column; gap: var(--s4); }
.rev-stars { font-size: var(--t21); color: #F5A623; letter-spacing: 2px; }
.rev-count { font-size: var(--t15); color: rgba(255,255,255,0.5); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24); }
.rev-card {
  border: 1px solid rgba(255,255,255,0.1); padding: var(--s40);
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  display: flex; flex-direction: column;
}
.rev-card__text {
  font-size: var(--t17); line-height: 1.6; color: rgba(255,255,255,0.8);
  flex: 1; margin-bottom: var(--s24);
}
.rev-card__author { font-size: var(--t13); font-weight: 600; color: rgba(255,255,255,0.5); }

/* ============================================
   CONCESSIONS
   ============================================ */
.conc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s24); }
.conc {
  border: 1px solid var(--filet); padding: var(--s40) var(--s24);
  background: linear-gradient(170deg, var(--white) 0%, #F7F6F3 100%);
  box-shadow: 0 2px 8px rgba(14,14,14,0.03);
  transition: border-color 200ms, box-shadow 300ms;
}
.conc:hover { border-color: var(--text-2); box-shadow: 0 6px 24px rgba(14,14,14,0.07); }
.conc__city {
  font-family: var(--heading); font-size: var(--t21); font-weight: 700;
  color: var(--text); margin-bottom: var(--s8);
}
.conc__address { font-size: var(--t15); color: var(--text-2); line-height: 1.5; margin-bottom: var(--s24); }
.conc__link {
  font-size: var(--t13); font-weight: 600; color: var(--accent);
  letter-spacing: 0.02em; text-transform: uppercase;
}

/* ============================================
   BRANDS MARQUEE
   ============================================ */
.marquee { overflow: hidden; border-bottom: 1px solid var(--filet); padding: var(--s16) 0; }
.marquee__track { display: flex; gap: var(--s40); white-space: nowrap; will-change: transform; }
.marquee__track span {
  font-family: var(--heading); font-size: var(--t17); font-weight: 600;
  color: var(--text-3); flex-shrink: 0; transition: color 150ms; cursor: default;
}
.marquee__track span:hover { color: var(--text); }

/* ============================================
   CTA BAND
   ============================================ */
.cta-band { background: var(--accent); color: var(--white); text-align: center; padding: var(--s64) 0; }
.cta-band__title {
  font-family: var(--heading); font-size: var(--t40); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: var(--s8);
}
.cta-band__sub { font-size: var(--t17); color: rgba(255,255,255,0.8); margin-bottom: var(--s40); }

/* ============================================
   FAQ
   ============================================ */
.faq__item { border-bottom: 1px solid var(--filet); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: var(--s24) 0;
  font-family: var(--heading); font-size: var(--t17); font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer; transition: color 150ms;
}
.faq__q:hover { color: var(--accent); }
.faq__chevron { width: 20px; height: 20px; stroke: var(--text-2); stroke-width: 2; flex-shrink: 0; transition: transform 300ms; }
.faq__item.is-open .faq__chevron { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 400ms cubic-bezier(0.22,1,0.36,1); }
.faq__item.is-open .faq__a { max-height: 300px; }
.faq__a p { font-size: var(--t15); color: var(--text-2); line-height: 1.7; padding-bottom: var(--s24); max-width: 700px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: var(--s96) 0 var(--s40); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s64); margin-bottom: var(--s96); }
.footer__logo { margin-bottom: var(--s24); }
.footer__logo img { height: 30px; width: auto; }
.footer__desc { font-size: var(--t15); line-height: 1.6; max-width: 340px; }
.footer__col-title {
  font-family: var(--heading); font-size: var(--t13); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: var(--s24);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s16); }
.footer__link { font-size: var(--t15); color: rgba(255,255,255,0.6); transition: color 150ms; }
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--s24);
}
.footer__copy { font-size: var(--t13); color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: var(--s24); }
.footer__legal a { font-size: var(--t13); color: rgba(255,255,255,0.3); transition: color 150ms; }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Mobile bar ── */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s8) var(--mx-m) calc(var(--s8) + env(safe-area-inset-bottom, 0px));
}
.mobile-bar__inner { display: flex; justify-content: space-around; }
.mobile-bar__item {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.7);
  padding: var(--s8) var(--s16); transition: color 150ms;
}
.mobile-bar__item:hover { color: var(--white); }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .line-inner { transform: none !important; opacity: 1 !important; }
  .marquee__track { transform: none !important; }
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .wrap { padding: 0 var(--mx-m); }
  .header__inner { padding: 0 var(--mx-m); }
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__toggle { display: flex; }
  .mobile-nav { display: flex; }
  .mobile-bar { display: block; }

  .hero__title { font-size: var(--t40); }
  .hero-search__fields { grid-template-columns: 1fr 1fr; }
  .hero-search__cta { border-top: 1px solid var(--filet); }
  .hero-search__cta .btn { width: 100%; }
  .hero-search { margin: 0 var(--mx-m); }

  .vgrid { grid-template-columns: 1fr 1fr; }
  .promise__grid { grid-template-columns: 1fr 1fr; }
  .promise__step:nth-child(2) { border-right: none; }
  .eco-grid { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .rev-row { flex-direction: column; align-items: flex-start; gap: var(--s24); }
  .conc-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s40); }
  .footer { padding-bottom: calc(var(--s96) + 60px); }
}

/* ============================================
   RESPONSIVE — 640px
   ============================================ */
@media (max-width: 640px) {
  .hero { padding: var(--s64) 0 0; }
  .hero__title { font-size: clamp(var(--t28), 8vw, var(--t40)); }
  .hero__actions { flex-direction: column; align-items: center; gap: var(--s8); }
  .hero-search__fields { grid-template-columns: 1fr; }

  .vgrid { grid-template-columns: 1fr; }
  .promise__grid { grid-template-columns: 1fr; }
  .promise__step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .promise__step:last-child { border-bottom: none; }
  .conc-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s40); }
  .footer__bottom { flex-direction: column; gap: var(--s16); text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }
  .section { padding: var(--s64) 0; }
  .section__title { font-size: var(--t28); }
}
