/* ---- Bloc Admin Matériel ---- */
.admin-mat-section {
    font-family: 'Segoe UI', sans-serif;
    color: #e0e0e0;
    max-width: 980px;
    margin: 2rem auto;
}
.admin-mat-section h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: left;
    background: none;
    -webkit-text-fill-color: #667eea;
}
.admin-mat-msg-ok  { background: rgba(46,213,115,0.1);  border:1px solid rgba(46,213,115,0.3);  color:#2ed573;  padding:10px 16px; border-radius:10px; margin-bottom:1rem; font-size:14px; }
.admin-mat-msg-err { background: rgba(255,71,87,0.1);   border:1px solid rgba(255,71,87,0.3);   color:#ff6b6b;  padding:10px 16px; border-radius:10px; margin-bottom:1rem; font-size:14px; }

/* Formulaire ajout/modif */
.admin-mat-form {
    background: linear-gradient(135deg, rgba(102,126,234,0.07), rgba(118,75,162,0.07));
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.admin-mat-form h3 { color: #667eea; font-size:1.1rem; margin-bottom:1.2rem; }
.admin-mat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.admin-mat-row-full { margin-bottom: 10px; }
.admin-mat-form input[type=text],
.admin-mat-form input[type=number],
.admin-mat-form input[type=file],
.admin-mat-form select,
.admin-mat-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(102,126,234,0.25);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 13px;
    padding: 9px 12px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.admin-mat-form input:focus,
.admin-mat-form select:focus,
.admin-mat-form textarea:focus { border-color: #667eea; }
.admin-mat-form select option { background: #1a1a2e; color: #e0e0e0; }
.admin-mat-form textarea { resize: vertical; }
.admin-mat-form label { font-size: 12px; color: #888; display: block; margin-bottom: 4px; }
.admin-mat-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e0e0e0; }
.admin-mat-check input[type=checkbox] { width: auto; }
.admin-mat-form-actions { display: flex; gap: 10px; margin-top: 1rem; }
.btn-mat-save {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color:#fff; border:none; border-radius:8px;
    padding:9px 24px; font-size:13px; font-weight:600; cursor:pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-mat-save:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(102,126,234,0.4); }
.btn-mat-reset {
    background: transparent; color:#888;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius:8px; padding:9px 18px; font-size:13px; cursor:pointer;
    transition: border-color 0.2s;
}
.btn-mat-reset:hover { border-color:#667eea; color:#e0e0e0; }

/* Liste des annonces */
.admin-mat-list { display: flex; flex-direction: column; gap: 10px; }
.admin-mat-item {
    background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06));
    border: 1px solid rgba(102,126,234,0.15);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.admin-mat-item-photo {
    width: 80px; height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(102,126,234,0.1);
    display: flex; align-items:center; justify-content:center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}
.admin-mat-item-photo img { width:100%; height:100%; object-fit:cover; }
.admin-mat-item-info { flex: 1; }
.admin-mat-item-title { font-size:14px; font-weight:700; color:#e0e0e0; margin-bottom:3px; }
.admin-mat-item-meta  { font-size:12px; color:#667eea; margin-bottom:4px; }
.admin-mat-item-desc  { font-size:12px; color:#888; line-height:1.5; }
.admin-mat-item-actions { display:flex; gap:6px; flex-shrink:0; flex-wrap:wrap; }
.btn-mat-edit {
    background: rgba(102,126,234,0.15); color:#667eea;
    border: 1px solid rgba(102,126,234,0.3);
    border-radius:6px; padding:5px 12px; font-size:12px; cursor:pointer;
    transition: background 0.2s;
}
.btn-mat-edit:hover { background: rgba(102,126,234,0.3); }
.btn-mat-del {
    background: rgba(255,71,87,0.1); color:#ff6b6b;
    border: 1px solid rgba(255,71,87,0.25);
    border-radius:6px; padding:5px 12px; font-size:12px; cursor:pointer;
    transition: background 0.2s;
}
.btn-mat-del:hover { background: rgba(255,71,87,0.25); }
.admin-mat-statut {
    display:inline-block; font-size:11px; font-weight:700;
    padding:2px 9px; border-radius:20px; margin-left:6px;
}
.stat-dispo   { background:rgba(46,213,115,0.15); color:#2ed573; }
.stat-reserve { background:rgba(255,165,2,0.15);  color:#ffa502; }
.stat-vendu   { background:rgba(255,71,87,0.15);  color:#ff6b6b; }
.stat-inactif { background:rgba(100,100,100,0.15);color:#666; }

.admin-mat-empty { text-align:center; color:#555; font-style:italic; padding:2rem 0; }


       /* ---- Page boutique ---- */
        .mat-hero {
            padding: 8rem 5% 3rem;
            text-align: center;
        }
        .mat-hero p {
            color: #b0b0b0;
            font-size: 1.1rem;
            max-width: 650px;
            margin: 0 auto 0.8rem;
            line-height: 1.7;
        }
        .mat-tva {
            display: inline-block;
            background: rgba(46,213,115,0.12);
            border: 1px solid rgba(46,213,115,0.3);
            color: #2ed573;
            border-radius: 20px;
            padding: 4px 16px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }

        /* Grille annonces */
        .mat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            max-width: 1100px;
            margin: 0 auto;
            padding: 2rem 5% 5rem;
        }

        .mat-card {
            background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
            border: 1px solid rgba(102,126,234,0.18);
            border-radius: 20px;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
        }
        .mat-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 40px rgba(102,126,234,0.2);
        }

        /* Photo */
        .mat-photo {
            width: 100%;
            height: 260px;
            overflow: hidden;
            background: #111;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
            color: rgba(102,126,234,0.3);
            flex-shrink: 0;
        }
        .mat-photo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            display: block;
            background: #111;
        }

        .mat-body {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .mat-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 0.8rem;
        }
        .mat-badge {
            font-size: 11px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .badge-dispo  { background: rgba(46,213,115,0.15);  color: #2ed573;  border: 1px solid rgba(46,213,115,0.3); }
        .badge-vendu  { background: rgba(255,71,87,0.15);   color: #ff6b6b;  border: 1px solid rgba(255,71,87,0.3); }
        .badge-reserve{ background: rgba(255,165,2,0.15);   color: #ffa502;  border: 1px solid rgba(255,165,2,0.3); }
        .badge-cat    { background: rgba(102,126,234,0.12); color: #667eea;  border: 1px solid rgba(102,126,234,0.2); }

        .mat-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #e0e0e0;
            margin-bottom: 0.6rem;
            line-height: 1.3;
        }
        .mat-ref {
            font-size: 0.78rem;
            color: #555;
            margin-bottom: 0.8rem;
            font-family: monospace;
        }
        .mat-desc {
            color: #b0b0b0;
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1.2rem;
            flex: 1;
        }

        .mat-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: auto;
            padding-top: 1rem;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .mat-prix {
            font-size: 1.5rem;
            font-weight: 800;
            color: #667eea;
        }
        .mat-prix-ht {
            font-size: 0.75rem;
            color: #555;
            display: block;
            font-weight: 400;
        }
        .mat-prix-sur-demande {
            font-size: 1rem;
            color: #888;
            font-style: italic;
        }

        .mat-btn {
            display: inline-block;
            padding: 8px 20px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
            border: none;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s;
            white-space: nowrap;
        }
        .mat-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(102,126,234,0.4);
        }
        .mat-btn:disabled, .mat-btn.disabled {
            background: #333;
            color: #555;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
/* Badges livraison */
.badge-livrable   { background: #1a3a2a; color: #4ade80; border: 1px solid #4ade80; }
.badge-enlevement { background: #2a2a1a; color: #facc15; border: 1px solid #facc15; }

/* Lien "Plus de renseignements" */
.mat-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: .75rem;
}
.mat-link-details {
    font-size: 13px;
    color: #a78bfa;          /* violet clair — à adapter à votre palette */
    text-decoration: none;
    white-space: nowrap;
}
.mat-link-details:hover { text-decoration: underline; }

/* Bouton Acheter désactivé */
.btn-acheter {
    padding: .55rem 1.25rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: #4f46e5;
    color: #fff;
    border: none;
    cursor: not-allowed;
    opacity: .5;
    transition: opacity .2s;
}
.btn-acheter:not([disabled]) {
    cursor: pointer;
    opacity: 1;
}
.btn-acheter:not([disabled]):hover { background: #4338ca; }

        /* Modal contact */
        .mat-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.75);
            z-index: 9990;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .mat-modal-overlay.open { display: flex; }
        .mat-modal {
            background: #111118;
            border: 1px solid rgba(102,126,234,0.25);
            border-radius: 20px;
            padding: 2rem;
            width: 100%;
            max-width: 480px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
            animation: modalIn 0.3s cubic-bezier(.34,1.56,.64,1);
        }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }
        .mat-modal h3 {
            color: #667eea;
            font-size: 1.2rem;
            margin-bottom: 0.3rem;
        }
        .mat-modal-ref {
            font-size: 0.78rem;
            color: #555;
            font-family: monospace;
            margin-bottom: 1.2rem;
        }
        .mat-modal input,
        .mat-modal textarea {
            width: 100%;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(102,126,234,0.25);
            border-radius: 10px;
            color: #e0e0e0;
            font-size: 13px;
            padding: 10px 14px;
            margin-bottom: 10px;
            outline: none;
            font-family: inherit;
            box-sizing: border-box;
            resize: vertical;
            transition: border-color 0.2s;
        }
        .mat-modal input:focus,
        .mat-modal textarea:focus { border-color: #667eea; }
        .mat-modal input::placeholder,
        .mat-modal textarea::placeholder { color: #555; }
        .mat-modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 4px;
        }
        .mat-modal-cancel {
            flex: 1;
            padding: 10px;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            color: #888;
            font-size: 13px;
            cursor: pointer;
            transition: border-color 0.2s;
        }
        .mat-modal-cancel:hover { border-color: #667eea; color: #e0e0e0; }
        .mat-modal-submit {
            flex: 2;
            padding: 10px;
            background: linear-gradient(135deg,#667eea,#764ba2);
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .mat-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(102,126,234,0.4); }
        #mat-modal-msg { font-size: 12px; min-height: 16px; margin-top: 8px; }
        .mat-msg-ok  { color: #2ed573; }
        .mat-msg-err { color: #ff6b6b; }

        /* Vide */
        .mat-empty {
            grid-column: 1/-1;
            text-align: center;
            color: #555;
            font-style: italic;
            padding: 4rem 0;
            font-size: 1.1rem;
        }

        @media (max-width: 768px) {
            .mat-grid { grid-template-columns: 1fr; }
			.admin-mat-row { grid-template-columns:1fr; }
			.admin-mat-item { flex-direction:column; }
		}
		/* ─────────────────────────────────────────────
   Ajouts boutique — badges livraison + actions
   À coller à la fin de boutique.css
   ───────────────────────────────────────────── */

/* Badge Livrable */
.badge-livrable {
    background: #0d2b1a;
    color: #4ade80;
    border: 1px solid #4ade80;
}

/* Badge Enlèvement */
.badge-enlevement {
    background: #2a2410;
    color: #facc15;
    border: 1px solid #facc15;
}

/* Bloc actions en bas de carte : lien + bouton empilés */
.mat-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
}

/* Lien "Plus de renseignements" */
.mat-link-details {
    font-size: 12px;
    color: #a78bfa;
    text-decoration: none;
    white-space: nowrap;
}
.mat-link-details:hover { text-decoration: underline; }

/* Bouton Acheter désactivé */
.mat-btn-acheter[disabled] {
    opacity: .45;
    cursor: not-allowed;
}
/* Quand il sera activé plus tard, on retire juste [disabled] */
.mat-btn-acheter:not([disabled]):hover {
    background: #4338ca;
}
/* ---- Badges stock ---- */
.badge-stock-many { background: #0d2b1a; color: #4ade80; border: 1px solid #4ade80; }
.badge-stock-one  { background: #2a1f0a; color: #fb923c; border: 1px solid #fb923c; }
.badge-stock-zero { background: #2a0a0a; color: #f87171; border: 1px solid #f87171; }

/* Badge stock admin */
.stat-stock { background: rgba(100,100,200,0.15); color: #a5b4fc; }
