/* ============================================================
   First Class Rent a Car — Feuille de style principale
   ------------------------------------------------------------
   Couleur d'accent : or (jaune de la carrosserie du hero) (--lime / --lime-light /
   --lime-dark). Pour changer toute l'identité du site, il suffit
   de modifier ces 3 valeurs ci-dessous.
   ============================================================ */

:root {
  --lime: #eec547;
  --lime-light: #f6da85;
  --lime-dark: #8a7229;
  --dark: #262626;
  --dark-2: #2e2e2e;
  --dark-3: #1c1c1c;
  --text: #2b2b2b;
  --gray: #7c7c7c;
  --gray-light: #b5b5b5;
  --bg-light: #f3f4f0;
  --white: #ffffff;
  --border: #e4e5e0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-script: 'Yellowtail', 'Segoe Script', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body.no-scroll { overflow: hidden; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Doit rester avant les règles `display` des composants : sans cela,
   `display: block/flex/grid` l'emporte sur l'attribut HTML `hidden`. */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ============================================================
   Intro — écran d'accueil
   ============================================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(135deg, #454545 0%, #2e2e2e 48%, #232323 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity .65s ease, visibility .65s ease;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--lime-light), var(--lime) 55%, var(--lime-dark));
  clip-path: polygon(100% 58%, 100% 100%, 60% 100%);
  animation: intro-slide-br 1s cubic-bezier(.2, .8, .25, 1) both;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, var(--lime) 0%, var(--lime-dark) 90%);
  clip-path: polygon(0 0, 26% 0, 0 20%);
  animation: intro-slide-tl 1s cubic-bezier(.2, .8, .25, 1) both;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__logo {
  position: relative;
  z-index: 2;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  animation: intro-pop 1s cubic-bezier(.2, .9, .3, 1.25) both;
}
.intro__logo .logo__mark { height: 150px; }
.intro__logo .logo__text { align-items: center; }
.intro__logo .logo__name { font-size: 34px; }
.intro__logo .logo__sub { font-size: 11px; letter-spacing: .42em; }

.intro__dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  margin-top: 58px;
}
.intro__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  animation: intro-dot 1.1s ease-in-out infinite;
}
.intro__dots span:nth-child(2) { animation-delay: .18s; }
.intro__dots span:nth-child(3) { animation-delay: .36s; }

.intro__powered {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a5a5a5;
}
.intro__powered b { color: var(--lime); font-weight: 700; }
.intro__powered a { color: var(--lime); font-weight: 700; }
.intro__powered a:hover { text-decoration: underline; }

