
:root {
  --primary-color: #926B6E;  /* Aubergine */
  --secondary-color: #F1C690; /* Beige */
  --accent-color: #B27D40;   /* Marron */
  --description-color:#B48B7A;
  --background-color: #ecf0f1; /* Gris clair */
  --text-color: #2c3e50;     /* Gris foncé */
  --jaune-logo: #FBE5BD;
  --rose-clair: #D2B8AE;
  --rouge: #BE0019;
}



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}
html, body {
  overflow-x: hidden; /* Empêche le défilement horizontal */
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

header::before {
    content: "";
    position: absolute;
    bottom: -6px; /* Ajuste cet espace pour superposer la barre */
    left: 0;
    width: 100%;
    height: 6px; /* Épaisseur de la nouvelle barre */
    background-color: var(--accent-color); /* Couleur de la nouvelle barre (vert) */
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Épaisseur du trait rouge */
    background-color: var(--secondary-color); /* Couleur du trait rouge */
}

.left-header {
    display: flex;
    align-items: center;
}

.logo img {
  height: 70px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding-top: 20px;
    margin-left: auto; /* Pousse les liens vers la droite */
    margin-right: 10px; /* Réduire l'espace entre les liens et les boutons */
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 10px; /* Ajout d'un padding supplémentaire pour abaisser le texte */
    font-size: 20px; /* Augmenter la taille du texte */
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #ddd;
    color: #000;
}

.right-buttons {
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
    margin-right: 0px; /* Ajuster pour garder les boutons à droite */
}

.language-switch button {
    padding: 8px 12px;
    border: none;
    background-color: #9F6F27;
    color: black;
    font-size: 12px;
    width: 36px; /* Largeur fixe pour le bouton */
    height: 30px; /* Hauteur fixe pour le bouton */
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.language-switch button:hover {
    background-color: #FBE5BD;
    color: black;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    width: 36px; /* Largeur fixe pour le bouton */
    height: 30px; /* Hauteur fixe pour le bouton */
    text-align: center;
}


/*Fin de la nav bar*/


main {
    padding-top: 70px;
}

section {
    padding: 20px;
    margin-bottom: 0px;
    color: #fff;
    box-sizing: border-box; /* Inclut le padding dans la hauteur totale */

}

section .content {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px; /* Ajustez la largeur maximale selon vos besoins */
}




/*Page d'accueil - Présentation*/



/* Style général pour la section */
.presentation {
  text-align: center; /* Centre le contenu de la section */
  padding: 0;
  margin: 0;
  width: 100%; /* La section prend toute la largeur de l'écran */
  background-color: var(--secondary-color)
}



/* Style pour l'image qui doit s'adapter à la largeur de l'écran tout en gardant ses proportions */
.responsive-image {
  width: 100%; /* L'image prend 100% de la largeur de l'écran */
  height: auto; /* La hauteur s'ajuste automatiquement pour garder les proportions */
  display: block; /* S'assure que l'image est un élément de bloc */
  padding-bottom: 0;

}





@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SFProRounded-Regular.woff2') format('woff2'),
       url('fonts/SFProRounded-Regular.woff') format('woff'),
       url('fonts/SFProRounded-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


.infos{
background-color: var(--secondary-color);
padding: 10%;
}

.infos h2{
  font-family: 'SF Pro Rounded', sans-serif !important;
  margin-top: 10px !important;
  font-size: 1.6rem !important;
  text-align:center;
  color: var(--rouge)
}.infos p{
  font-family: 'SF Pro Rounded', sans-serif !important;
  margin-top: 10px !important;
  font-size: 1.3rem !important;
  text-align: center;
  color: black
}




/*Page d'accueil - Offres du moments*/


@font-face {
    font-family: 'Kozuka Gothic Pro M';
    src: url('fonts/KozukaGothicPro-M.otf') format('woff2'); /* Remplace 'path/to/' par le bon chemin vers ta police */
    font-weight: normal;
}

@font-face {
    font-family: 'Kozuka Gothic Pro EL';
    src: url('path/to/KozukaGothicPro-EL.otf') format('opentype'); /* Remplace 'path/to/' par le bon chemin vers ta police */
    font-weight: normal;
}





.vehicle-showcase {
    background-color: var(--secondary-color);
    padding-top: 10%;

}

.section-title {
    padding-bottom: 30px !important;
    font-size: 5vw !important;
    font-family: 'Cooper Std' !important;
    font-weight: 200 !important;
    color: var(--text-color)!important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Ajoute un effet d'ombre */


}

.vehicle-section {
    display: flex;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    gap: 10%; /* Ajoute un écart entre la photo et les informations */
    align-items: center;
    padding-bottom: 10%
}



.vehicle-photo img {
    width: 100%;
    height: auto;
    object-fit: fill; /* L'image garde son format et remplit la div */
    border: 0.6vw solid var(--accent-color);
    align-items: center;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2); /* Ombre douce */

}

.vehicle-info {
    width: 30%;
    box-sizing: border-box;
    border: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2); /* Ombre douce */
}

.vehicle-info-header {
    background-color: var(--primary-color); /* Couleur de la partie marque et modèle */
    padding: 10px 15px;
    color: white;
    box-sizing: border-box;
    margin: 0;
}

.vehicle-brand,
.vehicle-model {
    margin: 0 0 10px 0;

}
.vehicle-brand{
  text-align: left;
  font-size: 3vw;
  align-items: center;
}
.vehicle-model{
  text-align: left;
  font-size: 2.8vw;
  font-weight: lighter;
          align-items: center;

}

.vehicle-info-body {
    background-color: var(--rose-clair); /* Couleur de la partie grid/prix/bouton */
    padding: 10px 15px;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments horizontalement */
}

.vehicle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 5px ;
    justify-items: left; /* Centre les éléments dans la grille */
    color: var(--text-color);

}

