/* site.css - Design moderne et professionnel (v2) */
:root {
    --primary: hsl(250, 69%, 61%); /* Vibrant Indigo */
    --primary-dark: hsl(250, 69%, 50%);
    --primary-light: hsl(250, 69%, 75%);
    --accent: hsl(39, 100%, 50%);
    --danger: hsl(348, 83%, 47%);
    --success: hsl(152, 69%, 31%);
    --muted: hsl(215, 16%, 47%);
    --bg-color: hsl(220, 33%, 98%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: hsl(214, 32%, 91%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: radial-gradient(circle at top right, hsl(230, 80%, 96%), hsl(220, 33%, 98%) 40%, hsl(210, 30%, 97%));
    background-attachment: fixed;
    color: hsl(222, 47%, 11%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header avec glassmorphism */
.site-header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255, 0.5);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.site-main {
    flex: 1;
}

/* page layout */
.page {
    padding: 40px 0;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: hsl(222, 47%, 11%);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px hsla(250, 69%, 61%, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-warning { background: var(--accent); color: white; }
.btn-warning:hover { background: hsl(39, 100%, 45%); box-shadow: 0 6px 16px hsla(39, 100%, 50%, 0.3); }

.btn-danger { background: var(--danger); color: white; box-shadow: var(--shadow-sm); }
.btn-danger:hover { background: hsl(348, 83%, 42%); box-shadow: 0 6px 16px hsla(348, 83%, 47%, 0.3); }

.btn-success { background: var(--success); color: white; box-shadow: var(--shadow-sm); }
.btn-success:hover { background: hsl(152, 69%, 26%); box-shadow: 0 6px 16px hsla(152, 69%, 31%, 0.3); }

.btn-outline-primary, .btn-outline-info, .btn-outline-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: hsl(222, 47%, 11%);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover { border-color: var(--primary); color: var(--primary); background: hsl(250, 100%, 98%); box-shadow: var(--shadow); }
.btn-outline-info { color: hsl(199, 89%, 48%); }
.btn-outline-info:hover { border-color: hsl(199, 89%, 48%); color: hsl(199, 89%, 38%); background: hsl(199, 100%, 98%); box-shadow: var(--shadow); }
.btn-outline-secondary { color: var(--muted); }
.btn-outline-secondary:hover { border-color: var(--muted); background: hsl(0, 0%, 98%); box-shadow: var(--shadow); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* Table modernisée */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.table thead {
    background: hsl(210, 36%, 98%);
}

.table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: hsl(222, 47%, 11%);
    font-size: 14px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: hsl(210, 36%, 99%);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* forms and inputs */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: white;
    transition: all 0.25s ease;
    color: hsl(222, 47%, 11%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsla(250, 69%, 61%, 0.15);
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-group .form-control {
    border-radius: var(--radius-full);
}

.btn-search {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.btn-search:hover {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(250, 69%, 61%, 0.2);
}

/* alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.alert-danger { background: hsl(351, 100%, 98%); color: hsl(348, 83%, 47%); border-color: hsla(348, 83%, 47%, 0.2); }
.alert-success { background: hsl(150, 100%, 98%); color: hsl(152, 69%, 31%); border-color: hsla(152, 69%, 31%, 0.2); }
.alert-warning { background: hsl(48, 100%, 96%); color: hsl(39, 100%, 40%); border-color: hsla(39, 100%, 50%, 0.2); }
.alert-info { background: hsl(210, 100%, 99%); color: hsl(215, 87%, 45%); border-color: hsla(215, 87%, 45%, 0.2); }

/* form simple */
.form-simple {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label { font-weight: 600; margin-bottom: 8px; color: hsl(222, 47%, 11%); font-size: 14px; }

/* pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
}
.page-numbers { display: flex; gap: 6px; }

/* footer */
.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--muted);
    font-size: 14px;
}

/* utilities */
.text-muted { color: var(--muted); }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .table th, .table td { padding: 12px 14px; font-size: 13px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .btn-sm { padding: 6px 10px; font-size: 12px; }
}
