@font-face {
  font-family: 'BMWTypeNextLatin';
  src: url('../fonts/BMWTypeNextLatin-Light.woff2') format('woff2');
  font-weight: 400; /* Regular */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BMWTypeNextLatinBold';
  src: url('../fonts/BMWTypeNextLatin-Regular.woff2') format('woff2');
  font-weight: 400; /* Regular */
  font-style: normal;
  font-display: swap;
}

/* Typo de base (sobre) */
:root{
  --hero-side-gap: clamp(1rem, 6vw, 5rem);
}

body {
  font-family: 'BMWTypeNextLatin', sans-serif;
}

h1,h2,h3,h4,h5{
  font-family: 'BMWTypeNextLatinBold', sans-serif;
}

.bg-grey{
    background-color: #f6f6f6;
}

.btn-primary{
    background-color: #1c69d4;
}

.btn{
    padding:10px 30px 10px 30px;
    border-radius: 3px;
}

.motorisation-icon {
    position: absolute;
    top: 10px;         /* distance du haut */
    right: 10px;       /* distance de la droite */
    width: 30px;       /* taille du logo */
    height: auto;
    z-index: 10;       /* toujours au-dessus du carrousel */
    opacity: 0.9;      /* optionnel : légère transparence */
}

.img-modelm{
  max-width:40px;
}

.img-elec{
  max-width:20px;
}

/* Petit texte au-dessus du H1 */
.overline {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 0.9rem;
  margin-bottom: .5rem;
}

.hero-content h1{
    font-size: 10rem;
    line-height: 8rem;
    letter-spacing: 4px;
}

.hero-content h2{
    font-size: 7rem;
    letter-spacing: 4px;
}

.hero-content h3{
    font-size: 5rem;
    letter-spacing: 4px;
}

.hero-content p{
    letter-spacing: 4px;
}

/* ===== HERO HEADER ===== */
.hero-header {
  position: relative;
  height: 100vh; /* prend tout l’écran */
  display: flex;
  flex-direction: column;
}

/* Image de fond */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Overlay sombre pour lisibilité */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

/* NAV transparent sur l’image */
.navbar {
  position: relative;
  z-index: 2;
  background: transparent !important;
  padding:0.5em 1.5em 0 1.5em;
}

.navbar_border {
    border-bottom: solid 1px;
    padding-bottom: 5px;
}

.navbar_white{
    color:#fff;
}

.navbar_black{
    color:#000;
}

.navbar .nav-link:hover {
  color: #1c69d4;
}

/* Texte du hero */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1000px;
  margin-left:3vw;
  margin-top: 8vw;
}

/* Icône ronde "Trouvez votre BMW" */
.find-icon{
  width: 70px; height: 70px; border:1px solid #000;
}

