* { box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f4f5f7;
    color: #1a1a1a;
    margin: 0;
    padding: 0 16px 40px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
h1 { font-size: 1.4rem; margin: 0; }
.logout { color: #555; text-decoration: none; font-size: 0.9rem; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a { color: #555; text-decoration: none; font-size: 0.9rem; padding: 4px 2px; }
.main-nav a.active { color: #1a73e8; font-weight: 600; }
.product-thumb { height: 180px; object-fit: cover; }
.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 14px;
    background-size: 50%;
}
.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 15%;
}
.product-carousel .carousel-indicators {
    margin-bottom: 4px;
}
.product-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
}
.panel {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow-x: auto;
}
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input, .inline-form button {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.inline-form button {
    background: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
}
.filters { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.filters a {
    text-decoration: none;
    color: #555;
    padding: 6px 10px;
    border-radius: 6px;
}
.filters a.active { background: #1a73e8; color: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.caption-input { width: 100%; min-width: 220px; font-family: inherit; font-size: 0.9rem; }
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-brouillon { background: #e2e3e5; color: #41464b; }
.badge-a_valider { background: #fff3cd; color: #8a6d00; }
.badge-valide { background: #d4edda; color: #1e7e34; }
.badge-publie { background: #cfe2ff; color: #0842a0; }
.badge-echec { background: #f8d7da; color: #a71d2a; }
.empty-caption { color: #888; }
.error-msg { font-size: 0.8rem; color: #a71d2a; margin-top: 4px; max-width: 220px; }
.external-id { font-size: 0.75rem; color: #555; margin-top: 4px; }
.actions { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.actions button {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-primary { background: #1a73e8 !important; color: #fff; border: none !important; }
.btn-danger { color: #a71d2a; }
.empty { text-align: center; color: #888; padding: 30px; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
}
.login-box input, .login-box button { padding: 10px; border-radius: 6px; border: 1px solid #ccc; }
.login-box button { background: #1a73e8; color: #fff; border: none; cursor: pointer; }
.login-box .error { color: #a71d2a; font-size: 0.9rem; margin: 0; }