@keyframes intro-pop {
  from { opacity: 0; transform: translateY(26px) scale(.82); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes intro-dot {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes intro-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes intro-slide-br {
  from { transform: translate(40%, 40%); }
  to   { transform: none; }
}
@keyframes intro-slide-tl {
  from { transform: translate(-40%, -40%); }
  to   { transform: none; }
}

/* ============================================================
   Boutons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn__arrow, .btn__play { width: 18px; height: 18px; flex: none; }

.btn--lime {
  background: var(--lime);
  color: var(--dark);
}
.btn--lime:hover {
  background: var(--lime-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(238, 197, 71, .38);
}

.btn--white {
  background: var(--white);
  color: var(--dark);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }

.btn--outline {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--lime); color: var(--dark); box-shadow: 0 6px 16px rgba(0,0,0,.08); }

.btn--card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 12px 18px;
  font-size: 12px;
}
.btn--card:hover { background: var(--lime); border-color: var(--lime); }

/* ============================================================
   Logo
   ============================================================ */

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  line-height: 0;
}
.logo__mark { height: 48px; width: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  white-space: nowrap;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo__sub {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--lime);
}
.logo--dark .logo__sub { color: var(--lime-dark); }

.logo--dark { color: var(--dark); }

/* ============================================================
   Header
   ============================================================ */

.header {
  background: var(--dark-2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.nav { display: flex; gap: 30px; }
.nav__link { white-space: nowrap; }

.nav__link {
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 6px;
  position: relative;
  transition: color .2s;
}
.nav__link:hover { color: var(--white); }
.nav__link--active { color: var(--lime); }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.header__right { display: flex; align-items: center; gap: 18px; }
.header__phone { white-space: nowrap; }

.header__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.header__phone svg { width: 17px; height: 17px; color: var(--lime); }
.header__phone:hover { color: var(--lime); }

.header__cta { padding: 13px 22px; font-size: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: .3s; }

/* Extras du menu mobile (téléphone + bouton contact, injectés en JS) */
.nav__extras { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: #2a2a2a url('../images/hero-bg.jpg') no-repeat right center / cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(22, 22, 22, .94) 0%,
    rgba(22, 22, 22, .78) 30%,
    rgba(24, 24, 24, .30) 54%,
    rgba(24, 24, 24, 0) 70%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 505px) 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 80px 100px;
  min-height: 600px;
}

.hero__content { position: relative; z-index: 2; }

.hero__title {
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.02;
  display: grid;
}
.hero__title-big { font-size: clamp(52px, 6.5vw, 86px); letter-spacing: .01em; }
.hero__title-mid {
  font-size: clamp(28px, 3.2vw, 42px);
  background: linear-gradient(90deg, #ffffff 28%, var(--lime) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__title-lime { font-size: clamp(28px, 3.2vw, 42px); color: var(--lime); }

.hero__text {
  margin-top: 22px;
  color: #c9c9c9;
  font-size: 14.5px;
  font-weight: 300;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 30px;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e6e6e6;
  font-size: 12.5px;
  line-height: 1.35;
}

.hero__badge-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1.6px solid rgba(255,255,255,.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.hero__badge-icon svg { width: 21px; height: 21px; }

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ============================================================
   Bannière de page interne
   ============================================================ */

.page-hero {
  position: relative;
  background: linear-gradient(115deg, #343434 0%, #262626 45%, #1e1e1e 100%);
  overflow: hidden;
  padding-block: 52px;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--lime-light), var(--lime) 55%, var(--lime-dark));
  clip-path: polygon(82% 0, 100% 0, 100% 100%, 92% 100%);
}

.page-hero .container { position: relative; z-index: 2; }

/* Sur les guides, la bannière affiche la rubrique : c'est le titre de
   l'article qui doit rester le seul <h1> de la page. Même rendu, autre
   balise. */
.page-hero h1,
.page-hero__label {
  color: var(--white);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.page-hero h1 span,
.page-hero__label span { color: var(--lime); }

/* ------------------------------------------------------------
   Page d'erreur (404)
   Même bandeau sombre que les bannières internes, mais centré et
   plus haut : la page doit se reconnaître au premier coup d'œil.
   ------------------------------------------------------------ */

.error {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #343434 0%, #262626 45%, #1e1e1e 100%);
  padding-block: 72px 78px;
  text-align: center;
}
.error::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--lime-light), var(--lime) 55%, var(--lime-dark));
  clip-path: polygon(84% 0, 100% 0, 100% 100%, 94% 100%);
}
.error__inner { position: relative; z-index: 2; }

/* Chiffre en contour : la couleur de repli reste lisible si le
   navigateur ne connaît pas -webkit-text-stroke. */
.error__code {
  font-size: clamp(92px, 19vw, 176px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.04em;
  color: rgba(238, 197, 71, .16);
  -webkit-text-stroke: 2px var(--lime);
}

.error__title {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
}
.error__title span { color: var(--lime); }

.error__text {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #b3b3b3;
}

.error__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@media (max-width: 760px) {
  .error { padding-block: 48px 54px; }
  .error__actions { flex-direction: column; align-items: stretch; }
  .error__actions .btn { width: 100%; }
}

.crumbs {
  margin-top: 8px;
  font-size: 12.5px;
  color: #9a9a9a;
}
.crumbs a { color: var(--lime); }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; margin-inline: 7px; color: #6b6b6b; }

/* ============================================================
   Recherche
   ============================================================ */

.search-section { padding-block: 34px 10px; }

.search {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.search__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.search__control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding-inline: 12px;
  background: var(--white);
  transition: border-color .2s;
}
.search__control:focus-within { border-color: var(--lime); }

.search__control > svg {
  width: 18px;
  height: 18px;
  color: var(--gray);
  flex: none;
}

.search__control select,
.search__control input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 10px;
  font-size: 13.5px;
  color: var(--gray);
  appearance: none;
  -webkit-appearance: none;
}

.search__control select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%237c7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.search__btn { padding: 15px 28px; }
.search__btn svg { width: 17px; height: 17px; }

/* ============================================================
   Véhicules
   ============================================================ */

.vehicles { padding-block: 55px; }

.vehicles__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--dark);
  line-height: 1.1;
}
.section-title span { color: var(--lime); }

.vehicles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.car-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 10px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.car-card__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f7f7f5;
}
.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform .4s ease;
}

.car-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--dark);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.car-card:hover .car-card__media img { transform: scale(1.05); }

.car-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--dark);
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  transition: color .2s, transform .2s;
}
.car-card__fav svg { width: 17px; height: 17px; }
.car-card__fav:hover { transform: scale(1.1); }
.car-card__fav.is-active { color: #e03131; }
.car-card__fav.is-active svg path { fill: #e03131; }

/* Colonne souple : le bouton reste collé en bas, donc les cartes
   d'une même ligne gardent leurs « Réserver » alignés. */
.car-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 8px 0;
}

.car-card__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--dark);
}

