html body {
    height: auto;
    overflow-x: clip;
    overflow-y: scroll;
    display: flex;
    justify-content: center; /* Centre le contenu horizontalement */
}

.machine-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.machine-card {
    margin-top: 35px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px; /* Ajoute une bordure intérieure de 10px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    width: 100%;
    max-width: 390px;
    height: 630px;
    background-color: white;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

/* Fixe une hauteur identique pour les images */
.machine-card .machine-img {
    width: 100%;
    height: 305px; /* Ajuste selon tes besoins */
    overflow: hidden;
    border-radius: 15px;
    flex-shrink: 0;
}

.machine-card .machine-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que toutes les images ont le même rendu sans déformation */
    display: block;
}

/* Ajoute un padding uniquement au texte et permet au texte de s'adapter */
.machine-card .machine-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet au contenu de s'étendre pour équilibrer la carte */
    padding: 15px;
}

/* Empêche la description d'être trop longue et de modifier la hauteur des cartes */
.machine-card .DescriptionEtatMachine {
    max-height: 60px; /* Ajuste selon le besoin */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.machine-card .CategorieMachine {
    font-style: italic;
    font-size: 14px;
    color: #ffde59;
}

.machine-card .NomMachine {
    font-weight: 500;
    font-size: 22px;
}

.machine-card .ModeleMachine {
    font-size: 22px;
    font-weight: 300;
}

.machine-card .PrixOccasion {
    font-size: 18px;
    font-weight: 300;
    color: red;
}

.machine-card .DescriptionEtatMachine {
    font-weight: 300;
}

.machine-link {
    text-decoration: none; /* Pas de soulignement */
    color: inherit; /* Hérite de la couleur du texte */
}

.machine-link:hover {
    text-decoration: none; /* Assure aucun soulignement au survol */
}

.Stars {
    color: gold;
    font-size: 15px;
    margin-top: 5px;
}

.EtatText {
    color: black;
    font-size: 15px;
    margin-right: 5px;
}

.label {
    font-weight: bold; /* Met le texte en gras */
    font-size: 18px; /* Taille de la police */
    display: block; /* Forcer le retour à la ligne */
    margin-bottom: 5px; /* Ajoute un espace sous le label */
}

#occasion-info-title-text {
    margin-left: 0%;
    font-weight: bold;
    font-size: 22px;
    position: absolute;
    z-index: 1;
}

#occasion-info-title-background-image {
    margin-left: 7%;
    z-index: 2;
}

@media (max-width: 600px) {
    .machine-card {
        width: 90%; /* Ajuste la largeur pour les petits écrans */
        margin-left: auto;
        margin-right: auto;
    }
}