.detail, .detail-value {
      font-size: 1.6vw;
}

.vehicle-price {
    font-size: 3vw;
    font-weight: bold;
    margin: 10px 0;
    width: 100%;
    text-align: center; /* Aligne le prix à droite */
    color: var(--text-color)
}

.vehicle-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--rouge);
    font-size: 1.4vw;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.vehicle-button:hover {
    background-color: var(--rouge-);
}

/* Media Query pour écrans de moins de 900px */
@media (max-width: 900px) {
    .vehicle-section {
        flex-direction: column; /* Les éléments s'empilent en colonne */
        align-items: center;
    }

    .vehicle-photo {
        display: flex; /* Active Flexbox pour centrer l'image */
        justify-content: center; /* Centre horizontalement l'image */
        align-items: center; /* Centre verticalement l'image */
        width: 100%;
        margin-bottom: 2%;
    }

    .vehicle-photo img {
        width: 80%;
        height: auto;
        object-fit: fill; /* L'image garde son format et remplit la div */
        border: 10px solid var(--accent-color);
        align-self: center; /* Assure que l'image est centrée */
    }

    .vehicle-info {
        width: 72%; /* Le rectangle des infos prend 60% de la largeur de l'écran */
        display: flex;
        flex-direction: column;
        margin-bottom: 20%;
    }

    .vehicle-info-header {
        display: flex;
        justify-content: flex-start; /* Marque à gauche, modèle à droite */
        width: 100%;
        gap: 5px; /* Rapproche la marque et le modèle */
    }

    .vehicle-info-body {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Deux colonnes */
        grid-template-rows: auto auto;  /* Deux lignes */
        gap: 10px;

    }

    .vehicle-details {
        grid-column: 1 / 2; /* Occupe toute la colonne 1 */
        grid-row: 1 / 3;    /* Occupe les deux lignes de la colonne 1 */
    }
    .detail, .detail-value {
          font-size: 2.5vw;
    }

    .vehicle-price {
        grid-column: 2 / 3; /* Occupe la colonne 2 */
        grid-row: 1 / 2;    /* Occupe la première ligne de la colonne 2 */
        text-align: right;
    }

    .vehicle-button {
        grid-column: 2 / 3; /* Occupe la colonne 2 */
        grid-row: 2 / 3;    /* Occupe la deuxième ligne de la colonne 2 */
    }
    .vehicle-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: var(--rouge);
        font-size: 2vw;
}








/* Section localisation */
.localisation-title{
  font-size: 5vw !important;
  font-family: 'Cooper Std' !important;
  font-weight: 200 !important;
  color: var(--text-color)!important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Ajoute un effet d'ombre */
  background-color: var(--secondary-color);
  margin-top: 0;
  padding-bottom: 3vh;
  padding-top: 3%;
  padding-left: 2%;
  margin-bottom:0;

}

/* Section localisation */
.localisation {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  margin: 0;
  width: 100vw;
  box-sizing: border-box;
  background-color: var(--secondary-color);
}

/* Colonne gauche - image et adresse */
.left-column {
  width: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.building-image {
  width: 80%;
  height: auto;
  display: block;
}

/* Adresse avec police SF Pro Rounded */
.store-address {
  font-family: 'SF Pro Rounded', sans-serif;
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--text-color);
  text-align: center;
  display: flex;
  align-items: center; /* Aligne l'icône et le texte verticalement */
  justify-content: center;
  width: 90%; /* Prend 70% de la largeur de l'image */
  font-size: calc(0.7rem + 0.7vw); /* Ajuste la taille du texte en fonction de la largeur de l'écran */
}

/* Icône de localisation */
.location-icon {
  height: 1em; /* Taille de l'icône égale à la hauteur du texte */
  margin-right: 5px; /* Espacement entre l'icône et le texte */
  vertical-align: middle; /* Aligne l'icône avec le texte */
}