.car-card__meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--gray);
}
.car-card__meta i { font-style: normal; color: var(--gray-light); margin-inline: 4px; }

.car-card__price {
  margin-top: 9px;
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--lime-dark);
  letter-spacing: .01em;
}
.car-card__price em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}

.car-card__body .btn--card { margin-top: auto; }

/* ============================================================
   Pourquoi choisir
   ============================================================ */

.why { padding-block: 30px; }

.why__card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 42px 44px;
}

.why__title {
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--dark);
  margin-bottom: 34px;
}
.why__title span { color: var(--lime); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.why__item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  position: relative;
}
.why__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.why__icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.why__icon svg { width: 40px; height: 40px; }

.why__item h3 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 6px;
}

.why__item p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.55;
}

/* ============================================================
   Vendre — bannière estimation
   ============================================================ */

.sell { padding-block: 30px 60px; }

.sell__banner {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(100deg, var(--lime-light) 0%, var(--lime) 55%, var(--lime-dark) 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 240px;
}

.sell__content {
  padding: 44px 20px 44px 46px;
  position: relative;
  z-index: 2;
}

.sell__content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.18;
}

.sell__content p {
  margin-top: 12px;
  font-size: 14px;
  color: #4a3d12;
}

.sell__content .btn { margin-top: 22px; }

.sell__visual {
  position: relative;
  align-self: stretch;
}

.sell__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}

/* ============================================================
   Footer
   ============================================================ */

.footer { background: var(--white); padding-top: 60px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer__brand .logo { margin-bottom: 26px; }
.footer__brand .logo__mark { height: 66px; }
.footer__brand .logo__name { font-size: 23px; }

.footer__brand > p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 260px;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}
.footer__socials a svg { width: 17px; height: 17px; }
.footer__socials a:hover { background: var(--lime); color: var(--dark); transform: translateY(-2px); }

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dark);
  margin-bottom: 20px;
}

.footer__col ul { display: grid; gap: 12px; }

.footer__col ul li a,
.footer__col ul li span {
  font-size: 13px;
  color: var(--gray);
  transition: color .2s;
}
.footer__col ul li a:hover { color: var(--lime-dark); }

.footer__col--contact ul li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer__col--contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--dark);
}

.footer__bottom {
  background: var(--dark);
  padding: 16px 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 12px;
  color: #bdbdbd;
}
.footer__bottom b { color: var(--lime); font-weight: 600; }
.footer__bottom a { color: var(--lime); font-weight: 600; transition: color .2s; }
.footer__bottom a:hover { text-decoration: underline; }
.footer__sep { margin-inline: 7px; color: #6b6b6b; }

/* ============================================================
   Responsive
   ============================================================ */

/* Le menu passe en burger dès 1200 px : au-delà de 6 entrées, le
   téléphone et le bouton d'action ne tiennent plus sur une ligne. */
@media (max-width: 1200px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--dark-2);
    padding: 10px 4%;
    box-shadow: 0 14px 24px rgba(0,0,0,.35);
  }
  .nav.is-open .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav.is-open .nav__link--active::after { display: none; }

  .nav.is-open .nav__extras { display: grid; gap: 14px; padding: 18px 0 10px; }
  .nav.is-open .nav__extras .header__phone { display: flex; }
  .nav.is-open .nav__extras .header__cta { display: inline-flex; justify-content: center; }

}

@media (max-width: 1080px) {
  .search { grid-template-columns: repeat(2, 1fr); }
  .search__btn { grid-column: 1 / -1; }

  .vehicles__grid { grid-template-columns: repeat(2, 1fr); }

  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .why__item:nth-child(3)::before { display: none; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }

  .hero { background-position: 68% center; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(22, 22, 22, .88) 0%,
      rgba(22, 22, 22, .72) 55%,
      rgba(24, 24, 24, .45) 100%);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 50px 320px;
    min-height: 0;
    text-align: left;
  }
  .hero__badges { gap: 18px; }

  .search { grid-template-columns: 1fr; padding: 18px; }

  .vehicles__head { flex-direction: column; align-items: flex-start; }

  .vehicles__grid { grid-template-columns: 1fr; }

  .why__card { padding: 28px 22px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item::before { display: none !important; }

  .sell__banner { grid-template-columns: 1fr; }
  .sell__content { padding: 32px 26px 0; }
  .sell__visual { min-height: 200px; margin-top: 20px; }
  .sell__visual img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============================================================
   Page Nos véhicules — filtres & liste
   ============================================================ */

.toolbar-section { padding-block: 30px 6px; }

.search--toolbar { grid-template-columns: repeat(5, 1fr) auto; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 18px;
}
.results-bar p { font-size: 13.5px; color: var(--gray); }
.results-bar p b { color: var(--dark); }

.listing { padding-bottom: 60px; }

.empty-state {
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 20px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}
.empty-state strong { display: block; font-size: 17px; color: var(--dark); margin-bottom: 6px; }

.car-card__link { display: block; color: inherit; }

/* ============================================================
   Page détail véhicule
   ============================================================ */

.details { padding-block: 36px 60px; }

.details__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.gallery__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f7f7f5;
  box-shadow: var(--shadow);
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .45s ease;
}

