* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #fdf6ec; color: #333; padding: 20px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
h1 { color: #c0392b; }
h2 { margin: 20px 0 10px; color: #8e44ad; }
.btn { background: #e67e22; color: white; padding: 10px 18px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; font-size: 14px; }
.btn:hover { background: #d35400; }
.btn-del { background: #c0392b; }
.btn-save { background: #27ae60; font-size: 16px; padding: 14px 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.carte { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; color: inherit; transition: transform 0.2s; }
.carte:hover { transform: translateY(-4px); }
.carte img { width: 100%; height: 180px; object-fit: cover; }
.carte .info { padding: 12px; }
.badge { display: inline-block; background: #8e44ad; color: white; padding: 3px 10px; border-radius: 12px; font-size: 12px; }

.form { background: white; padding: 25px; border-radius: 12px; max-width: 800px; margin: auto; }
.form label { display: block; margin-top: 12px; font-weight: bold; }
.form input, .form select, .form textarea { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.ing-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-top: 8px; align-items: center; }
.info-scaling { background: #fff3cd; padding: 10px; border-radius: 6px; margin: 10px 0; font-size: 13px; }

.photo-principale { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; }
.meta { display: flex; gap: 20px; margin: 15px 0; flex-wrap: wrap; background: white; padding: 15px; border-radius: 10px; }
article { background: white; padding: 25px; border-radius: 12px; max-width: 900px; margin: auto; }
#liste-ing li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.qte { font-weight: bold; color: #c0392b; }
.etapes { white-space: pre-line; line-height: 1.7; }
.filtres { margin-bottom: 20px; }
.filtres button { margin-right: 8px; }

@media (max-width: 600px) {
    .row, .ing-row { grid-template-columns: 1fr; }
    .ing-row { grid-template-columns: 1fr 1fr; }
}