/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

button, input[type="submit"], input[type="button"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #0056b3;
}

/* Conteneurs principaux */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* En-têtes */
h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

h2 {
    font-size: 20px;
    margin-top: 30px;
}

/* Liens et catégories */
.category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-actions {
    font-size: 14px;
}

.category-actions a {
    margin-left: 10px;
    color: #007bff;
}

.category-actions a.delete {
    color: #dc3545;
}

.link-list {
    margin-top: 10px;
}

.link-item {
    background-color: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.link-item a.link-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.link-item p {
    margin: 5px 0;
    color: #555;
}

.link-item small {
    color: #999;
    font-size: 12px;
}

.link-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.link-actions a {
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
}

.link-actions a.edit {
    background-color: #e7f1ff;
    color: #007bff;
}

.link-actions a.delete {
    background-color: #ffe7e7;
    color: #dc3545;
}

/* Formulaires */
form {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

form input[type="text"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Boutons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Mode admin */
.admin-badge {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* Footer */
.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Responsive pour smartphones */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    .category-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .link-actions {
        flex-direction: column;
        gap: 5px;
    }

    .link-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Animation pour les actions */
a.edit, a.delete, .category-actions a {
    transition: all 0.2s ease;
}

a.edit:hover, .category-actions a.edit:hover {
    background-color: #d0e3ff;
}

a.delete:hover, .category-actions a.delete:hover {
    background-color: #ffd4d4;
}