.gallery__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--lime);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 12px;
  border-radius: 8px;
  z-index: 2;
}

.view-zoom-1 { transform: scale(1.9); transform-origin: 32% 62%; }
.view-zoom-2 { transform: scale(1.75); transform-origin: 72% 55%; }
.view-zoom-3 { transform: scale(2.3); transform-origin: 50% 78%; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery__thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  padding: 0;
  background: #dcddd6;
  transition: border-color .2s, opacity .2s;
  opacity: .75;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; background: #f7f7f5; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--lime); opacity: 1; }

.details__card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.details__card + .details__card { margin-top: 18px; }

.details__title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
}

.details__meta { margin-top: 6px; font-size: 13px; color: var(--gray); }
.details__meta i { font-style: normal; color: var(--gray-light); margin-inline: 5px; }

.details__price {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  color: var(--lime);
}
.details__price small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gray);
  margin-top: 2px;
}

.details__actions { display: grid; gap: 10px; margin-top: 18px; }
.details__actions .btn { width: 100%; }

.btn--whatsapp {
  background: #25d366;
  color: #fff;
}
.btn--whatsapp:hover { background: #1fba57; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }

.side-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.55;
}
.side-note svg { width: 16px; height: 16px; flex: none; color: var(--lime-dark); margin-top: 2px; }

.block-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 16px;
}
.block-title span { color: var(--lime); }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}

.spec {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 11px 13px;
}
.spec svg { width: 19px; height: 19px; flex: none; color: var(--lime-dark); }
.spec small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }
.spec b { font-size: 12.5px; color: var(--dark); font-weight: 600; }

.details__desc { font-size: 13.5px; color: #555; line-height: 1.75; }

.equip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.equip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #4a4a4a;
}
.equip svg { width: 15px; height: 15px; flex: none; color: var(--lime-dark); }

.similar { padding-bottom: 65px; }
.similar .vehicles__grid { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   Cartes info contact / services
   ============================================================ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  transition: transform .25s;
}
.info-card:hover { transform: translateY(-5px); }

.info-card__icon {
  width: 54px;
  height: 54px;
  margin-inline: auto;
  border-radius: 50%;
  background: rgba(238, 197, 71, .17);
  display: grid;
  place-items: center;
  color: var(--lime-dark);
  margin-bottom: 14px;
}
.info-card__icon svg { width: 24px; height: 24px; }

.info-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 6px;
}
.info-card p, .info-card a { font-size: 13px; color: var(--gray); display: block; }
.info-card a:hover { color: var(--lime-dark); }

/* ============================================================
   Formulaire de contact
   ============================================================ */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-grid .form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;      /* laisse les champs date/heure se réduire */
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  background: var(--white);
  transition: border-color .2s;
  font-family: inherit;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--lime); }

.form-success {
  display: none;
  margin-top: 16px;
  background: rgba(238, 197, 71, .17);
  border: 1px solid var(--lime);
  color: #7a6423;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.form-success.is-visible { display: block; }

.map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(rgba(30,30,30,.55), rgba(30,30,30,.75)),
    repeating-linear-gradient(0deg, #3a3a3a 0 2px, #333 2px 40px),
    repeating-linear-gradient(90deg, #3a3a3a 0 2px, #333 2px 40px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  padding: 30px;
}
/* Carte interactive : l'iframe occupe le haut, les infos le bas */
.map-card {
  display: block;
  padding: 0;
  min-height: 0;
  background: var(--dark);
}
.map-card__frame {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(.25) contrast(1.05);
}
.map-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
}
.map-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.map-card svg { width: 18px; height: 18px; flex: none; color: var(--lime); }
.map-card p { margin-top: 5px; font-size: 12.5px; color: #cfcfcf; }
.map-card .btn { flex: none; padding: 12px 18px; font-size: 11.5px; }
.map-card .btn svg { color: inherit; width: 15px; height: 15px; }

@media (max-width: 760px) {
  .map-card__frame { height: 220px; }
  .map-card__foot { flex-direction: column; align-items: stretch; }
  .map-card .btn { width: 100%; }
}

.hours li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
  padding-block: 9px;
  border-bottom: 1px dashed var(--border);
}
.hours li:last-child { border-bottom: none; }
.hours b { color: var(--dark); font-weight: 600; }

/* ============================================================
   Page services
   ============================================================ */

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

.service-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 26px;
  transition: transform .25s;
}
.service-card:hover { transform: translateY(-5px); }

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(238, 197, 71, .17);
  display: grid;
  place-items: center;
  color: var(--lime-dark);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--dark);
  margin-bottom: 9px;
}
.service-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 7px;
}
.step p { font-size: 12.5px; color: var(--gray); line-height: 1.65; }

