/* === Filtres produits === */
.filtres {
    padding: 2em;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.filtres form {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: space-between;
    align-items: flex-end;
}

.filtres input[type="text"],
.filtres input[type="number"],
.filtres select {
    padding: 0.5em;
    font-size: 1em;
    width: 180px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filtres button {
    padding: 0.6em 1.2em;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.filtres button:hover {
    background-color: #0056b3;
}

.toggle-filtres {
    display: none;
    background-color: #eee;
    padding: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.filtres-content {
    display: block;
}

@media (max-width: 768px) {
    .toggle-filtres {
        display: block;
    }

    .filtres-content {
        display: none;
        padding: 10px 0;
    }

    .filtres-content.open {
        display: block;
    }

    .filtres form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}




/* === Grille de produits === */
.liste-produits {
    padding: 2em;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
}

/* === Carte produit === */
.produit {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.produit:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.produit img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.produit h3 {
    margin: 0.7em 0 0.3em;
    font-size: 1.1em;
    color: #333;
}

.produit p {
    margin-bottom: 1em;
    font-weight: bold;
    color: #006486;
}

/* === Responsive adaptatif === */
@media (max-width: 600px) {
    .filtres form {
        flex-direction: column;
        align-items: stretch;
    }

    .filtres input,
    .filtres select,
    .filtres button {
        width: 100%;
    }
}




.produit-container {
    max-width: 1000px;
    margin: 2em auto;
    display: flex;
    gap: 2em;
    padding: 1em;
}
.carrousel {
    width: 50%;
    position: relative;
}
.carrousel img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}
.carrousel-controls {
    margin-top: 1em;
    display: flex;
    gap: 0.5em;
    justify-content: center;
}
.carrousel-controls img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}
.carrousel-controls img.active {
    border-color: #006486;
}

.details {
    width: 50%;
    text-align: left;
}
.details h1 {
    margin-top: 0;
}
.details form {
    margin-top: 1em;
}
.details select {
    padding: 0.5em;
    margin-bottom: 1em;
    font-size: 1em;
}
.details .prix{
    color: #006486;
    font-weight: bold;
    font-size: 1.5em;
}
.details button {
    padding: 0.3em 1.2em;
    background: #22a55b;
    border: none;
    color: #fff;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    font-weight: bold;
    align-items: center;
}
.details svg{
    width: 2em;
}
.message {
    background: #d4edda;
    color: #155724;
    padding: 1em;
    border-radius: 5px;
    margin-bottom: 1em;
}
.section-quantite{
    display: flex;
    padding-bottom: 1em;
    align-items: center;
}
.section-quantite label{
    padding-right: 1em;
}
.section-quantite .quantite{
    border: none;
    background-color: #006486;
    color: white;
    border-radius: 0.3em;
    font-weight: bold;
}

.section-quantite .quantite:focus-visible{
    outline: none;
}

/* === Responsive adaptatif === */
@media (max-width: 600px) {
    .details {
        width: 100%;
    }
    .carrousel {
        width: 100%;
    }
    .produit-container {
        flex-wrap: wrap;
    }
}
