/* ============================================================
   FL Plateau — Compositeur
   ============================================================ */

.flplateau-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 80px;
    font-family: inherit;
}

.flplateau-intro {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 28px;
}

/* ---- Product grid ---- */

.flplateau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.flplateau-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}

.flplateau-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.flplateau-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flplateau-no-img {
    font-size: 3rem;
}

.flplateau-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flplateau-card-name {
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
    color: #222;
    line-height: 1.3;
}

.flplateau-card-price {
    font-size: .88rem;
    color: #2E86AB;
    font-weight: 500;
    margin: 0;
}

/* ---- Qty controls ---- */

.flplateau-qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.flplateau-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: background .15s;
}

.flplateau-qty-btn:hover {
    background: #e0e0e0;
}

.flplateau-qty-input {
    width: 52px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: .95rem;
}

.flplateau-line-total {
    font-size: .85rem;
    color: #1a7a50;
    font-weight: 600;
    margin: 0;
    display: none;
}

/* ---- Footer bar ---- */

.flplateau-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid #e0e0e0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    z-index: 100;
    flex-wrap: wrap;
}

.flplateau-total-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flplateau-total-label {
    font-size: 1rem;
    color: #555;
}

.flplateau-total-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a7a50;
}

.flplateau-cart-msg {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a7a50;
}

.flplateau-btn-add {
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.flplateau-btn-add:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ---- Feedback ---- */

.flplateau-feedback {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .95rem;
    margin-top: 20px;
}

.flplateau-feedback.hidden {
    display: none;
}

.flplateau-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.flplateau-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.flplateau-success a {
    color: #0a5b2e;
    font-weight: 600;
    text-decoration: underline;
}

/* ---- Composition block (orders) ---- */

.flplateau-composition-block {
    background: #f0faf5;
    border: 1px solid #b7e0c8;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.flplateau-composition-block h4 {
    margin-top: 0;
    font-size: 1rem;
    color: #1a7a50;
}

/* ---- Nav link ---- */

.flplateau-nav-item a {
    font-weight: 600;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
    .flplateau-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flplateau-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
    }
    .flplateau-wrapper {
        padding-bottom: 160px;
    }
}

@media (max-width: 480px) {
    .flplateau-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .flplateau-btn-add {
        width: 100%;
        text-align: center;
    }
}