.section-head { margin-bottom: 28px; }
.page-section { padding-block: 45px; }
.page-section--last { padding-bottom: 65px; }

/* ============================================================
   Page à propos
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid__text p {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 14px;
}

.about-grid__media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.about-grid__media img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  background: var(--dark);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--lime);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #cfcfcf;
}

/* ============================================================
   Responsive — pages internes
   ============================================================ */

@media (max-width: 1080px) {
  .search--toolbar { grid-template-columns: repeat(3, 1fr); }
  .details__layout { grid-template-columns: 1fr; }
  .similar .vehicles__grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .search--toolbar { grid-template-columns: 1fr; }
  .similar .vehicles__grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .equip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .details__card { padding: 20px; }
}

/* ============================================================
   Améliorations mobile
   ============================================================ */

@media (max-width: 760px) {
  .container { width: 90%; }

  .header__inner { padding-block: 14px; }
  .logo { gap: 9px; }
  .logo__mark { height: 40px; }
  .logo__name { font-size: 15px; }
  .logo__sub { font-size: 7.5px; letter-spacing: .26em; margin-top: 4px; }
  .footer__brand .logo__mark { height: 58px; }
  .footer__brand .logo__name { font-size: 20px; }

  html { scroll-padding-top: 72px; }

  .hero__inner { padding-block: 46px 300px; }
  .hero__text { font-size: 13.5px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .search-section { padding-block: 24px 4px; }

  .vehicles { padding-block: 40px; }
  .vehicles__head { gap: 14px; margin-bottom: 22px; }
  .vehicles__head .btn { width: 100%; }
  .vehicles__grid { gap: 16px; }

  .results-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .results-bar .btn { width: 100%; }

  .why { padding-block: 18px; }
  .sell { padding-block: 18px 44px; }
  .sell__content .btn { width: 100%; }

  .page-hero { padding-block: 36px; }
  .page-section { padding-block: 30px; }
  .page-section--last { padding-bottom: 50px; }
  .section-head { margin-bottom: 20px; }

  .details { padding-block: 24px 44px; }
  .details__layout { gap: 18px; }
  .details__title { font-size: 19px; }
  .details__price { font-size: 26px; }
  .similar { padding-bottom: 48px; }
  .similar .vehicles__head .btn { width: 100%; }

  .contact-wrap { gap: 18px; }
  .form-card { padding: 22px 18px; }

  .footer { padding-top: 42px; }
  .footer__grid { padding-bottom: 34px; gap: 30px; }

  .intro__logo .logo__mark { height: 115px; }
  .intro__logo .logo__name { font-size: 25px; }
  .intro__dots { margin-top: 46px; }
}

@media (max-width: 480px) {
  .hero { background-position: 63% center; }
  .hero__inner { padding-block: 38px 230px; }
  .hero__title-big { font-size: 46px; }
  .hero__title-mid, .hero__title-lime { font-size: 24px; }
  .hero__badges { gap: 14px; }
  .hero__badge { font-size: 12px; }
  .hero__badge-icon { width: 40px; height: 40px; }

  .search { padding: 16px 14px; gap: 12px; }
  .section-title { font-size: 23px; }
  .why__card { padding: 24px 18px; }
  .why__grid { gap: 22px; }

  .sell__content h2 { font-size: 21px; }
  .sell__visual { min-height: 170px; }

  .info-grid { gap: 14px; }
  .stats { gap: 12px; }
  .stat { padding: 22px 14px; }
  .steps { gap: 14px; }
  .service-grid { gap: 14px; }

  .btn { padding: 14px 20px; font-size: 12.5px; }
  .footer__bottom { padding: 14px 16px; }
  .footer__bottom p { font-size: 11px; }
}

/* ============================================================
   Avis clients (nouveau bloc First Class)
   ============================================================ */

.reviews { padding-block: 30px 10px; }

.reviews__card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px 44px;
}

.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rating__score {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
}
.rating__stars { display: flex; gap: 3px; }
.rating__stars svg { width: 17px; height: 17px; color: var(--lime); }
.rating__count { font-size: 12px; color: var(--gray); margin-top: 5px; }

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

