:root {
  --color-dark: #202A36;
  --color-dark-2: #2a3645;
  --color-light: #f6f5f2;
  --color-accent: #202A36;
  --color-accent-light: #44597a;
  --color-text-muted: #5a6472;
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1140px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-title);
  letter-spacing: 0.3px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(32, 42, 54, 0.35);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(32, 42, 54, 0.45);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246, 245, 242, 0.0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 22px 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(32, 42, 54, 0.1);
  padding: 14px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-dark);
}

.logo span {
  color: var(--color-accent-light);
}

.nav {
  display: flex;
  gap: 36px;
}

.nav__link {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
}

/* ---------- Anchor offset for fixed header ---------- */
section[id] {
  scroll-margin-top: 90px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-dark);
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero__tilt {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(32, 42, 54, 0.25), 0 0 0 1px rgba(32, 42, 54, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.hero__tilt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero__tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32, 42, 54, 0.12), transparent 60%);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(32, 42, 54, 0.08), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(32, 42, 54, 0.06), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, var(--color-light) 100%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  max-width: 1140px;
  text-align: left;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero__tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--color-accent-light);
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero__title span {
  display: block;
  color: var(--color-accent);
}

.hero__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.hero__price {
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero__price-amount {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
}

.hero__price-unit {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 20px;
}

.hero__scroll span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: scrollDown 1.6s infinite;
}

@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-dark);
}

.section-subtitle {
  text-align: center;
  color: #5a6472;
  margin-top: 8px;
  margin-bottom: 50px;
}

/* ---------- Car section ---------- */
.car {
  padding: 100px 0;
  background: #fff;
}

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

/* Carousel */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(32, 42, 54, 0.25);
  aspect-ratio: 4 / 3;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(32, 42, 54, 0.55);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}

.carousel__btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }

.carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.carousel__dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Description */
.car__description h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--color-dark);
}

.car__description p {
  color: #5a6472;
  margin-bottom: 16px;
}

.car__specs {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.car__specs li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-light);
  border-radius: 10px;
  border-left: 3px solid var(--color-accent);
}

.car__specs li span {
  color: #5a6472;
}

.car__specs li strong {
  color: var(--color-dark);
}

/* ---------- Zone d'intervention ---------- */
.zone {
  padding: 100px 0;
  background: #fff;
}

.zone__map {
  max-width: 760px;
  margin: 0 auto;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(32, 42, 54, 0.18);
}

.zone__map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .zone__map {
    height: 320px;
  }
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: var(--color-light);
  color: var(--color-dark);
}

.contact .section-title {
  color: var(--color-dark);
}

.contact .section-subtitle {
  color: var(--color-text-muted);
}

.contact__form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(32, 42, 54, 0.12);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form__group input,
.form__group select,
.form__group textarea {
  background: var(--color-light);
  border: 1px solid #e0e2e6;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}

.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235a6472'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form__group select:invalid {
  color: #9aa1ab;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: #9aa1ab;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-accent-light);
  background: #fff;
}

.contact__form .btn {
  align-self: center;
  margin-top: 10px;
}

.contact__form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form__status.success {
  color: #2f7a4f;
}

.form__status.error {
  color: #b3413a;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: #fff;
}

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion__item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.accordion__header {
  width: 100%;
  background: var(--color-light);
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
}

.accordion__icon {
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.accordion__item.active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  background: #fff;
}

.accordion__content p {
  padding: 0 24px 20px;
  color: #5a6472;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  color: var(--color-text-muted);
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer__inner a {
  color: var(--color-accent);
  font-weight: 600;
}

.footer__note {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .car__grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding: 110px 0 60px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__tilt {
    max-width: 340px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 80%);
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1000;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav .nav__link {
    color: #fff;
  }

  .burger {
    display: flex;
  }

  .burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger.open span:nth-child(2) {
    opacity: 0;
  }

  .burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact__form {
    padding: 28px;
  }
}
