/**
 * Clean responsive overrides for WegoLoc.
 * Added after style.css to normalize spacing, typography and breakpoints.
 */

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/tt_firs_neue/TT%20Firs%20Neue%20Trial%20Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/tt_firs_neue/TT%20Firs%20Neue%20Trial%20Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange-bright: #ffc24a;
  --container-max: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 36px rgba(5, 11, 32, 0.08);
  --shadow-card: 0 10px 24px rgba(5, 11, 32, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}

iframe {
  max-width: 100%;
}

.container,
.container-fluid {
  width: min(100%, var(--container-max));
}

section {
  position: relative;
}

/* ===== Global type cleanup ===== */
.hero-title,
.hero-vente-title,
.contact-hero-title,
.devis-hero-title,
.search-title,
.search-title-vente,
.process-title,
.testimonials-title,
.devis-intro-title,
.footer-title {
  overflow-wrap: anywhere;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw + 1rem, 5.5rem);
  line-height: 1.10;
  margin-bottom: 1.25rem;
}

.hero-description {
  max-width: 58ch;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
}

.hero-vente-title,
.devis-hero-title,
.contact-hero-title {
  font-size: clamp(2.25rem, 7vw, 6rem) !important;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-top: clamp(1.5rem, 7vw, 6rem) !important;
}

.search-title,
.search-title-vente,
.process-title,
.testimonials-title,
.devis-intro-title,
.contact-call-title,
.contact-form-title,
.footer-title {
  line-height: 1.05;
}

.process-card-title,
.vehicle-detail-title,
.vehicle-sale-name {
  line-height: 1.1;
}

/* ===== Header / nav ===== */
.top-bar {
  padding-block: 0.55rem;
}

.top-bar > .container {
  width: 100%;
  padding-inline: 0;
}

.navbar {
  padding-block: 1rem;
}

.navbar-brand img {
  width: auto;
  height: clamp(38px, 4vw, 52px);
}

.navbar .container {
  gap: 1rem;
}

.navbar-collapse {
  flex-grow: 0;
}

.navbar-dark .navbar-nav {
  gap: 0.25rem;
}

