
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0c1016;
    color: #f5f7fb;
}

a {
    color: #7ec4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #111723;
    border-bottom: 1px solid #1f2a3a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #3f8cff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-title {
    font-weight: 600;
}

.logo-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.0rem;
}

.main-nav > a {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.main-nav > a:hover {
    background: #1f2937;
}

.nav-group {
    position: relative;
}

.nav-label {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.nav-group:hover .nav-label {
    background: #1f2937;
}

.nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #111827;
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    min-width: 220px;
}

.nav-group:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.nav-dropdown a:hover {
    background: #1f2937;
}

.content {
    max-width: 1100px;
    margin: 1.5rem auto 2rem;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    max-width: 700px;
}

.grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 800px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card {
    background: #111827;
    border-radius: 0.9rem;
    padding: 1rem;
    border: 1px solid #1f2937;
}

.card h2 {
    margin-top: 0;
}

.muted {
    color: #9ca3af;
    font-size: 0.9rem;
}

.warning {
    color: #fbbf24;
}

.error {
    color: #f97373;
}

.flag {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #022c22;
    border: 1px solid #22c55e;
    color: #bbf7d0;
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.footer {
    border-top: 1px solid #1f2937;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2rem;
}

/* Produits */

.products {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product img {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    background: #020617;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.product h2 {
    margin-bottom: 0.25rem;
}

.product p {
    margin: 0;
    font-size: 0.9rem;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-img {
    max-width: 480px;
    border-radius: 0.75rem;
}

.detail-info .role {
    font-weight: 600;
}

@media (min-width: 900px) {
    .detail-layout {
        flex-direction: row;
    }
}

/* Tables / forms */

.cli-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cli-table th, .cli-table td {
    border: 1px solid #1f2937;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.cli-table th {
    background: #020617;
}

input[type="password"],
textarea {
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    color: #f9fafb;
    width: min(360px, 100%);
}

button {
    margin-top: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    background: #2563eb;
    color: white;
}

button[disabled] {
    background: #4b5563;
    cursor: not-allowed;
}

button:hover:not([disabled]) {
    background: #1d4ed8;
}

.btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #2563eb;
    color: white;
    font-size: 0.9rem;
}

.btn:hover {
    text-decoration: none;
    background: #1d4ed8;
}

.preview {
    background: #020617;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-height: 2rem;
}
