/* ==================================================================
   Projet Code — front (shortcodes [projet_categorie] [projet_global])
   ================================================================== */

.encapsule_projet {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e1e4e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.encapsule_projet > .pc-collapse-header,
.encapsule_projet > .pc-collapse-body {
    width: 100% !important;
    flex: 0 0 auto !important;
}

.encapsule_projet:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ---------- Header (cliquable) ---------- */
.pc-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: #576557;
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'LEMONMILKB', 'Quicksand', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.pc-collapse-header:hover {
    background: #6d8568;
}

.pc-collapse-title {
    flex: 1;
    line-height: 1.3;
}

.pc-collapse-chevron {
    margin-left: 12px;
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.encapsule_projet.is-open .pc-collapse-chevron {
    transform: rotate(180deg);
}

/* ---------- Body (collapsible) ---------- */
.pc-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 24px;
}

.encapsule_projet.is-open .pc-collapse-body {
    max-height: 100000px;
    padding: 20px 24px;
}

.encapsule_projet .wishlist-project-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---------- Titres de catégories ---------- */
.encapsule_projet .projet_titre1 {
    background: #576557;
    color: #fff;
    font-family: 'LEMONMILKB', 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 16px;
    margin: 18px 0 12px;
    border-radius: 4px;
}

.encapsule_projet .projet_titre2 {
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 0;
    margin: 12px 0 8px;
    border-bottom: 2px solid #576557;
}

.encapsule_projet .projet_titre3 {
    color: #576557;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0 6px;
}

.encapsule_projet .projet_titre4 {
    color: #576557;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin: 8px 0 6px;
}

/* ---------- Produit (layout horizontal sur une ligne) ---------- */
.encapsule_projet .product-item10 {
    display: grid;
    grid-template-columns: minmax(auto, 420px) 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
}

.encapsule_projet .product-item10:last-child {
    border-bottom: none;
}

.encapsule_projet .product_details1 {
    display: flex;
    gap: 14px;
    align-items: center;
    grid-column: 1;
    min-width: 0;
}

.encapsule_projet .product-details {
    min-width: 0;
}

.encapsule_projet .product-thumbnail img {
    max-width: 75px;
    max-height: 75px;
    object-fit: contain;
}

.encapsule_projet .product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Quicksand', sans-serif;
    min-width: 0;
}

.encapsule_projet .sku {
    margin: 0;
    font-size: 11px;
    color: #888;
}

.encapsule_projet .product-name a {
    color: #576557;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.encapsule_projet .product-name a:hover {
    color: #576557;
}

.encapsule_projet .petite_description p,
.encapsule_projet .sales_uom p {
    margin: 2px 0;
    font-size: 12px;
    color: #666;
}

.encapsule_projet .product_details3 {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    grid-column: 2;
    justify-self: center;
}

.encapsule_projet .documentation-icon3 {
    width: 28px;
    height: auto;
}

.encapsule_projet .choix_variante_et_quantité {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    grid-column: 3;
}

.encapsule_projet .product-variations:empty {
    display: none;
}

.encapsule_projet .variation-select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    width: 100%;
}

.encapsule_projet .product_details5 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.encapsule_projet .product-price-order-type {
    font-weight: 700;
    color: #4a7042;
    font-size: 15px;
    text-align: right;
    white-space: nowrap;
    min-width: 95px;
}

.encapsule_projet .product-quantity {
    flex-shrink: 0;
}

.encapsule_projet .product-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
    width: 95px;
}

.encapsule_projet .bouton_gauche,
.encapsule_projet .bouton_droit {
    background: #f3f3f3;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
}

.encapsule_projet .bouton_gauche:hover,
.encapsule_projet .bouton_droit:hover {
    background: #e5e5e5;
}

.encapsule_projet .quantity-input {
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    text-align: center;
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
    height: 100%;
    font-size: 14px;
    -moz-appearance: textfield;
}

.encapsule_projet .quantity-input::-webkit-inner-spin-button,
.encapsule_projet .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.encapsule_projet .product-total-price {
    display: none;
}

.encapsule_projet .product-add-to-cart {
    flex-shrink: 0;
}

.encapsule_projet .product-add-to-cart-button6 {
    background: #ccc;
    color: #fff;
    border: none;
    padding: 9px 18px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.encapsule_projet .product-add-to-cart-button6:not(.isDisabled) {
    background: #576557;
}

.encapsule_projet .product-add-to-cart-button6:not(.isDisabled):hover {
    background: #6d8568;
}

.encapsule_projet .product-add-to-cart-button6.isDisabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .encapsule_projet {
        width: 95%;
    }
    .encapsule_projet .product-item10 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .encapsule_projet .product_details1,
    .encapsule_projet .product_details3,
    .encapsule_projet .choix_variante_et_quantité {
        grid-column: 1;
    }
    .encapsule_projet .product_details3 {
        justify-self: start;
    }
    .encapsule_projet .product_details5 {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .encapsule_projet .product-price-order-type {
        text-align: left;
    }
}