/* ===== BANNIÈRES ===== */
.banner{
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.banner .banner-bg{ position:absolute; inset:0; background-size:cover; background-position:center; }
/* Dégradé noir -> transparent depuis la gauche, pour positionner le texte à gauche */
.banner::before{
  content:"";
  position:absolute; 
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.55) 28%, rgba(0,0,0,.25) 52%, rgba(0,0,0,0) 75%);
}
.banner .banner-copy{
  position:relative;
  margin-left: var(--hero-side-gap);
  max-width: 34rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.banner .banner-copy-left{
  position:relative;
  margin-left: var(--hero-side-gap);
  max-width: 34rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.banner .banner-copy-center {
  position: relative;
  margin: 0 auto; /* centre horizontalement */
  max-width: 34rem;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.banner .banner-copy-right {
  position: relative;
  margin-right: var(--hero-side-gap);
  margin-left: auto; /* pousse le bloc à droite */
  max-width: 34rem;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.banner-title{ font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }

/* ===== FOOTER ===== */
.footer-link { color: #000; text-decoration:none; }
.footer-link:hover { color:#000; text-decoration:underline; }

/* ===== Responsive ajouts ===== */
@media (max-width: 575.98px){
  .hero-bleed{ min-height: 68vh; }
  .banner{ min-height: 56vh; }
  .hero-copy, .banner-copy{ margin-left: 1rem; margin-right: 1rem; }
}

@media (max-width: 991px){
  .navbar_border {
        border-bottom: none;
    }
}

/***** TROUVER VOTRE BMW *****/
/* Section Trouvez votre BMW */
.find-bmw {
  padding: 6rem 0;
  background-color: #fff;
}

.find-bmw h2 {
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.find-icon {
  width: 70px;
  height: 70px;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.find-icon i {
  font-size: 1.8rem;
}

.btn-outline-dark {
  border-width: 1px;
  font-weight: 500;
}

/***** Page Model *****/

/* Container principal */
.pmodels-list {
  --pmodels-transition: all 0.3s ease;
}

/* Vignettes */
.pmodels-card {
  transition: var(--pmodels-transition);
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.pmodels-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Zone image principale */
.pmodels-card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

/* Image principale */
.pmodels-card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Carrousel (masqué par opacité, pas display:none) */
.pmodels-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

/* Affichage au survol */
.pmodels-card-image:hover .pmodels-carousel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Images du carrousel */
.pmodels-carousel img,
.pmodels-carousel .carousel-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prix */
.pmodels-price {
  font-weight: 500;
  font-size: 1.5rem;
}

/* Bloc des infos moteur (icônes + texte) */
.pmodels-infos {
  align-items: center;
  justify-content: center;
  row-gap: 1rem;
}

.pmodels-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.pmodels-info-item i {
  font-size: 1.6rem;
  color: #000;
}

.pmodels-info-text {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
  text-align: center;
}

.pmodels-card-image > img {
  transition: opacity 0.3s ease;
}

/* Quand on survole, on rend l’image principale invisible */
.pmodels-card-image:hover > img {
  opacity: 0;
}

/* Responsive : meilleure répartition sur petit écran */
@media (max-width: 576px) {
  .pmodels-infos > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .pmodels-card-image {
    height: 200px;
  }
}

/***********************************************/
/************ FICHE CARACTERISTIQUES ***********/
.fiche-title { letter-spacing: .04em; }

.fiche-model {
  border-width: 2px !important;
}

.fiche-model.fiche-model-active {
  border-color: #1c69d4 !important;
  box-shadow: 0 0 0 .2rem rgba(28,105,212,.15);
}

.fiche-group-title { letter-spacing: .06em; }

.fiche-hero { min-height: 320px; }

.fiche-model-name {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 16vw, 12rem);
  color: #f1f3f5;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.fiche-hero img { position: relative; z-index: 1; }

@media (max-width: 576px) {
  .fiche-hero { min-height: 220px; }
}

/* Section : fond blanc autour du panneau */
.offre-section {
  background-color: #fff;
}

/* Panneau (card) : gris très clair comme sur la capture */
.offre-card {
  background-color: #f3f3f3; /* gris clair du panneau */
  border-radius: 4px;
}

/* Ruban "Offre" : petit label en haut-gauche avec biseau */
.offre-ruban {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #4a4a4a;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  padding: 8px 14px;
}
.offre-ruban::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 10px solid #3c3c3c; /* ombre du biseau */
  border-right: 10px solid transparent;
}

/* Image voiture */
.offre-img {
  height: auto;
}

/* Puces à la BMW (points discrets) */
.offre-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .5rem;
}
.offre-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

/* Typo */
.offre-card h5 { color: #111; font-weight: 500; }
.offre-card p.display-6 { color: #111; letter-spacing: .02em; }

/* Responsive */
@media (max-width: 992px) {
  .offre-ruban { top: 0; left: 0; font-size: .9rem; padding: 7px 12px; }
  .offre-ruban::after { border-top-width: 9px; right: -9px; }
  .offre-img { max-width: 380px; }
}

@media (max-width: 576px) {
  .offre-img { max-width: 300px; }
}

/****** Vignette viédo *******************/
.video-card {
  /* max-width: 550px; */
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.video-element {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Bouton lecture/pause */
.video-play-icon {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: opacity .25s ease;
}

.video-play-icon:hover {
  opacity: .8;
}

/* Taille réduite */
.video-play-icon svg {
  width: 30px;
  height: 30px;
}

/*************** MEGA MENU ***************/
.nav-item-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #eaeaea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: none;
  padding: 2.5rem 6vw;
  z-index: 99;
}

.mega-inner h3 {
  color: #111;
  margin-bottom: 0.6rem;
}

.mega-inner a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.mega-inner a:hover {
  color: #1c69d4;
}

/* Apparition fluide */
.nav-item-mega.show .mega-menu {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .mega-menu {
    position: static;
    box-shadow: none;
    padding: 1.5rem 2rem;
    display: none;
  }

  .nav-item-mega.show .mega-menu {
    display: block;
  }

  .mega-inner .row > div {
    margin-bottom: 1.5rem;
  }
}

/* Supprime la couleur au survol */
.navbar .nav-link {
  position: relative;
  color: inherit; /* garde la couleur d’origine (blanc ou noir selon ta classe) */
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Empêche tout changement de couleur au hover */
.navbar .nav-link:hover {
  color: inherit !important;
}

/* Barre bleue sous le lien actif ou au survol */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #1c69d4;
  transition: width 0.25s ease;
}

/* Affiche la barre bleue au survol ou quand le menu est ouvert */
.navbar .nav-item-mega.show > .nav-link::after,
.navbar .nav-link:hover::after {
  width: 100%;
}

.prise_rdv{
  color:#111;
}

.prise_rdv:hover{
  color:#1c69d4;
}

/*********** BMW Slider ***********/
.bmw-slider {
  font-family: 'BMWTypeNextLatin', sans-serif;
}

.bmw-slider-image img {
  transition: opacity .4s ease;
  border-radius: 6px;
}

.bmw-slider-text {
  text-align: left;
}

.bmw-slider-tabs {
  gap: 1rem;
}

.bmw-tab, .bmw-second-tab {
  flex: 1 1 20%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}

.bmw-tab:hover, .bmw-second-tab:hover {
  color: #1c69d4;
  cursor: pointer;
}

.bmw-tab.active,  .bmw-second-tab.active {
  border-bottom-color: #1c69d4;
  color: #1c69d4;
}

/* HERO SMALL */
.bmw-hero-small {
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.bmw-hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0; left: 0;
    z-index: 0;
}

.bmw-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.bmw-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* CONTACT SECTION */
.bmw-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.bmw-contact-info h2, .bmw-contact-form h2 {
    margin-bottom: 1rem;
}

.bmw-contact-info p, .bmw-contact-info a {
    color: #555;
    line-height: 1.6;
}

.bmw-contact-info a {
    text-decoration: none;
    color: var(--bmw-blue);
}

.bmw-contact-socials a {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--bmw-blue);
}

.bmw-contact-form form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--bmw-font);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bmw-blue);
    outline: none;
}

/* MAP */
.bmw-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .bmw-contact {
        grid-template-columns: 1fr;
    }
}

