* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f4ef;
    min-height: 100vh;
    padding: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4b8a5' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(149, 157, 165, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
}

.cat-icon {
    width: 45px;
    height: 45px;
    background-color: #f5aa7a;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

h1 {
    color: #5e4b56;
    font-size: 24px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background-color: #f5aa7a;
    color: white;
}

.btn-primary:hover {
    background-color: #e89b68;
}

.btn-logout {
    background-color: #5e4b56;
    color: white;
}

.btn-logout:hover {
    background-color: #4d3c45;
}

.cats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.cat-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
    transition: transform 0.3s;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-header {
    padding: 15px;
    background-color: #5e4b56;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.cat-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cat-info {
    padding: 20px;
}

.info-field {
    margin-bottom: 15px;
}

.info-field label {
    display: block;
    font-weight: 500;
    color: #5e4b56;
    margin-bottom: 5px;
}

.info-field p {
    background-color: #f9f4ef;
    padding: 10px;
    border-radius: 6px;
    color: #3a3a3a;
}

.cat-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #5e4b56;
}

.no-cats {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #5e4b56;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
}

.btn-secondary {
    background-color: #eae0d5;
    color: #5e4b56;
}

.btn-secondary:hover {
    background-color: #d9cdbf;
}

.btn-danger {
    background-color: #e16162;
    color: white;
}

.btn-danger:hover {
    background-color: #d04f50;
}

/* Pour les écrans mobiles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .action-buttons {
        justify-content: center;
    }
}
