
:root {
  --c: #1769e8;
  --d: #0a1c36;
  --bg: #f5f7fb;
  --m: #64748b;
  --sc-border: #e4eaf2;
  --sc-shadow: 0 14px 40px rgba(10,28,54,.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color: var(--d);
  line-height: 1.55;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c);
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.top {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e5e9f2;
  box-shadow: 0 4px 20px rgba(10,28,54,.04);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.045em;
  text-decoration: none;
  color: var(--d);
  white-space: nowrap;
}

.logo span {
  color: var(--c);
}

nav {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--d);
  font-size: .87rem;
  font-weight: 650;
  transition: color .2s;
}

nav a:hover {
  color: var(--c);
}

.btn,
button {
  display: inline-block;
  background: var(--c);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  transition: background .2s,transform .2s,box-shadow .2s;
}

.btn:hover,
button:hover {
  background: #0755c8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23,105,232,.18);
}

.btn.ghost {
  background: #fff;
  color: var(--c);
  border: 1px solid var(--c);
}

.btn.ghost:hover {
  background: #edf4ff;
  color: #0755c8;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #88b6ff;
  outline-offset: 3px;
}

main {
  min-height: 60vh;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 28px 0 12px;
}

main.wrap > h1:first-child {
  font-size: clamp(1.3rem,2.3vw,1.8rem);
  margin: 22px 0 18px;
  letter-spacing: -.035em;
}

h2 {
  font-size: 1.6rem;
}

.lead,
.muted {
  color: var(--m);
}

.section {
  padding: 65px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
#simulateur > h2 {
  font-size: clamp(1.8rem,3vw,2.55rem);
  letter-spacing: -.045em;
  line-height: 1.2;
  margin: 8px 0;
}

.section-heading .muted {
  max-width: 600px;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .15em;
  font-weight: 800;
  color: #9fc3ff;
}

.eyebrow.blue {
  color: var(--c);
  font-size: .72rem;
  letter-spacing: .17em;
}

.hero {
  background: linear-gradient(135deg,#eaf1ff,#f8fbff);
  padding: 55px 0;
}

.hero-premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 85px max(24px,calc((100vw - 1140px)/2)) 90px;
  background:
    linear-gradient(
      100deg,
      rgba(5,19,39,.98) 0%,
      rgba(8,30,59,.94) 43%,
      rgba(10,37,70,.60) 73%,
      rgba(10,37,70,.34) 100%
    ),
    url('/assets/hero-car.jpg') center / cover no-repeat;
  color: #fff;
  border-radius: 0;
}

.hero-inner {
  width: 100%;
  max-width: 850px;
}

.hero-premium .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  color: #b9d5ff;
  font-size: .7rem;
}

.hero-premium h2 {
  font-size: clamp(2.6rem,5vw,4.5rem);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.09;
  max-width: 790px;
  margin: 24px 0;
}

.hero-premium .lead {
  font-size: clamp(1rem,1.5vw,1.2rem);
  line-height: 1.8;
  color: #d9e5f5;
  max-width: 650px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 18px;
  max-width: 840px;
  margin-top: 34px;
  box-shadow: 0 25px 55px rgba(0,0,0,.2);
}

.hero-search input {
  flex: 2;
  min-width: 0;
}

.hero-search select {
  flex: 1;
  min-width: 0;
}

.hero-search input,
.hero-search select {
  border-color: #e4eaf2;
  background: #f8faff;
  min-height: 50px;
}

.hero-search button {
  white-space: nowrap;
  min-height: 50px;
  padding-inline: 26px;
  border-radius: 10px;
}

