/*
Theme Name: Astra Child
Theme URI: https://example.com/astra-child
Description: Thème enfant pour Astra
Author: Ton nom
Template: astra
Version: 1.0
*/

.fiche-vehicule {
  max-width: 1000px;
  margin: 2rem auto;
  color: #fff;
  background: #111;
  padding: 2rem;
  border-radius: 12px;
}

body.single-vehicule {
  background-color: #0e1322 !important;
}

.image-principale {
  position: relative;
  text-align: center;
  max-width: 65%;
  margin: 0 auto;
}

.image-principale img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Bandeau VENDU parfaitement placé */
.bandeau-vendu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: red;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


.galerie {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.galerie img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.galerie img:hover {
  transform: scale(1.05);
}

.infos {
  text-align: center;
  margin-bottom: 2rem;
}

.infos p strong {
  color: orange;
}

.options {
  background: #222;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.options h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.options ul {
  list-style: disc inside;
  color: #ddd;
  padding-left: 1rem;
}

/* Swiper slide container */
.swiper-container {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  cursor: pointer;
  text-align: center;
  background: #000;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  max-width: 250px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
}


/* Image */
.slider-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* ✅ équivalent à aspect-ratio: 4/3 */
  border-radius: 0.5rem;
  overflow: hidden;
}

.slider-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.5rem;
}


/* Titre sous l'image */
.slider-title {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;

  display: block;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
}





/* Bandeau VENDU sous le titre */
.bandeau-vendu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 5px 0;
  font-size: 14px;
  z-index: 10;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.bandeau-disponible {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2ecc71; /* vert clair */
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 5px 0;
  font-size: 14px;
  z-index: 10;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


/* Navigation */
.swiper-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.swiper-button-prev,
.swiper-button-next {
  position: static !important;
  color: #999;
  background: rgba(255, 255, 255, 0.08); /* fond très discret */
  padding: 4px 8px;       /* plus petit */
  border-radius: 4px;
  font-size: 12px;        /* réduit la taille des chevrons */
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.swiper-pagination-bullet {
  background: #000;
}


/* Ligne des actions avec espace entre les éléments */
.btn-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
  flex-wrap: wrap;
}

/* Style commun pour les boutons Retour et Contact */
.btn-retour,
.btn-contact {
  padding: 10px 15px;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-retour:hover,
.btn-contact:hover {
  background-color: #444;
  transform: scale(1.05);
}

/* Numéro de téléphone au centre */
.tel-centre {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff; /* blanc */
}
.carte-vehicule {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}

