/*************
0. Global
1. Header
2. Footer
*/



/***************/
/* 0. GLOBAL   */
/***************/

@font-face {
  font-family: 'sofachrome-light';
  font-style: normal;
  font-weight: lighter;
  src: local('sofachrome-light'),
    url('/assets/front/fonts/sofachrome/sofachrome-light.ttf') format('truetype'),
    url('/assets/front/fonts/sofachrome/sofachrome-light.woff') format('woff'),
    url('/assets/front/fonts/sofachrome/sofachrome-light.woff2') format('woff2');
}

@font-face {
  font-family: 'dm-bold';
  font-style: bold;
  src: local('dm-bold'),
    url('/assets/front/fonts/dm-bold.ttf') format('truetype'),
}


@font-face {
  font-family: 'metropolis-bold';
  font-style: normal;
  font-weight: bold;
  src: local('metropolis-bold'),  
    url('/assets/front/fonts/metropolis/metropolis-bold.ttf') format('truetype'),
    url('/assets/front/fonts/metropolis/metropolis-bold.woff') format('woff'),
    url('/assets/front/fonts/metropolis/metropolis-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'metropolis-medium';
  font-style: normal;
  font-weight: bold;
  src: local('metropolis-medium'),
    url('/assets/front/fonts/metropolis/metropolis-medium.ttf') format('truetype'),
    url('/assets/front/fonts/metropolis/metropolis-medium.woff') format('woff'),
    url('/assets/front/fonts/metropolis/metropolis-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'metropolis-regular';
  font-style: normal;
  font-weight: normal;
  src: local("metropolis-regular"),
    url('/assets/front/fonts/metropolis/metropolis-regular.ttf') format('truetype'),
    url('/assets/front/fonts/metropolis/metropolis-regular.woff') format('woff'),
    url('/assets/front/fonts/metropolis/metropolis-regular.woff2') format('woff2');
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

:root {
  --body: radial-gradient(circle, hsla(0, 0%, 96%, 1) 0%, hsla(0, 0%, 87%, 1) 99%);
  ;
  --primary: #5271FF;
  --secondary: #707070;
  --active: #D19C1D;
  --ternary: #4577C8;
  --black: #212121;
  --white: #F5F5F5;
  --gradient-blue: linear-gradient(90deg, #5271FF 0%, #233C64 100%);
  --gradient-gray: radial-gradient(90deg, #b7b7b7 0%, #555555 100%);
  --border-color: #EBEBEB;
  --h1-mobile: 30px;
  --h1-desktop: 60px;
  --h2-mobile: ;
  --h2-desktop: ;
  --h3-mobile: ;
  --h3-desktop: ;
  --p-mobile: 14px;
  --p-desktop: 17px;
  --bold: 'metropolis-bold';
  --medium: 'metropolis-medium';
  --regular: 'metropolis-regular';
  --sofachrome: 'sofachrome-light';
  --dm: 'dm-bold';
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  /* outline: 1px solid red; */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: 'metropolis-regular';
  background-image: var(--body);
  color: var(--white);
  position: relative;
  background-image: url('../imgs/backgrounds/gw-bg.webp');
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

h1 {
  font-family: var(--dm);
}

h2 {
  text-transform: uppercase;
}
h2, h3, h4 {
  font-family: var(--bold);
  color: var(--black);
}
a,
a:focus,
a:visited,
a:hover {
  text-decoration: none;
  color: var(--white);
  display: flex;
  gap: 1rem;
}

p {
  font-family : var(--regular);
  color: var(--black);
  margin-bottom: 1rem;
}

.bold {
  font-family: var(--bold);
  color: var(--black);
}

.highlight {
  color: var(--active);
  font-family: var(--dm);
}

.heading-ctr {
  display: flex;
  align-items: start;
  gap: 10px;
}
.heading-ctr .shape-title {
  width: 25px;
  height: 33px;
}

/* buttons */
.btn-ctr { display: flex;}
.gw-btn {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  text-align: center;
  text-transform: capitalize;
  border: none;
  cursor: pointer;
  overflow: hidden;
}
.bg-blue {
  background-color: var(--ternary) !important;
}
.bg-orange {
  background-color: var(--active);
}
.gw-btn:before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
.bg-blue:before {
  background: var(--primary);
}
.bg-orange:before {
  background: #a87e1b;
}
.bg-blue:hover:before,
.bg-orange:hover:before {
  transform: translateX(0);
}
.btn-title {
  font-family: 'metropolis-bold';
  font-size: 17px;
}



/***************/
/* 1. HEADER   */
/***************/

header {
  position: fixed;
  width: 100%;
  z-index: 9999;
  top: 0;
}

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

/* topbar */
.topbar {
  height: 110px;
  width: 100%;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  text-transform: uppercase;
  font-family: var(--dm);
  font-size: 30px !important;
  color: var(--white);
  text-decoration: none;
}
.info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.info-text {
  font-family: 'metropolis-regular';
  font-size: var(--p-desktop);
}

.info {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* navbar laptop */
.nav {
  background: var(--gradient-blue) !important;
  height: 53px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.cstm-navbar {
  width: 100%;
  height: 100%;
  padding: 0;
}

.cstm-navbar ul { margin: 0;}
.cstm-navbar .container {
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}
.cstm-navbar .collapse {
  display: flex;
  justify-content: end;
  height: 100%;
}

.cstm-navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 30px;
  height: 100%;
}
.cstm-navbar .nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}
.cstm-navbar .nav-link,
.cstm-mobile-navbar .nav-link {
  color: var(--white);
  font-family: var(--bold);
}

.cstm-navbar .nav-item:hover {
  font-weight: bold;
  background-color: var(--active);
}

.cstm-navbar .active {
  color: lightgray;
  font-weight: bold;
  text-decoration: underline;
}

/* burger */

.hamburger {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 28px;
  height: 24px;
  /* augmente la hauteur pour l'espacement */
  background-color: transparent;
  cursor: pointer;
  z-index: 9999;
}

/* BARRE DU HAUT */
.hamburger::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease;
}

/* BARRE DU BAS */
.hamburger::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, bottom 0.3s ease;
}

/* BARRE DU MILIEU : <i> */
.hamburger i {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background-color: var(--white);
  border-radius: 2px;
  transition: opacity 0.3s ease;
  text-indent: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* Animation quand actif */
.hamburger.active::before {
  top: 50%;
  transform: rotate(45deg);
}

.hamburger.active::after {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg);
}

.hamburger.active i {
  opacity: 0;
}

/* mobile-menu */
.cstm-mobile-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 8000;
  transition: right 0.3s ease-in-out;
  padding-top: 60px;
}
.cstm-mobile-navbar.open {
  right: 0;
}

.cstm-mobile-navbar .container,
.cstm-mobile-navbar .mobile-nav-wrapper {
  height: 100%;
}

.cstm-mobile-navbar .mobile-nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
  font-size: 22px;
}

.cstm-mobile-navbar .nav-link {
  font-weight: bold;
}

.cstm-mobile-navbar .nav-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.cstm-mobile-navbar .nav-item {
  text-decoration: none;
}


/***************/
/* 2. FOOTER   */
/***************/
footer {
  background-color: var(--black);
}
footer .container {
  padding: 3rem 0;
}
.f-logo {
  text-align: start;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.f-slogan {
  font-size: 14px;
}
.f-title {
  font-family: var(--bold);
  font-size: 22px;
}
.footer ul {
  text-indent: 10px;
}
.f-link {
  margin-bottom: 10px;
}

/*********
  3. BANNERS
*/
.banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.overlay {
  background-color: rgba(0, 0, 0, 0.2);
}

.banner .overlay,
.banner .container,
.banner .row {
  width: 100%;
  height: 100%;
}

.banner .col-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner .col-12 .breadcrumb li {
  font-family: var(--bold);
}

.banner .col-12 .breadcrumb li,
.breadcrumb-item.active::before {
  color: var(--white);
}

.cta-bottom {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.cta-bottom {
  background-image: url('../imgs/backgrounds/cta-section-min.webp');
}
.cta-content-2 {
  padding: 80px 20px;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.4);
}
.cta-bottom h2,
.cta-bottom p {
  color: var(--white);
}
.cta-bottom .col-8 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/****************** 
  4. Why-US Section 
*/
.cta-2-img-wrapper {
  text-align: center;
}
.grid {
  display: grid;
}
.grid-item {
  display: flex;
  gap: 10px;
  padding: 20px;
}
.w-title,
.w-slogan {
  color: var(--black);
  font-family: var(--bold);
}
.w-icons {
  height: 50px;
}

.w-slogan {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 5rem;
}

@media (max-width: 768px) {

  /* footer */
  footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  footer .f-link {
    margin-bottom: 1rem;
  }

  footer .col-md-5 {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
  }

  footer .f-link a {
    text-align: center;
    justify-content: center;
  }
}


/**********
  CARDS
*/

/* --- Structure des cartes --- */

.car-card,
.van-card,
.trailer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 350px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease-in-out;
}

/* --- Image en haut de la carte avec taille fixe --- */
.car-card img,
.van-card img,
.trailer-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.car-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* --- Contenu de la carte --- */
.car-card .card-body,
.van-card .card-body,
.trailer-card .card-body {
  flex-grow: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.card-title {
  font-family: 'metropolis-bold';
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-data {
  margin-top: auto;
  display: flex;
  gap: 30px;
}

.data-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data {
  font-family: var(--medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Pied de carte aligné en bas --- */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #eee;
}

.card-footer .price {
  font-family: 'metropolis-bold';
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-link {
  height: 35px;
  width: 35px;
  background-color: var(--ternary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.card-link .material-symbols-outlined {
  color: var(--white);
}

/* --- Slide wrapper pour hauteur uniforme --- */
.car-slider-ctr .slick-slide>div,
.van-slider-ctr .slick-slide>div,
.trailer-slider-ctr .slick-slide>div {
  padding: 0 20px;
  /* régler la largeur des cartes ici */
  height: 100%;
  display: flex;
}

.car-slider-ctr,
.van-slider-ctr,
.trailer-slider-ctr {
  margin-bottom: 3rem;
}

/* --- Responsive pour l'image --- */
@media screen and (max-width: 768px) {

  .car-card img,
  .van-card img {
    height: 150px;
  }
}