.review {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 20px;
  background: #fbfbfa;
}
.review__stars { display: flex; gap: 2px; margin-bottom: 12px; }
.review__stars svg { width: 14px; height: 14px; color: var(--lime); }
.review__text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4a4a;
}
.review__author {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dark);
}

/* Note « 4.9 / 5 » dans le hero */
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 14px 7px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(238, 197, 71, .5);
  font-size: 12px;
  font-weight: 500;
  color: #e8e8e8;
}
.hero__rating svg { width: 14px; height: 14px; color: var(--lime); }
.hero__rating b { color: var(--lime); font-weight: 700; }

/* Bandeau « inclus dans le tarif » */
.included {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.included li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.included svg { width: 17px; height: 17px; flex: none; color: var(--lime-dark); }

@media (max-width: 1080px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .included { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .reviews { padding-block: 18px 4px; }
  .reviews__card { padding: 26px 20px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__head .btn { width: 100%; }
  .included { grid-template-columns: 1fr; }
}

/* ============================================================
   Vue 3D & réalité augmentée (fiche véhicule)
   ============================================================ */

.view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.view-tab svg { width: 16px; height: 16px; flex: none; }
.view-tab:hover { color: var(--dark); border-color: var(--lime); }
.view-tab.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark);
}

.viewer3d {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #3a3a3a 0%, #262626 60%, #1c1c1c 100%);
}
.viewer3d model-viewer {
  width: 100%;
  height: 100%;
  background-color: transparent;
  --poster-color: transparent;
}

.viewer3d__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.viewer3d__loading small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: #9a9a9a;
}

.viewer3d__ar {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 99px;
  border: 1px solid var(--lime);
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  color: var(--lime);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.viewer3d__ar svg { width: 15px; height: 15px; flex: none; }
.viewer3d__ar:hover { background: var(--lime); color: var(--dark); }

@media (max-width: 760px) {
  .view-tab { flex: 1; justify-content: center; padding: 10px 12px; }
  .viewer3d__ar { bottom: 12px; right: 12px; padding: 9px 14px; font-size: 10px; }
}

/* ============================================================
   Articles / guides
   ============================================================ */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--dark); border-color: var(--lime); }
.chip.is-active { background: var(--lime); border-color: var(--lime); color: var(--dark); }

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.post__link { display: flex; flex-direction: column; height: 100%; padding: 26px 24px; }

.post__cat {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(238, 197, 71, .17);
  color: var(--lime-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.post__title {
  margin-top: 15px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
}

.post__excerpt {
  margin-top: 11px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
  flex-grow: 1;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
}
.post__meta svg { width: 15px; height: 15px; flex: none; color: var(--lime-dark); }
.post__meta i { font-style: normal; color: var(--gray-light); }

.post__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dark);
}
.post__more svg { width: 16px; height: 16px; transition: transform .2s; }
.post:hover .post__more { color: var(--lime-dark); }
.post:hover .post__more svg { transform: translateX(4px); }

/* --- Lecture d'un article --- */

.post-hero__title {
  margin-top: 14px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
}
.post-hero__lead {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: #4a4a4a;
}

/* Signature : dit qui écrit et depuis où. Les moteurs de réponse citent
   plus volontiers une source identifiée et située. */
.post__author {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #ecece8);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gray);
}
.post__author strong { color: var(--dark); }

.post-content .post-section + .post-section { margin-top: 30px; }
.post-content h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--lime);
}
.post-content p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #4a4a4a;
}
.post-content p + p { margin-top: 13px; }

.toc { display: grid; gap: 10px; counter-reset: toc; }
.toc li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}
.toc li::before {
  counter-increment: toc;
  content: counter(toc);
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(238, 197, 71, .17);
  color: var(--lime-dark);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.toc a:hover { color: var(--lime-dark); }

.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 18px;
  background: #fbfbfa;
}
.faq + .faq { margin-top: 10px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--lime-dark); transition: transform .25s; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq p {
  padding: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #4a4a4a;
}

@media (max-width: 1080px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; gap: 16px; }
  .post__link { padding: 22px 20px; }
  .post__title { font-size: 16px; }
}

/* ============================================================
   Favoris — bouton d'en-tête et page dédiée
   ============================================================ */

.header__fav {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #d8d8d8;
  transition: color .2s, background .2s;
}
.header__fav svg { width: 20px; height: 20px; }
.header__fav:hover { color: var(--lime); background: rgba(255,255,255,.07); }
.header__fav.is-active { color: var(--lime); }

.header__fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--dark);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.results-bar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.empty-state--fav svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: var(--gray-light);
}

@media (max-width: 760px) {
  .results-bar__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .results-bar__actions .btn { width: 100%; }
}

