/*
Theme Name: Astra Child
Theme URI: http://example.com/astra-child/
Description: Astra Child Theme
Author: WordPress
Author URI: http://example.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-twenty-four-child
*/

/* Custom styles go here */
.voiture-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.voiture-content {
    text-align: center;
    position: relative; /* Permet de positionner le bouton à l'intérieur */
}

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

.voiture-gallery img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.short-description {
    font-style: italic;
}

.full-description {
    margin-top: 10px;
}

.toggle-description {
    background-color: #0073aa;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.couleur-voiture {
    display: inline-block;
    width: 100px;  /* Largeur du rectangle */
    height: 20px; /* Hauteur du rectangle */
    margin-left: 10px; /* Espacement à gauche du rectangle */
    margin-top: 10px;
    margin-bottom: -5px;
    border: 1px solid #ccc; /* Bordure légère */
}

.visualisation-3d {
    margin-top: 20px; 
    margin-bottom: 20px;
    height: 300px; 
}

.voitures-container {
    width: 80%;
    margin: auto;
    text-align: center;
}

#filtre-marque {
    margin: 20px 0;
    padding: 5px;
    font-size: 16px;
}

#voitures-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.voiture-item {
    width: 250px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.voiture-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

#panier-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#panier-btn.in-panier {
    background-color: #f44336;
}

.panier-container {
    max-width: 800px;
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.panier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.panier-item img {
    width: 80px;
    height: auto;
    border-radius: 5px;
    margin-right: 15px;
}

.remove-panier-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 2px;
}

#panier-total {
    text-align: right;
    margin-top: 20px;
}

#payer-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#payer-btn:hover {
    background-color: #218838;
}