.navbar .btn-contact,
.navbar .btn-devis {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Buttons / forms ===== */
.btn,
.form-control,
.form-select {
  min-height: 44px;
}

.btn-contact,
.btn-devis,
.btn-hero-contact,
.btn-hero-devis,
.btn-search,
.btn-contact-submit,
.vehicle-sale-btn,
.btn-orange,
.btn-brand-tag {
  border-radius: var(--radius-sm);
}

.search-form-wrapper,
.devis-search-bar,
.contact-form-card,
.vehicle-price-sidebar,
.vehicle-details-sidebar,
.loan-calculator-card,
.testimonial-main-card {
  border-radius: var(--radius-lg);
}

.search-form-wrapper {
  padding: 1rem !important;
}

.search-form-wrapper .row {
  row-gap: 0.9rem;
}

.form-group {
  border-radius: var(--radius-sm);
}

#budgetSlider,
input[type="range"].form-range {
  min-width: 0 !important;
  width: 100%;
}

/* ===== Homepage hero ===== */
.hero-section-home,
.hero-section-vente,
.devis-hero-section,
.contact-hero-section {
  min-height: clamp(300px, 52vw, 720px);
}

.hero-section-home .container,
.hero-section-vente .container,
.devis-hero-section .container,
.contact-hero-section .container {
  z-index: 2;
}

.hero-background-image img {
  object-fit: cover;
  object-position: center;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-buttons .btn {
  min-width: min(100%, 220px);
}

/* ===== Card / vehicle cleanup ===== */
.vehicle-grid-image,
.vehicle-card-hover-wrapper > .bg-secondary,
.vehicle-card-hover-wrapper > .bg-light {
  height: clamp(250px, 36vw, 400px) !important;
}

.vehicle-card-hover-wrapper {
  overflow: hidden;
  border-radius: 0 !important;
}

.vehicle-hover-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.vehicle-card-hover-wrapper:hover .vehicle-hover-overlay,
.vehicle-card-hover-wrapper:focus-within .vehicle-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.vehicle-hover-title {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.vehicle-sale-card,
.vehicle-detail-card,
.other-vehicle-card {
  height: 100%;
}

.vehicle-sale-image-wrapper {
  height: clamp(220px, 28vw, 320px);
}

.vehicle-sale-info {
  padding: clamp(1.1rem, 2vw, 1.9rem);
}

.vehicle-sale-name {
  font-family: "TT Firs Neue", "Readex Pro", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.vehicle-sale-specs li,
.process-card-text,
.devis-intro-text {
  font-size: clamp(0.95rem, 1vw + 0.55rem, 1.1rem);
}

.vehicle-sale-btn {
  width: 100%;
}

.vehicle-price-sidebar,
.vehicle-details-sidebar {
  position: relative;
  top: auto;
}

/* ===== Process / testimonials ===== */
.process-card {
  min-height: 100%;
  border-radius: var(--radius-lg);
}

.process-card-title {
  padding-top: 1rem !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.75rem !important;
}

.process-card-text {
  margin: 0;
}

.process-vehicle-image {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.testimonials-section,
.search-section,
.loan-calculator-section,
.contact-form-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.testimonial-main-card {
  padding: clamp(1.25rem, 3vw, 3rem) !important;
}

.testimonial-quote-icon {
  font-size: clamp(4rem, 12vw, 11rem) !important;
  line-height: 0.8 !important;
}

.testimonial-text {
  font-size: clamp(1rem, 1vw + 0.7rem, 1.1rem) !important;
  line-height: 1.75 !important;
}

/* ===== Contact / devis ===== */
.contact-form-wrapper {
  padding-right: 0;
}

.contact-form-image img {
  min-height: clamp(280px, 40vw, 550px);
}

.devis-search-fields {
  gap: 0.75rem;
}

.devis-search-field {
  min-width: 0;
}

.devis-field-input {
  width: 100%;
}

/* ===== Footer ===== */
.footer-main .container {
  width: min(100%, 1200px);
}

.footer-main .footer-logo img {
  max-width: 120px !important;
}

.newsletter-subscription form {
  flex-wrap: wrap;
}

.newsletter-subscription .form-control,
.newsletter-subscription .btn {
  min-height: 42px;
}


/* ===== Tablet ===== */
@media (max-width: 991.98px) {
  .hero-background-image img {
      object-position: right !important;
  }
  .top-bar .row {
    row-gap: 0.35rem;
  }

  .navbar .container {
    align-items: center;
  }

  .navbar-toggler {
    border: none;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
  }

  .navbar-collapse {
    display: block;
    width: 100%;
    background: rgba(0, 1, 49, 0.98);
    padding: 1rem;
    border-radius: 16px;
    margin-top: 1rem;
  }

  .nav-center {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    margin-bottom: 1rem;
  }

  .nav-center .nav-item {
    width: 100%;
  }

  .navbar .nav-link,
  .nav-center .nav-link {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0.85rem 0;
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .nav-actions .btn-contact,
  .nav-actions .btn-devis {
    width: calc(50% - 0.375rem);
    margin: 0 !important;
  }

  .hero-section-home,
  .hero-section-vente,
  .devis-hero-section,
  .contact-hero-section {
    min-height: 420px;
  }

  .process-vehicle-image {
    position: relative;
    inset: auto;
    transform: none;
    max-width: min(100%, 360px);
    margin: 0 auto 1.5rem;
  }

  .contact-info-section .row,
  .contact-form-section .row,
  .vehicle-detail-main .row,
  .loan-calculator-section .row {
    row-gap: 1.5rem;
  }

  .sticky-top {
    position: static !important;
    top: auto !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {
  .top-bar {
    font-size: 0.82rem;
  }

  .top-bar .row > div {
    margin-bottom: 0;
  }

  .hero-section-home,
  .hero-section-vente,
  .devis-hero-section,
  .contact-hero-section {
    min-height: 320px;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-buttons .btn,
  .btn-hero-contact,
  .btn-hero-devis,
  .btn-search,
  .btn-contact-submit {
    width: 100%;
  }

  .search-form-wrapper,
  .devis-search-bar,
  .contact-form-card,
  .testimonial-main-card,
  .vehicle-price-sidebar,
  .vehicle-details-sidebar,
  .loan-calculator-card {
    border-radius: 16px;
  }

  .vehicle-hover-overlay {
    opacity: 1;
    visibility: visible;
  }

  .vehicle-card-hover-wrapper > .vehicle-grid-image,
  .vehicle-card-hover-wrapper > .bg-secondary,
  .vehicle-card-hover-wrapper > .bg-light {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .vehicle-hover-overlay .d-flex.gap-2 {
    flex-direction: column;
  }

  .testimonial-nav .col-md-6 {
    margin-bottom: 0.75rem;
  }

  .devis-search-field,
  .devis-field-location,
  .devis-search-submit {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  .contact-form-card,
  .contact-form-wrapper {
    padding-inline: 0.75rem;
  }

  .testimonials-title {
    font-size: 35px;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-inline: 1rem;
  }

  .search-form-wrapper,
  .devis-search-bar,
  .contact-form-card,
  .loan-calculator-card {
    padding: 1rem !important;
  }

  .vehicle-grid-image,
  .vehicle-card-hover-wrapper > .bg-secondary,
  .vehicle-card-hover-wrapper > .bg-light,
  .vehicle-sale-image-wrapper,
  .contact-form-image img {
    height: auto !important;
    min-height: 220px;
  }

  .newsletter-subscription form > * {
    width: 100%;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn-contact,
  .nav-actions .btn-devis {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  header .container {
    max-width: 95%;
  }

  .header-nav nav {
    padding: 20px 0px !important;
  }

  .vehicles-grid-section {
    padding-bottom: 20px !important;
  }

  .process-vehicle-image {
    display: none;
  }
}

@media (max-width: 1200px) {
  .col-lg-6 {
    flex: 0 0 auto;
    width: initial;
  }

  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 98% !important;
  }

  .vehicle-grid-image,
  .vehicle-card-hover-wrapper > .bg-secondary,
  .vehicle-card-hover-wrapper > .bg-light {
    min-height: 350px !important;
  }

  .process-section .col-md-5 {
    flex: 0 0 auto;
    width: 50%;
  }

  .process-section .col-md-1 {
    display: none;
  }

  .testimonials-title {
    font-size: 48px;
  }
}

@media (max-width: 1024px) {}

@media (max-width: 992px) {
  .search-section .justify-content-center .col-lg-11 {
    flex-direction: column !important;
  }

  .footer-links {
    margin-top: 0px;
  }

  .testimonial-text {
    margin-top: 10px;
  }

  .process-title {
    text-align: center !important;
  }

  .testimonial-main-card .bg-white.p-5 {
    padding: 10px !important;
  }

  .contact-form-header {
    justify-content: space-between;
  }

  .contact-info-section .col-lg-4.p-3,
  .decorative-panel {
    display: none;
  }

  .contact-info-section .px-0 {
    margin: 0;
    margin-top: -35px !important;
  }

  .contact-form-image img {
    width: 98% !important;
    margin: auto !important;
  }

  .contact-form-car-icon {
    height: 50px;
    width: auto;
  }

  .contact-call-title {
    margin: 0 !important;
  }

  .contact-call-title br {
    display: none;
  }

  .vehicle-overview-cards-wrapper {
    flex-wrap: wrap !important;
  }

  .vehicle-overview-card {
    flex: initial;
  }

  #processus .mb-5 {
    margin-bottom: 1.7rem !important;
  }
}

@media (max-width: 768px) {
  #searchForm {
    flex-direction: column !important;
  }

  #searchForm .col-md-3,
  #searchForm .col-md-2 {
    width: 100%;
  }

  .devis-intro-text-form {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.08;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    max-width: initial;
    font-size: 1.2rem;
    font-weight: 400;
  }

  .hero-description br {
    display: none;
  }

  .vehicles-grid-section .col-lg-4.col-md-6 {
    row-gap: 50px !important;
  }

  .vehicle-card-hover-wrapper {
    min-height: 500px;
  }

  .vehicle-hover-overlay {
    min-height: 500px !important;
  }

  .vehicule-hover-container {
    padding-top: 200px;
  }

  .feature-item-inline {
    padding: 0;
  }

  .testimonial-main-card .bg-white.p-5 {
    padding: 20px !important;
  }

  .testimonial-text.px-4 {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .nav-actions .btn-contact,
  .nav-actions .btn-devis {
    width: 100%;
  }

  .process-section .col-md-5 {
    width: 100%;
  }

  .contact-form-car-icon {
    height: 30px;
    width: auto;
  }

  .contact-form-card .mt-3 {
    flex-wrap: wrap;
  }

  .contact-form-card .btn-contact-submit {
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 376px) {}

@media (max-width: 320px) {}