/* ============================================================
   Barre d'action fixe (mobile uniquement)
   ============================================================ */

.mobile-bar { display: none; }

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(38, 38, 38, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .mobile-bar .btn {
    width: 100%;
    padding: 14px 12px;
    font-size: 12px;
    gap: 8px;
  }
  /* Laisse la place à la barre au-dessus du bas de page */
  body { padding-bottom: 76px; }
}

/* ============================================================
   Confort tactile mobile
   ------------------------------------------------------------
   Cibles d'au moins ~44 px et texte d'au moins 12 px, mesurés
   sur un écran de 390 px de large.
   ============================================================ */

@media (max-width: 760px) {
  /* Menu burger */
  .burger {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-right: -8px;
  }

  /* Bouton favoris de l'en-tête */
  .header__fav { width: 42px; height: 42px; }
  .header__fav svg { width: 22px; height: 22px; }

  /* Cœur sur les cartes véhicule */
  .car-card__fav { width: 40px; height: 40px; }
  .car-card__fav svg { width: 19px; height: 19px; }

  /* Liens du pied de page : plus d'air pour le doigt */
  .footer__col ul { gap: 4px; }
  .footer__col ul li a,
  .footer__col--contact ul li { padding-block: 9px; }
  .footer__col ul li a { display: inline-block; }

  /* Réseaux sociaux */
  .footer__socials a { width: 42px; height: 42px; }

  /* Filtres d'articles */
  .chip { padding: 12px 16px; font-size: 12.5px; }

  /* Fil d'Ariane et bas de page : plus jamais sous 12 px */
  .crumbs, .footer__bottom p, .intro__powered { font-size: 12px; }
  .car-card__tag, .post__cat { font-size: 11px; }

  /* Liens de contact du pied de page */
  .footer__col--contact ul li a { padding-block: 0; }
}

/* ------------------------------------------------------------
   Le lien qui entoure la photo d'une carte s'effondrait à ~12 px
   de haut (l'image est en position statique) : on l'étire sur
   toute la vignette pour que le tap sur la photo fonctionne.
   ------------------------------------------------------------ */
.car-card__media .car-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.car-card__media .car-card__fav { z-index: 2; }
.car-card__media .car-card__tag { z-index: 2; }

@media (max-width: 760px) {
  .logo { min-height: 44px; }
  .crumbs a { display: inline-block; padding-block: 10px; }
  .car-card__title a { display: inline-block; padding-block: 9px; }

  .footer__col ul li a { padding-block: 13px; }
  .footer__col--contact ul li { padding-block: 12px; }
  .footer__col--contact ul li a,
  .info-card a,
  .post__link { min-height: 40px; display: flex; align-items: center; }
  .post__link { display: flex; flex-direction: column; align-items: stretch; }
  .footer__col--contact ul li a { display: inline-block; }
  .footer__bottom a { display: inline-block; padding-block: 10px; }

  /* Sommaire des guides : les intitulés font 21 px de haut, trop peu
     pour être visés au pouce. */
  .toc a { display: inline-block; padding-block: 8px; }
  .toc { gap: 4px; }
}

/* ============================================================
   Animations d'apparition
   ------------------------------------------------------------
   L'état masqué n'est appliqué que si le JS a pris la main
   (classe .js-reveal sur <html>) : sans JS, tout reste visible.
   Désactivé si le système demande moins d'animations.
   ============================================================ */

.js-reveal [data-reveal] {
  opacity: 0;
  transition:
    opacity .7s cubic-bezier(.22, .7, .3, 1),
    transform .7s cubic-bezier(.22, .7, .3, 1);
  will-change: opacity, transform;
}

.js-reveal [data-reveal="up"]     { transform: translateY(38px); }
.js-reveal [data-reveal="left"]   { transform: translateX(-46px); }
.js-reveal [data-reveal="right"]  { transform: translateX(46px); }
.js-reveal [data-reveal="zoom"]   { transform: scale(.92); }
.js-reveal [data-reveal="tilt"]   { transform: translateY(30px) rotate(-1.4deg); }

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Enfants révélés en cascade */
.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .62s cubic-bezier(.22, .7, .3, 1),
    transform .62s cubic-bezier(.22, .7, .3, 1);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js-reveal [data-reveal-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

/* --- Hero : entrée en cascade au chargement --- */
.js-reveal .hero__content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: reveal-hero .85s cubic-bezier(.22, .7, .3, 1) forwards;
}
.js-reveal .hero__content > *:nth-child(1) { animation-delay: .10s; }
.js-reveal .hero__content > *:nth-child(2) { animation-delay: .20s; }
.js-reveal .hero__content > *:nth-child(3) { animation-delay: .30s; }
.js-reveal .hero__content > *:nth-child(4) { animation-delay: .40s; }
.js-reveal .hero__content > *:nth-child(5) { animation-delay: .50s; }