.hero-points {
  display: flex;
  gap: 12px 25px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: .9rem;
  color: #e7f0ff;
  font-weight: 600;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin: 18px 0;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card,
.panel {
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(10,31,68,.06);
}

.card {
  padding: 0;
  overflow: hidden;
}

.card .body {
  padding: 16px;
}

.card:hover {
  box-shadow: var(--sc-shadow);
  transform: translateY(-2px);
  transition: .2s;
}

.card .btn {
  width: 100%;
  text-align: center;
}

.pic {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #dfe9ff;
}

.placeholder {
  height: 170px;
  background: #dfe9ff;
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.catalog-filters {
  display: flex;
  gap: 12px;
  max-width: 760px;
  padding: 12px;
  margin-bottom: 20px;
  background: #f6f8fc;
  border: 1px solid var(--sc-border);
  border-radius: 14px;
}

.catalog-filters input,
.catalog-filters select {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border-color: #dfe6f0;
}

.car-card {
  border: 1px solid var(--sc-border);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(10,28,54,.05);
  transition: transform .2s,box-shadow .2s;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sc-shadow);
}

.car-card[hidden],
#noCarResults[hidden] {
  display: none !important;
}

.car-card .pic,
.car-card .placeholder {
  height: 225px;
}

.car-card .body {
  padding: 23px;
}

.car-card h3 {
  font-size: 1.22rem;
  margin: 0 0 8px;
  letter-spacing: -.025em;
}

.car-card .body > p {
  margin: 9px 0;
}

.car-card .car-price {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--d);
  margin: 17px 0;
}

.car-card .btn {
  padding: 13px;
  border-radius: 10px;
}

.trust-section {
  background: linear-gradient(135deg,#f1f5fc,#f9fbff);
  margin: 40px calc(50% - 50vw);
  padding: 50px max(24px,calc((100vw - 1140px)/2));
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.trust-grid > div {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(10,28,54,.04);
}

.trust-grid b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #e8f0ff;
  color: var(--c);
  font-size: 1.4rem;
}

.trust-grid h3 {
  font-size: 1.13rem;
  margin-top: 20px;
  margin-bottom: 6px;
}

.trust-grid p {
  color: var(--m);
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  font-size: .92rem;
  margin: 10px 0;
}

input,
select,
textarea {
  padding: 11px;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  font: inherit;
  width: 100%;
  background: #fff;
}

input[type=range],
input[type=checkbox] {
  width: auto;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.actions form {
  display: inline-flex;
}

.panel {
  margin-bottom: 18px;
}

.result {
  background: var(--bg);
  padding: 25px;
  border-radius: 14px;
}

.result strong {
  font-size: 2rem;
  color: var(--c);
}

#simulateur .two {
  align-items: start;
  gap: 30px;
}

#simulateur .panel {
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--sc-shadow);
}

#simulateur label {
  margin: 15px 0;
}

#simulateur input,
#simulateur select {
  min-height: 50px;
  background: #fbfcff;
}

#simulateur button {
  width: 100%;
  min-height: 53px;
  margin-top: 16px;
}

#simulateur .result {
  position: sticky;
  top: 110px;
  padding: 35px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg,#071b36,#113f78);
  box-shadow: 0 18px 40px rgba(10,28,54,.18);
}

#simulateur .result > p:first-child {
  color: #d5e4fb;
  font-weight: 650;
}

#simulateur .result strong {
  display: block;
  color: #fff;
  font-size: clamp(2rem,4vw,3rem);
  letter-spacing: -.05em;
  margin: 18px 0;
  overflow-wrap: anywhere;
}

#simulateur .result .muted,
#simulateur .result .small {
  color: #d0dff2;
  line-height: 1.8;
}

.reviews-section {
  padding-bottom: 75px;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f5f7fb;
  border: 1px solid var(--sc-border);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.rating-large {
  font-size: 3rem;
  font-weight: 800;
  color: var(--d);
}

.rating-large span {
  font-size: 1rem;
  color: var(--m);
}

.stars {
  color: #efaa1e;
  letter-spacing: 2px;
  font-size: 1.35rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 16px;
}

.review-card {
  border: 1px solid var(--sc-border);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(10,28,54,.04);
}

.review-card p {
  line-height: 1.8;
}

.review-card strong,
.review-card small {
  display: block;
}

.review-card small {
  color: var(--m);
  margin-top: 4px;
}

.price {
  font-size: 1.6rem;
  color: var(--c);
  font-weight: 800;
}

.notice {
  background: #eaf1ff;
  border: 1px solid #bcd2ff;
  padding: 14px;
  border-radius: 10px;
}

.success {
  background: #e8f8ef;
  border: 1px solid #a7dfb9;
  padding: 14px;
  border-radius: 10px;
}

.alert {
  background: #fff3e7;
  border: 1px solid #efcda7;
  padding: 14px;
  border-radius: 10px;
}

.danger {
  color: #a90027;
}

button.dangerbtn {
  background: #a92d3a;
}

.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 115px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.wraptable {
  overflow-x: auto;
}

.pill {
  border-radius: 100px;
  background: #eaf1ff;
  color: var(--c);
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 700;
}

.dashstats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 14px;
}

