/* Styles Globaux */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/concess_photo_1.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.btn-red {
    text-decoration: none;
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-red:hover {
    background-color: rgb(245, 58, 37);
    transform: scale(103%);
}

.grid-cars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 15px 50px 40px 50px;
}

.card {
    position: relative;
    background: white;
    border: 1px solid #000;
    border-bottom: 4px solid #000;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.deleteButt {
    position: absolute;
    top: 10px;
    /* Distance du haut */
    right: 10px;
    /* Distance de la droite */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    /* Pour passer au-dessus de l'image si besoin */
    color: #ffffff;
    border: #ffffff 3px solid;
    background-color: #000000;
    border-radius: 15px;
    padding: 1px 5px 0 5px;
    line-height: 1;
    transition: all 0.3s;
}

.deleteButt:hover {
    color: rgb(255, 101, 96);
    border: red 3px solid;
}

.card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.insideCard {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}

.insideCard h4 {
    margin-top: 0;
    margin-bottom: 0;
}

.insideCard p {
    margin-top: 3%;
    margin-bottom: 3%;
    margin-left: 3%;
}

.onBottom {
    margin-top: auto;
}

.cardTag {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    margin: 1% 0 4% 0;
    gap: 10px;
}

.cardTag article {
    height: 25px;
    border-radius: 15px;
    color: black;

    padding: 0px 10px;
    display: flex;
    align-items: center;
}

.cardTag article div {
    width: 7px;
    height: 7px;
    border-radius: 15px;
    margin-right: 7px;
}

.cardTag article p {
    margin: 0;
}

.Performance {
    background-color: rgba(218, 145, 28, 0.282);
    border: 1px solid rgb(218, 145, 28);
}

.Performance div {
    background-color: rgba(218, 145, 28);
}

.Esthetique {
    background-color: rgba(223, 231, 18, 0.282);
    border: 1px solid rgb(223, 231, 18);
}

.Esthetique div {
    background-color: rgba(223, 231, 18);
}

.Audio {
    background-color: rgba(143, 43, 174, 0.282);
    border: 1px solid rgb(143, 43, 174);
}

.Audio div {
    background-color: rgba(143, 43, 174);
}

.Thermique {
    background-color: rgba(174, 43, 43, 0.282);
    border: 1px solid rgb(174, 43, 43);
}

.Thermique div {
    background-color: rgba(174, 43, 43);
}

.Electrique {
    background-color: rgba(48, 205, 92, 0.282);
    border: 1px solid rgb(48, 205, 92);
}

.Electrique div {
    background-color: rgba(48, 205, 92);
}

.Hybride {
    background-color: rgba(37, 142, 223, 0.282);
    border: 1px solid rgb(37, 142, 223);
}

.Hybride div {
    background-color: rgb(37, 142, 223);
}

h3 {
    font-size: x-large;
    padding-left: 30px;
    margin-top: 40px;
}

.off {
    cursor: not-allowed;
}

.OnSale {
    color: #e74c3c;
    text-decoration: line-through;
    font-size: small;
}

/* Delete Butt */

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fond noir transparent */
    display: none;
    /* Caché par défaut, géré en flex par le JS */
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 20px 30px 20px 30px;
    text-align: center;
    max-width: 350px;

    background: white;
    border: 1px solid #000;
    border-bottom: 4px solid #000;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Tes styles de boutons ici */
.btn-confirm {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.btn-close {
    background: #cacaca;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Responsive */

@media (max-width: 1024px) {
    .grid-cars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-cars {
        grid-template-columns: 1fr;
    }

    .grid-cars {
        padding: 15px 15px 40px 15px;
    }

    h3 {
        padding-left: 5px;
        text-align: center;
    }
}