/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Commun (optionnel, mais je l'ajoute pour cohérence) */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px; /* Ajuste selon ton logo */
    width: auto;
}

nav a {
    color: white; /* Texte blanc pour contraste sur fond #123c4d */
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
	background: #123c4d;
}

nav a:hover {
    background: #0e2b3a; /* Hover plus foncé */
}

/* Boutons Généraux (login, cards, etc.) */
.login-form button,
.card button {
    background: #123c4d; /* Même couleur */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-form button:hover,
.card button:hover {
    background: #0e2b3a; /* Hover cohérent */
}

.card h2 {
    color: #123c4d; /* Titres des cards en même couleur */
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: #123c4d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #0e2b3a;
}

.pagination .current {
    background: #0e2b3a;
    cursor: default;
}

/* Login Page */
.login-form {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.login-form h1 {
    margin-bottom: 2rem;
    color: #1a365d;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 0.75rem;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-form button:hover {
    background: #2c5282;
}

.error {
    color: #e53e3e;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fed7d7;
    border-radius: 4px;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 1rem;
    color: #1a365d;
}

.card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

.card button {
    padding: 0.75rem;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.card button:hover {
    background: #2c5282;
}

.dossiers-list {
    grid-column: 1 / -1;
}

.dossiers-list ul {
    list-style: none;
}

.dossiers-list li {
    background: #f7fafc;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border-left: 4px solid #1a365d;
}

/* View Images */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card p {
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    body { padding: 10px; }
    .dashboard { grid-template-columns: 1fr; }
    .login-form { margin: 2rem auto; padding: 1.5rem; }
    nav { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .images-grid { grid-template-columns: 1fr; }
    .card { padding: 1.5rem; }
}