body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
#Html1
{
   flex-grow: 0;
   flex-shrink: 0;
   flex-basis: 100%;
   align-self: center;
}
#FlexContainer1
{
   display: flex;
   position: relative;
   padding: 10px 10px 10px 10px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-around;
   align-items: center;
   align-content: flex-start;
   margin: 0;
   background-color: transparent;
   background-image: none;
   border: 0px solid #CCCCCC;
   border-radius: 0px;
   box-sizing: border-box;
   font-size: 0;
}
/* === COMPORTEMENT PAR DÉFAUT (DESKTOP) === */
body {
  overflow-y: auto;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}
html, body {
  max-width: 100vw;
}
.table-wrapper {
  width: 100%;
  padding: 16px;
  overflow-x: hidden;
  box-sizing: border-box;
}
.table-voitures {
  display: table;
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
  table-layout: fixed;
}
.table-voitures thead {
  display: table-header-group;
}
.table-voitures tbody {
  display: table-row-group;
}
.table-voitures tr {
  display: table-row;
}
.table-voitures th,
.table-voitures td {
  display: table-cell;
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  white-space: normal;
}
.table-voitures th {
  background-color: #eee;
  text-align: center;
}
caption {
  caption-side: top;
  font-weight: bold;
  padding: 8px;
}
/* Largeurs figées */
.col-fixe {
  width: 130px;
}
.col-large {
  width: auto;
}
/* Harmonisation des champs */
select,
input[type="number"],
button {
  width: 100%;
  box-sizing: border-box;
}
/* Vignettes */
img.vignette {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
}
.vignette.vendue {
  filter: grayscale(100%);
  opacity: 0.6;
}
.vignette-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.vendu-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: crimson;
  color: white;
  padding: 3px 8px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transition: transform 0.3s ease-in-out;
}
.lightbox:target {
  display: flex;
}
.lightbox:target img {
  transform: scale(1.05);
}
/* === VERSION MOBILE (≤ 968px) === */
@media screen and (max-width: 968px) {
  body::before {
    content: "Nos Véhicules d'Occasions";
    display: block;
    background: #ff6f00;
    color: white;
    text-align: center;
    padding: 6px;
    font-weight: bold;
    font-size: 14px;
  }
  .table-wrapper {
    padding: 8px;
  }
  .table-voitures {
    border: none;
    table-layout: fixed;
  }
  .table-voitures thead {
    display: none;
  }
  .table-voitures tr {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    background: #fff8f0;
    border: 1px solid #e0cfc0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px;
    box-sizing: border-box;
  }
  .table-voitures td {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: relative;
    box-sizing: border-box;
    word-break: break-word;
    white-space: normal;
  }
  .table-voitures td:last-child {
    border-bottom: none;
  }
  .table-voitures td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  img.vignette {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 8px;
  }
  .vendu-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: crimson;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 6px;
  }
  /* Icônes décoratives */
  .table-voitures td[data-label="Marque"]::before {
    content: "🚗 Marque";
  }
  .table-voitures td[data-label="Modèle"]::before {
    content: "📘 Modèle";
  }
  .table-voitures td[data-label="Année"]::before {
    content: "📅 Année";
  }
  .table-voitures td[data-label="Prix"]::before {
    content: "💰 Prix";
  }
  .table-voitures td[data-label="Kilometrage"]::before {
    content: "🛣️ Kilométrage";
  }
  .table-voitures td[data-label="Caracteristiques"]::before {
    content: "🧩 Caractéristiques";
  }
  .table-voitures td[data-label="Photo"]::before {
    content: "🖼️ Photo";
  }
}
