body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f9fc;
    color: #222;
}

/* Barre de navigation */
.amis-nav {
    background: #e9eef7;
    border-bottom: 1px solid #cdd7e6;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    position: sticky;
    top: 0px;
}

.amis-nav a {
    color: #1a4a7a;
    text-decoration: none;
    font-weight: 600;
}

/* Conteneur */
.amis-container {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border: 1px solid #dce3ee;
    border-radius: 6px;
}

h2 {
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #0f1f33;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #dce3ee;
}

/* Ami */
.ami-item {
    padding: 12px 15px;
    border: 1px solid #e2e6ef;
    border-radius: 5px;
    margin-bottom: 12px;
    background: #fafbff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commentaire {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* Badges */
.badge-ami {
    background:#1a4a7a;
    color:white;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
}

.badge-famille {
    background:#2e8b57;
    color:white;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
}

.badge-client {
    background:#cfa600;
    color:white;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
}

.badge-collegue {
    background:#6a5acd;
    color:white;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
}
.badge-Service {
    background:#6a5acd;
    color:white;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
}
.badge-autre {
    background:#777;
    color:white;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
}

/* Boutons */
.ami-actions a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
}

.btn-open {
    background: #1a4a7a;
    color: white;
}
.btn-open:hover {
    background: #163d63;
}

.btn-delete {
    background: #d9534f;
    color: white;
}
.btn-delete:hover {
    background: #b94441;
}
/* Formulaire ajouter ami */
.form-ami {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-ami label {
    font-weight: 600;
    color: #1a1a1a;
}

.form-ami select,
.form-ami textarea {
    padding: 10px;
    border: 1px solid #cdd7e6;
    border-radius: 4px;
    font-size: 15px;
    background: #ffffff;
}

.form-ami textarea {
    resize: vertical;
}

.form-ami button {
    width: fit-content;
    padding: 10px 18px;
}
.badge-ami-deja {
    display:inline-block;
    background:#2e8b57;
    color:white;
    padding:4px 10px;
    border-radius:4px;
    font-size:13px;
    margin-bottom:12px;
}
.badge-qualite {
    display:inline-block;
    padding:4px 10px;
    border-radius:4px;
    font-size:12px;
    font-weight:600;
    color:white;
    margin-left:8px;
}

.badge-Famille { background:#2e8b57; }
.badge-Ami { background:#1a4a7a; }
.badge-Client { background:#cfa600; }
.badge-Collègue { background:#6a5acd; }
.badge-Autre { background:#777; }
.profil-rapide {
    margin-top: 12px;
    padding: 12px;
    background: #f3f6fb;
    border: 1px solid #dce3ee;
    border-radius: 6px;
    font-size: 14px;
}