.dashstats .panel strong {
  display: block;
  font-size: 2rem;
  color: var(--c);
}

.subnav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.subnav a {
  padding: 8px 12px;
  border: 1px solid #dce4f3;
  border-radius: 9px;
  text-decoration: none;
}

.legal {
  max-width: 850px;
  margin: auto;
}

.legal h2 {
  margin-top: 28px;
}

.legal p,
.legal li {
  line-height: 1.75;
}

.legal a {
  overflow-wrap: anywhere;
}

.small {
  font-size: .85rem;
}

.status {
  font-weight: 700;
  color: var(--c);
}

footer {
  margin-top: 50px;
  background: #071a32;
  color: #fff;
  padding: 40px 0;
}

footer a {
  color: #fff;
}

footer .wrap {
  line-height: 2;
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: .82rem;
  }
}

@media (max-width: 800px) {
  .two {
    grid-template-columns: 1fr;
  }

  .bar {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 8px 16px;
  }

  .hero-premium {
    min-height: auto;
    padding-top: 65px;
    padding-bottom: 70px;
  }

  #simulateur .result {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.65rem;
  }
}

@media (max-width: 700px) {
  .hero-search {
    flex-direction: column;
  }

  .hero-search input,
  .hero-search select,
  .hero-search button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-filters {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top {
    position: relative;
  }

  .logo {
    font-size: 1.22rem;
  }

  nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 0 10px;
    scrollbar-width: thin;
  }

  nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  main.wrap > h1:first-child {
    margin: 18px 0;
  }

  .hero-premium {
    padding: 55px 20px 60px;
    background-position: 62% center;
  }

  .hero-premium h2 {
    font-size: clamp(2.15rem,9vw,3.1rem);
  }

  .hero-premium .lead {
    font-size: 1rem;
  }

  .hero-points {
    flex-direction: column;
    gap: 10px;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .section-heading {
    align-items: stretch;
  }

  .section-heading .btn {
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .car-card .pic,
  .car-card .placeholder {
    height: 230px;
  }

  .trust-section {
    padding: 45px 20px;
  }

  .trust-grid > div {
    padding: 23px;
  }

  #simulateur .panel,
  #simulateur .result {
    padding: 23px;
  }

  .review-summary {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  button,
  .btn,
  .car-card {
    transition: none;
  }
}

@media print {
  header,
  footer,
  .noprint {
    display: none !important;
  }

  main {
    max-width: 100%;
  }
}

/* SELECT CAR LEASING — Bannière mobile optimisée */

@media (max-width: 600px) {

  .hero-premium {
    min-height: auto;
    padding: 38px 20px 44px;
    background:
      linear-gradient(
        180deg,
        rgba(5, 19, 39, .94) 0%,
        rgba(8, 30, 59, .88) 55%,
        rgba(8, 30, 59, .78) 100%
      ),
      url('/assets/hero-car.jpg') 68% center / cover no-repeat;
  }

  .hero-premium .eyebrow {
    font-size: .62rem;
    letter-spacing: .09em;
    line-height: 1.5;
    padding: 7px 10px;
  }

  .hero-premium h2 {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.035em;
    margin: 22px 0 16px;
  }

  .hero-premium .lead {
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .hero-search {
    margin-top: 22px;
    padding: 10px;
    gap: 9px;
    border-radius: 14px;
  }

  .hero-search input,
  .hero-search select,
  .hero-search button {
    min-height: 46px;
    font-size: .95rem;
  }

  .hero-points {
    margin-top: 18px;
    gap: 8px;
    font-size: .8rem;
  }
}
