* {
    box-sizing: border-box;
}

/* STRUCTURE PAGE */
html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #111827;
    color: #f9fafb;

    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    height: 70px;
    background: #0b1220;
    border-bottom: 1px solid #263244;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #facc15;
    text-decoration: none;
}

.navbar nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.navbar a {
    color: #e5e7eb;
    text-decoration: none;
}

.navbar a:hover {
    color: #facc15;
}

/* BUTTONS */
.btn-small,
.btn {
    background: #facc15;
    color: #111827 !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover,
.btn-small:hover {
    background: #fde047;
    color: #111827 !important;
}

/* CONTAINER */
.container {
    flex: 1; /* IMPORTANT pour footer */
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 20px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid #374151;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 10px;
}

.hero span {
    color: #facc15;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* CARD */
.card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #0b1220;
}

.card-body {
    padding: 18px;
}

/* BADGE */
.badge {
    display: inline-block;
    background: #374151;
    color: #facc15;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    margin-right: 6px;
}

.price {
    font-weight: 800;
    color: #22c55e;
}

/* FORM */
.form {
    max-width: 600px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 18px;
    padding: 25px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 13px;
    margin: 9px 0 16px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: #111827;
    color: white;
}

.form textarea {
    min-height: 130px;
}

/* ALERT */
.alert {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.alert.error {
    background: #7f1d1d;
}

.alert.success {
    background: #14532d;
}

/* TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #1f2937;
    border-radius: 14px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #374151;
    text-align: left;
}

/* ACTIONS */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.danger {
    background: #ef4444;
    color: white !important;
}

.success {
    background: #22c55e;
    color: #052e16 !important;
}

/* FOOTER (FIX BAS) */
.footer {
    margin-top: auto;
    text-align: center;
    color: #9ca3af;
    padding: 24px 20px;
    border-top: 1px solid #263244;
    background: #0b1220;
}

.footer .powered {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.footer .powered strong {
    color: #facc15;
}

/* DETAIL */
.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail img {
    width: 100%;
    border-radius: 18px;
}

.muted {
    color: #9ca3af;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .navbar {
        padding: 0 15px;
    }

    .navbar nav {
        gap: 8px;
        font-size: 14px;
    }

    .detail {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 30px;
    }
}