@keyframes reveal-hero {
  to { opacity: 1; transform: none; }
}

/* --- Barre de recherche : remontée --- */
.js-reveal .search {
  opacity: 0;
  transform: translateY(26px);
  animation: reveal-hero .8s cubic-bezier(.22, .7, .3, 1) .58s forwards;
}

/* --- Compteur des chiffres clés --- */
.stat b { transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.js-reveal [data-reveal-stagger].is-in .stat b { transform: scale(1); }

/* --- Icônes « pourquoi nous » : petit rebond --- */
.js-reveal [data-reveal-stagger].is-in .why__icon { animation: reveal-pop .6s cubic-bezier(.2, .9, .3, 1.5) both; }
@keyframes reveal-pop {
  0%   { transform: scale(.5) rotate(-12deg); }
  100% { transform: none; }
}

/* --- Bannière devis : la photo glisse depuis la droite --- */
.js-reveal .sell__banner[data-reveal] .sell__visual img {
  transition: transform 1.05s cubic-bezier(.22, .7, .3, 1);
  transform: translateX(60px) scale(1.06);
}
.js-reveal .sell__banner[data-reveal].is-in .sell__visual img { transform: none; }

/* --- Soulignement animé des titres de section --- */
.section-title span { position: relative; }
.js-reveal [data-reveal].is-in .section-title span::after,
.js-reveal .section-title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22, .7, .3, 1) .25s;
}
.js-reveal [data-reveal].is-in .section-title span::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal-stagger] > *,
  .js-reveal .hero__content > *,
  .js-reveal .search {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .js-reveal .section-title span::after { transition: none; transform: scaleX(1); }
}

/* ============================================================
   Page Réservation
   ============================================================ */

.form-legend {
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-dark);
}
.form-legend:first-child { margin-top: 0; }

.form-duree {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(238, 197, 71, .17);
  font-size: 13px;
  color: var(--text);
}
.form-duree b { color: var(--lime-dark); font-weight: 700; }
.form-duree span { color: var(--gray); }

.book-car { display: flex; gap: 14px; align-items: center; }
.book-car img {
  width: 108px;
  flex: none;
  border-radius: 10px;
  background: #f7f7f5;
  padding: 5px;
}
.book-car h3 {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}
.book-car p { margin-top: 5px; font-size: 12px; color: var(--gray); }
.book-car p i { font-style: normal; color: var(--gray-light); margin-inline: 3px; }
.book-car__price { font-size: 15px !important; font-weight: 800; color: var(--lime-dark) !important; }
.book-car__price em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--gray); }
.book-car a {
  display: inline-block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime-dark);
  border-bottom: 1px solid currentColor;
}

@media (max-width: 760px) {
  .book-car { flex-direction: column; align-items: flex-start; }
  .book-car img { width: 100%; }
}

/* ------------------------------------------------------------
   Les animations latérales décalent les blocs de 46 px : dès que
   les colonnes prennent toute la largeur, ce décalage crée un
   défilement horizontal. On bascule alors sur un décalage vertical.
   `overflow-x: clip` sur <body> sert de garde-fou (contrairement à
   `hidden`, il ne casse pas l'en-tête `position: sticky`).
   ------------------------------------------------------------ */
body { overflow-x: clip; }

@media (max-width: 1080px) {
  .js-reveal [data-reveal="left"],
  .js-reveal [data-reveal="right"] { transform: translateY(34px); }
}

@media (max-width: 760px) {
  /* Les boutons d'envoi ont des libellés longs : sur mobile ils
     prennent toute la largeur et peuvent passer à la ligne. */
  .form-card button[type="submit"] {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
  }
}

/* ============================================================
   Barre d'action mobile — 4 raccourcis en icône + libellé
   ============================================================ */

@media (max-width: 760px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }

  .mobile-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 54px;
    padding: 7px 2px;
    border-radius: 12px;
    color: #cfcfcf;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
    transition: background .2s, color .2s;
  }
  .mobile-bar__item svg { width: 21px; height: 21px; flex: none; }
  .mobile-bar__item:active { background: rgba(255, 255, 255, .1); }
  .mobile-bar__item.is-active { color: var(--lime); }

  .mobile-bar__item--wa { color: #4bdd7e; }

  /* L'action principale est mise en avant sans casser la grille */
  .mobile-bar__item--cta {
    background: var(--lime);
    color: var(--dark);
    font-weight: 700;
  }
  .mobile-bar__item--cta.is-active { color: var(--dark); }
  .mobile-bar__item--cta:active { background: var(--lime-light); }

  body { padding-bottom: 82px; }
}
