body {
    margin: 0;
    background-color: #b29bdd;
    color: #333;
    font-family: 'Poppins', sans-serif;
}
.catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;

    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;

    box-sizing: border-box;
}

.carte-produit {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;

    background-color: #fffaf2;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    text-align: center;
    overflow: hidden;
}

.informations-produit {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-wrap: anywhere;
}

.nom-produit {
    color: #8064a9;
    font-size: 1.2rem;
    margin: 12px 0;
}

.carte-produit .categorie {
    font-size: 0.85rem;
    opacity: 0.7;
}

.description-produit {
    line-height: 1.5;
}

.prix-produit {
    margin-top: auto;
    padding-top: 12px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #8064a9;
}

.galerie-photos {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.galerie-photos img {
    width: 55px;
    height: 55px;

    object-fit: cover;
    border-radius: 8px;
}

/* Navigation entre les pages du catalogue */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px auto 35px;
    padding: 0 20px;
}

.pagination[hidden] {
    display: none;
}

.pagination button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background-color: #8064a9;
    color: #fffaf2;
    font: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#numero-page {
    color: #8064a9;
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.pagination button,
.numeros-pages button {
    min-width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid #8064a9;
    border-radius: 10px;
    background-color: #fffaf2;
    color: #8064a9;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.numeros-pages {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination button:hover:not(:disabled),
.numeros-pages button:hover {
    background-color: #8064a9;
    color: white;
}

/* Page actuellement sélectionnée */
.numeros-pages button.active {
    background-color: #8064a9;
    color: white;
    font-weight: bold;
}

/* Boutons désactivés */
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.galerie-produit {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f8f5fa;
}

.image-produit {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aucune-photo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 16px;
}

/* Boutons de navigation */

.galerie-precedent,
.galerie-suivant {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 35px;
    height: 35px;

    border: none;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.85);
    color: #6d527b;

    font-size: 18px;
    cursor: pointer;

    transition: background-color 0.2s;
}

.galerie-precedent {
    left: 10px;
}

.galerie-suivant {
    right: 10px;
}

.galerie-precedent:hover,
.galerie-suivant:hover {
    background-color: white;
}

/* Compteur */

.galerie-compteur {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);

    padding: 4px 10px;
    border-radius: 20px;

    background-color: rgba(255, 255, 255, 0.85);
    color: #6d527b;

    font-size: 12px;
}

/* ================================== */
/* FILTRES DU CATALOGUE */
/* ================================== */

.filtres-catalogue {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: 20px;

    width: 100%;
    margin: 25px auto;
    padding: 0 15px;

    box-sizing: border-box;
}

.recherche-catalogue,
.filtre-categorie {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.filtres-catalogue label {
    font-size: 1rem;
    color: #6d527b;
}

.filtres-catalogue input,
.filtres-catalogue select {
    width: 250px;
    max-width: 100%;

    padding: 12px 15px;

    border: 1px solid #d8c7e2;
    border-radius: 10px;

    background-color: #fffdf8;
    color: #6d527b;

    font-family: inherit;
    font-size: 1rem;

    outline: none;
}

.filtres-catalogue input:focus,
.filtres-catalogue select:focus {
    border-color: #a986c0;
}


/* ================================== */
/* PAGINATION */
/* ================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 30px auto;
}

.pagination button {
    min-width: 38px;
    min-height: 38px;

    padding: 8px 12px;

    border: 1px solid #d8c7e2;
    border-radius: 8px;

    background-color: #fffdf8;
    color: #6d527b;

    font-family: inherit;
    font-size: 1rem;

    cursor: pointer;

    transition: 0.2s;
}

.pagination button:hover:not(:disabled) {
    background-color: #e9d9f2;
}

.pagination button.page-active {
    background-color: #b99acb;
    color: white;
    border-color: #b99acb;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* ================================== */
/* RESPONSIVE */
/* ================================== */

@media (max-width: 600px) {

    .filtres-catalogue {
        flex-direction: column;
        align-items: stretch;
    }

    .recherche-catalogue,
    .filtre-categorie {
        width: 100%;
    }

    .filtres-catalogue input,
    .filtres-catalogue select {
        width: 100%;
    }

    .pagination {
        gap: 5px;
    }

    .pagination button {
        min-width: 34px;
        min-height: 34px;
        padding: 6px 9px;
        font-size: 0.9rem;
    }
}

h1{
    font-family: 'Iceberg';
    font-size: clamp(30px, 3vw, 40px);
    text-align: center;
    color: #30245c;
}