/* Colonne droite - superposition d'images */
.right-column {
  width: 50vw;
  display: flex;
  justify-content: flex-end;
  padding-right: 0;
  margin-right: 0;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

/* Conteneur des images superposées */
.image-stack {
  position: relative;
  width: 100%;
  padding-bottom: 90%;
  height: 0;
  transform: translateX(10%);
}

.stacked-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stacked-image + .stacked-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.image-stack:hover .stacked-image + .stacked-image {
  opacity: 1;
}

/* MEDIA QUERIES - changement sous 800px */
@media (max-width: 800px) {
  .localisation {
    flex-direction: column;
  }

  .right-column {
    width: 100%;
    justify-content: center;
    transform: translateX(1%);
  }

  .left-column {
    width: 80%;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .building-image {
    width: 100%;
  }

  .image-stack {
    width: 100%;
  }
}



/*BAS DE PAGE  */


/* Grille de 3 colonnes pour grands écrans */

/* Grille de 2 colonnes pour grands écrans */
.info-grid {

  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 20px; /* Espace entre les colonnes */
  padding: 20px;
  background-color: var(--primary-color);
  margin-top: 0;
}

/* Colonnes individuelles */
.info-column {
  background-color: #fff; /* Fond blanc pour contraste */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ajoute une ombre légère */
  color: #000;
  font-size: 18px;
  text-align: left;
  border: 1px solid #ddd; /* Ajoute une bordure subtile */
}

.info-column h3 {
  font-size: 20px;
  color: #000;
  margin-bottom: 10px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  text-align: left;
}

/* Style des listes */
.info-column ul {
  padding: 0;
  list-style: none;
  text-align: left;
}

.info-column ul li {
  margin-bottom: 5px;
  color: #000;
  text-align: left;
}

/* Media query pour petits écrans (800px et moins) */
@media (max-width: 800px) {
  .info-grid {
    grid-template-columns: 1fr; /* Passe en une seule colonne */
  }

  .info-column {
    margin-bottom: 20px; /* Ajoute un espace entre les colonnes empilées */
  }
}


/*-*/





footer {
  background-color: #926B6E; /* Couleur de fond du footer */
  padding: 20px; /* Ajout de padding pour espacer le contenu */
  color: #fff; /* Couleur du texte */
  text-align: center; /* Centrer le texte */
}

footer p {
  margin: 0; /* Retirer la marge par défaut */
  font-size: 16px; /* Taille du texte */
}








h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

p {
    color: #666;
    font-size: 18px;
    margin: 10px 0;


}




/* Styles spécifiques à la page "motos.html" */

.motos-page .vente-vehicules {
    padding: 0;
    margin: 0;
    background-color: white;
}

.motos-page .section-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 40px;
    color: black;
    padding-bottom: 0px;
    padding-top: 15px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.motos-page iframe {
    margin: 0;
    padding: 0;
    border: none;
}


/* Styles spécifiques à la page "contact.html"*/
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
}

.contact-form, .map-container {
  flex: 1;
  padding: 20px;
  border-radius: 0px; /* Bords à angle droit */
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 0px; /* Bords à angle droit */
  font-size: 16px;
}

/* Placeholder styling */
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #888;
  font-size: 14px;
}

.contact-form input:focus::placeholder, .contact-form textarea:focus::placeholder {
  color: transparent;
}

.contact-form button {
  margin-top: 20px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}






/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
}





/* Media Queries for Responsiveness */

@media (max-width: 1150px) {

  .logo img {
      height: 47px;
  }
  .company-name {
      font-size: 2.8em;
      margin-left: 10px;
  }
  nav ul li a {
      font-size: 0.95em; /* Réduire la taille du texte pour les liens du menu */
      /*padding: 8px 12px; /* Ajuster le padding pour réduire l'espace */
  }
}

@media (max-width: 1100px) {

  .logo img {
      height: 45px;
  }
  .company-name {
      font-size: 2.7em;
      margin-left: 10px;
  }
  nav ul li a {
      font-size: 0.9em; /* Réduire la taille du texte pour les liens du menu */
      /*padding: 8px 12px; /* Ajuster le padding pour réduire l'espace */
  }
  main {
      padding-top: 65px;
  }
}

@media (max-width: 1000px) {
  .logo img {
      height: 40px;
  }
  .company-name {
      font-size: 2.65em;
      margin-left: 10px;
  }
  nav ul li a {
      font-size: 0.8em; /* Réduire la taille du texte pour les liens du menu */
      /*padding: 8px 12px; /* Ajuster le padding pour réduire l'espace */
  }
  main {
      padding-top: 60px;
  }
}

@media (max-width: 950px) {
  .logo img {
      height: 38px;
  }
  .company-name {
      font-size: 2.55em;
      margin-left: 10px;
  }
  nav ul li a {
      font-size: 0.7em; /* Réduire la taille du texte pour les liens du menu */
      /*padding: 8px 12px; /* Ajuster le padding pour réduire l'espace */
  }
  main {
      padding-top: 57px;
  }
  .presentation h2 {
    font-size: 90px;
    font-family:'SignPainter', cursive;
    color: #BF0A1C;
  }
}

@media (max-width: 900px) {
  .logo img {
      height: 35px;
  }
  .company-name {
      font-size: 2.35em;
      margin-left: 10px;
  }
    nav ul li a {
        font-size: 0.65em; /* Réduire la taille du texte pour les liens du menu */
        /*padding: 8px 12px; /* Ajuster le padding pour réduire l'espace */
    }
    main {
        padding-top: 54px;
    }
}
