* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #1e293b;
    color: #ffffff;
    padding: 24px 18px;
}

.sidebar-brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.main-content {
    flex: 1;
    padding: 30px;
}

.page-title {
    font-size: 30px;
    margin: 0 0 20px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
}

.content-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.section-title {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #0f172a;
}

.alert-message {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.styled-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    display: inline-block;
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-ok {
    background: #dcfce7;
    color: #166534;
}

.status-ko {
    background: #fee2e2;
    color: #991b1b;
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-warning:hover {
    background: #d97706;
}

.tarif-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.tarif-default {
    background: #e2e8f0;
    color: #334155;
}

.tarif-couple {
    background: #dbeafe;
    color: #1d4ed8;
}

.tarif-jeune {
    background: #f3e8ff;
    color: #7e22ce;
}

.tarif-warning {
    background: #fef3c7;
    color: #b45309;
}

.compare-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.compare-ok {
    background: #dcfce7;
    color: #166534;
}

.compare-ko {
    background: #fee2e2;
    color: #991b1b;
}

.compare-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.compare-warning {
    background: #fef3c7;
    color: #b45309;
}

.origin-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.origin-locked {
    background: #fee2e2;
    color: #991b1b;
}

.origin-free {
    background: #dcfce7;
    color: #166534;
}

.locked-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.login-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 28px;
    color: #0f172a;
    text-align: center;
}

.login-button {
    width: 100%;
    margin-top: 10px;
}
